-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-25459 WAL can't be cleaned in some scenes #2848
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
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
| 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 <[email protected]>
Signed-off-by: Wellington Chevreuil <[email protected]> (cherry picked from commit 6a401d8)
Signed-off-by: Wellington Chevreuil <[email protected]> (cherry picked from commit 6a401d8)
Signed-off-by: Wellington Chevreuil <[email protected]> (cherry picked from commit 6a401d8)
Signed-off-by: Wellington Chevreuil <[email protected]> (cherry picked from commit 6a401d8) (cherry picked from commit ac7813a) Change-Id: I82f37e9153c7addcb94dbac23fbf826664817f09
No description provided.