-
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-28588 Remove deprecated methods in WAL #5893
Conversation
🎊 +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. |
The failed UT TestMasterRegionWALCleaner is not related to the changes. |
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.
Maybe we should introduce a helper method for tests?
long smallestSeqInRegionCurrentMemstore = | ||
getWAL(region).getEarliestMemStoreSeqNum(region.getRegionInfo().getEncodedNameAsBytes()); | ||
long smallestSeqInRegionCurrentMemstore = getWAL(region) | ||
.getEarliestMemStoreSeqNum(region.getRegionInfo().getEncodedNameAsBytes(), FAMILY1); |
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.
Is this the correct way to change the UT?
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.
I will check again.
@Override | ||
public long getEarliestMemStoreSeqNum(byte[] encodedRegionName) { | ||
// Used by tests. Deprecated as too subtle for general usage. | ||
return this.sequenceIdAccounting.getLowestSequenceId(encodedRegionName); |
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.
Does this method in SequenceIdAccounting still useful?
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.
This method is only being called by UTS, and I will attempt to remove those calls.
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.
That's why I say we need to introduce a equivalent version of this method in test code.
🎊 +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. |
The failed UT TestMajorCompaction is not related to the changes, and it is ok in my local env. |
Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 826fb41)
https://issues.apache.org/jira/browse/HBASE-28588