-
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-28042 Snapshot corruptions due to non-atomic rename within same filesystem #5369
Changes from 2 commits
2898bc3
8ca3b0b
880ffd7
0603f20
ce1b14e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,6 +158,7 @@ public void testGrantGlobal1() throws Exception { | |
|
||
TestHDFSAclHelper.createTableAndPut(TEST_UTIL, table); | ||
snapshotAndWait(snapshot1, table); | ||
snapshotAndWait(snapshot2, table); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this test really need this change, or is this part of the PR by mistake? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it actually does, i am still trying to understand why the order of granting permissions to global user matter in the order. e.g. before table creation, granting global user permission allows user to scan snapshot but after table creation if we grant it, it doesn't work. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ack! |
||
// grant G(R) | ||
SecureTestUtil.grantGlobal(TEST_UTIL, grantUserName, READ); | ||
TestHDFSAclHelper.canUserScanSnapshot(TEST_UTIL, grantUser, snapshot1, 6); | ||
|
@@ -174,8 +175,6 @@ public void testGrantGlobal1() throws Exception { | |
// grant G(R) | ||
SecureTestUtil.grantGlobal(TEST_UTIL, grantUserName, READ); | ||
TestHDFSAclHelper.canUserScanSnapshot(TEST_UTIL, grantUser, snapshot1, 6); | ||
// take a snapshot and ACLs are inherited automatically | ||
snapshotAndWait(snapshot2, table); | ||
TestHDFSAclHelper.canUserScanSnapshot(TEST_UTIL, grantUser, snapshot2, 6); | ||
assertTrue(hasUserGlobalHdfsAcl(aclTable, grantUserName)); | ||
deleteTable(table); | ||
|
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.
Why we need the extra check for the "file" URI? Wouldn't it be enough to return "true" here if workingURI scheme is null and rootURI is not?
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.
with "file", we could have ignored local fs, but you are right that we don't need such explicit check, let me make this change, thanks