-
Notifications
You must be signed in to change notification settings - Fork 593
HDDS-10644. Intermittent failure in testBalancer.robot #6481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -95,15 +95,16 @@ Get Uuid | |
| Close All Containers | ||
| FOR ${INDEX} IN RANGE 15 | ||
| ${container} = Execute ozone admin container list --state OPEN | jq -r 'select(.replicationConfig.replicationFactor == "THREE") | .containerID' | head -1 | ||
| EXIT FOR LOOP IF "${container}" == "" | ||
| Execute ozone admin container close "${container}" | ||
| EXIT FOR LOOP IF "${container}" == "${EMPTY}" | ||
| ${message} = Execute And Ignore Error ozone admin container close "${container}" | ||
| Run Keyword If '${message}' != '${EMPTY}' Should Contain ${message} is in closing state | ||
| ${output} = Execute ozone admin container info "${container}" | ||
| Should contain ${output} CLOS | ||
| END | ||
| Wait until keyword succeeds 3min 10sec All container is closed | ||
|
|
||
| All container is closed | ||
| ${output} = Execute ozone admin container list --state OPEN | ||
| ${output} = Execute ozone admin container list --state OPEN | ||
| Should Be Empty ${output} | ||
|
Comment on lines
-106
to
108
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From However, I think the chance is very small, since the time pass between the close container command and the start of the container balancer should be large enough for the container to be closed. So it should be fine as it is now. |
||
|
|
||
| Get Datanode Ozone Used Bytes Info | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason of
CLOSis to include bothCLOSINGandCLOSED?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes for this test we don't need to wait for the containers to be completely closed (this may take too long). Therefore we are happy with both “closed” and “closing” statuses.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the explanation.