-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HDDS-1535. Space tracking for Open Containers : Handle Node Startup. Contributed by Supratim Deka #832
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
Conversation
…Contributed by Supratim Deka
|
💔 -1 overall
This message was automatically generated. |
jiwq
left a comment
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.
Do you mind modify the style nits?
...ainer-service/src/main/java/org/apache/hadoop/ozone/container/ozoneimpl/ContainerReader.java
Show resolved
Hide resolved
…, both as per review discussion
|
+1 pending CI checks. |
|
💔 -1 overall
This message was automatically generated. |
|
/retest |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
The UT failures are unrelated. I've merged this into trunk. |
…anner Author: Ahmed Abdul Hamid <[email protected]> Reviewers: Aditya Toomla <[email protected]> Closes apache#832 from ahmedahamid/master
https://issues.apache.org/jira/browse/HDDS-1535
Follow up from HDDS-1511.
Space tracking for Open Containers (committed space in the volume) relies on usedBytes in the Container state. usedBytes is not persisted for every update (chunkWrite). So on a node restart the value is stale.
The fix iterates the block DB for Open containers when building the container set (during startup).