-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-25459 WAL can't be cleaned in some scenes #2848
Conversation
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.
Can we have a UT testing this new behaviour?
for (Long sid: sequenceids.values()) { | ||
for (Map.Entry<? , Long> entry : sequenceids.entrySet()){ | ||
if (entry.getKey() instanceof ImmutableByteArray && entry.getKey().toString().equals("METAFAMILY")){ | ||
LOG.info("ColumnFamily is METAFAMILY! continue ..."); |
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.
Should we rather do trace here?
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.
no, I think. delete it at a new commit
@@ -250,7 +250,12 @@ void updateStore(byte[] encodedRegionName, byte[] familyName, Long sequenceId, | |||
*/ | |||
private static long getLowestSequenceId(Map<?, Long> sequenceids) { | |||
long lowest = HConstants.NO_SEQNUM; | |||
for (Long sid: sequenceids.values()) { | |||
for (Map.Entry<? , Long> entry : sequenceids.entrySet()){ | |||
if (entry.getKey() instanceof ImmutableByteArray && entry.getKey().toString().equals("METAFAMILY")){ |
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 we need this extra entry.getKey() instanceof ImmutableByteArray
check? Wouldn't entry.getKey().toString().equals("METAFAMILY")
already gives false
in the cases entry.getKey()
isn't a ImmutableByteArray
?
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.
entry.getKey() instanceof ImmutableByteArray is for future, but it's no need at now , I has deleted it !
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.
Can we have a UT testing this new behaviour?
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
the UT has updated, pelease review again! @wchevreuil |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org> (cherry picked from commit 6a401d8)
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org> (cherry picked from commit 6a401d8)
Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org> (cherry picked from commit 6a401d8)
No description provided.