You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "adoroszlai (via GitHub)" <gi...@apache.org> on 2024/01/31 18:18:35 UTC
[PR] HDDS-10263. Intermittent failure in freon/metadata-generate robot test [ozone]
adoroszlai opened a new pull request, #6137:
URL: https://github.com/apache/ozone/pull/6137
## What changes were proposed in this pull request?
Fix:
```
NoSuchFileException: There are not enough files for testing you should use CREATE_FILE to create at least batch-size * threads = 1000
```
which happens because only `n=100` items are created, but `List` test requires 1000 items (`batch-size = 100`, `threads = 10`).
Reduce `threads` to 1.
https://issues.apache.org/jira/browse/HDDS-10263
## How was this patch tested?
Ran `freon/metadata-generate.robot` locally 10x:
```
Metadata-Generate :: Test freon ommg command
==============================================================================
[Setup] Create Volume and Buckets | PASS |
------------------------------------------------------------------------------
[Read] Bucket Information | PASS |
------------------------------------------------------------------------------
[Create] File in FILE_SYSTEM_OPTIMIZED Bucket | PASS |
------------------------------------------------------------------------------
[Read] File in FILE_SYSTEM_OPTIMIZED Bucket | PASS |
------------------------------------------------------------------------------
[List] File Status in FILE_SYSTEM_OPTIMIZED Bucket | PASS |
------------------------------------------------------------------------------
[List] light File status in FILE_SYSTEM_OPTIMIZED Bucket | PASS |
------------------------------------------------------------------------------
[Create] Key in OBJECT_STORE Bucket | PASS |
------------------------------------------------------------------------------
[Read] Key in OBJECT_STORE Bucket | PASS |
------------------------------------------------------------------------------
[List] Keys in OBJECT_STORE Bucket | PASS |
------------------------------------------------------------------------------
[List] Light Keys in OBJECT_STORE Bucket | PASS |
------------------------------------------------------------------------------
[Get] Key Information in OBJECT_STORE Bucket | PASS |
------------------------------------------------------------------------------
Metadata-Generate :: Test freon ommg command | PASS |
11 tests, 11 passed, 0 failed
```
CI:
https://github.com/adoroszlai/ozone/actions/runs/7730252484
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-10263. Intermittent failure in freon/metadata-generate robot test [ozone]
Posted by "fapifta (via GitHub)" <gi...@apache.org>.
fapifta commented on PR #6137:
URL: https://github.com/apache/ozone/pull/6137#issuecomment-1920184703
In principal I am ok with the proposed fix, however I don't understand why the failure was intermittent, @adoroszlai can you elaborate why this test could pass when it passes?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-10263. Intermittent failure in freon/metadata-generate robot test [ozone]
Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on PR #6137:
URL: https://github.com/apache/ozone/pull/6137#issuecomment-1920467619
Thanks @fapifta, @xichen01 for the review.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-10263. Intermittent failure in freon/metadata-generate robot test [ozone]
Posted by "fapifta (via GitHub)" <gi...@apache.org>.
fapifta commented on PR #6137:
URL: https://github.com/apache/ozone/pull/6137#issuecomment-1920782195
Thank @xichen01 for the explanation!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-10263. Intermittent failure in freon/metadata-generate robot test [ozone]
Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai merged PR #6137:
URL: https://github.com/apache/ozone/pull/6137
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-10263. Intermittent failure in freon/metadata-generate robot test [ozone]
Posted by "xichen01 (via GitHub)" <gi...@apache.org>.
xichen01 commented on PR #6137:
URL: https://github.com/apache/ozone/pull/6137#issuecomment-1920431495
> In principal I am ok with the proposed fix, however I don't understand why the failure was intermittent, @adoroszlai can you elaborate why this test could pass when it passes?
```java
ozone freon ommg --operation LIST_STATUS -n 1 --volume ${VOLUME} --bucket ${BUCKET_FSO} --batch-size ${n}
```
@fapifta The `-n 1` means that the `LIST_STATUS` will only be executed one time. The default thread count is 10. If the first thread (`threadSeqId=0`) executes the `LIST_STATUS`, the `startKeyName` will be 0. Consequently, the testing will execute successfully. If the other threads (`threadSeqId>0`) execute the `LIST_STATUS`, the testing will fail.
https://github.com/apache/ozone/blob/b02741fa5f1af6c65f9928ed2f57f7212c7081e0/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/OmMetadataGenerator.java#L400-L404
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org