Skip to content
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-24571 HBCK2 fix addFsRegionsMissingInMeta to add regions in CLO… #65

Merged
merged 2 commits into from Jun 18, 2020

Conversation

wchevreuil
Copy link
Contributor

…SED state again

This PR fix implementation of HBCKMetaTableAccessor.addRegionToMeta to insert new regions with CLOSED state, and also adds extra checks for this behaviour on both TestHBCKMetaTableAccessor and TestFsRegionsMetaRecoverer UTs.

@wchevreuil
Copy link
Contributor Author

The failure is not related to this commit. It seems the test added in HBASE-23927 is creating an inputForAssignsTest file under project root dir, which causes asflicense checks to fail: https://builds.apache.org/job/PreCommit-HBASE-OPERATOR-TOOLS-Build/175/artifact/patchprocess/patch-asflicense-problems.txt.

@wchevreuil
Copy link
Contributor Author

retest build

Copy link

@virajjasani virajjasani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@@ -454,6 +457,18 @@ public static Put makePutFromRegionInfo(RegionInfo region, long ts) throws IOExc
return put;
}

private static Put addRegionStateToPut(Put put, RegionState.State state) throws IOException {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be void addRegionStateToPut since return value is of no use as we are mutating Put?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

Copy link
Member

@brfrn169 brfrn169 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM.

@wchevreuil wchevreuil merged commit 4ef4157 into apache:master Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants