You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ji...@apache.org on 2022/04/08 02:40:10 UTC
[incubator-doris-manager] branch master updated: [fix] fix the condition for polling in node verify page (#36)
This is an automated email from the ASF dual-hosted git repository.
jiafengzheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris-manager.git
The following commit(s) were added to refs/heads/master by this push:
new b68db6a [fix] fix the condition for polling in node verify page (#36)
b68db6a is described below
commit b68db6a30f948bacab0c76f40df8d4371daf15b5
Author: zhengbowen <10...@users.noreply.github.com>
AuthorDate: Fri Apr 8 10:40:06 2022 +0800
[fix] fix the condition for polling in node verify page (#36)
fix the condition for polling in node verify page
---
frontend/src/routes/space/components/node-verify/node-verify.tsx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/frontend/src/routes/space/components/node-verify/node-verify.tsx b/frontend/src/routes/space/components/node-verify/node-verify.tsx
index c7648f5..aef0add 100644
--- a/frontend/src/routes/space/components/node-verify/node-verify.tsx
+++ b/frontend/src/routes/space/components/node-verify/node-verify.tsx
@@ -31,6 +31,7 @@ import { LoadingOutlined } from '@ant-design/icons';
const Step = Steps.Step;
const ERROR_STATUS = [OperateStatusEnum.FAIL, OperateStatusEnum.CANCEL];
+const PENDING_STATUS = [OperateStatusEnum.PROCESSING, OperateStatusEnum.INIT];
export function NodeVerify(props: any) {
const { reqInfo } = useContext(NewSpaceInfoContext);
@@ -52,7 +53,7 @@ export function NodeVerify(props: any) {
if (failedNode) {
message.error(failedNode.operateResult);
}
- if (data.filter(item => item.operateStatus === OperateStatusEnum.PROCESSING).length === 0) {
+ if (data.filter(item => PENDING_STATUS.includes(item.operateStatus)).length === 0) {
getClusterNodes.cancel();
}
if (data.filter(item => item.operateStatus !== OperateStatusEnum.SUCCESS).length > 0) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org