Uh oh!
There was an error while loading. Please reload this page.
HBASE-28042 Snapshot corruptions due to non-atomic rename within same filesystem - #5369
Conversation
virajjasani
commented
Aug 23, 2023
FYI @ujjawal4046 |
Apache-HBase
commented
Aug 23, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 24, 2023
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 24, 2023
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 24, 2023
🎊 +1 overall
This message was automatically generated. |
mnpoonia
left a comment
There was a problem hiding this comment.
Thanks @ujjawal4046 for looking into this.
+1 non binding.
virajjasani
commented
Aug 24, 2023
|
virajjasani
commented
Aug 24, 2023
@mymeiyi could you please take a look at For instance, for test |
Similarly, on |
Apache-HBase
commented
Aug 24, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 24, 2023
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 24, 2023
💔 -1 overall
This message was automatically generated. |
| TestHDFSAclHelper.createTableAndPut(TEST_UTIL, table); | ||
| snapshotAndWait(snapshot1, table); | ||
| snapshotAndWait(snapshot2, table); |
There was a problem hiding this comment.
Does this test really need this change, or is this part of the PR by mistake?
There was a problem hiding this comment.
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.
perhaps some bug in coproc SnapshotScannerHDFSAclController
| // check scheme, e.g. file, hdfs | ||
| if ( | ||
| workingURI.getScheme() == null | ||
| && (rootURI.getScheme() != null && !rootURI.getScheme().equalsIgnoreCase("file")) |
There was a problem hiding this comment.
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.
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
virajjasani
commented
Aug 24, 2023
the ordering issue with |
wchevreuil
left a comment
There was a problem hiding this comment.
LGTM, +1.
Just as an extra note, "fs.rename" may not always be atomic (think of some object store file systems), and the ultimate solution for this problem would be something similar to what SFT did for the store files rename, but that could be worked on a different jira.
Apache-HBase
commented
Aug 24, 2023
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 24, 2023
🎊 +1 overall
This message was automatically generated. |
virajjasani
commented
Aug 24, 2023
agree to using SFT 👍 |
Apache-HBase
commented
Aug 24, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 25, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 25, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 25, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 25, 2023
🎊 +1 overall
This message was automatically generated. |
Apache-HBase
commented
Aug 25, 2023
🎊 +1 overall
This message was automatically generated. |
virajjasani
commented
Aug 28, 2023
Thanks for the reviews @wchevreuil@mnpoonia@ujjawal4046@Abhey !! |
… filesystem (#5369) Co-authored-by: Ujjawal <ujjawal4046@gmail.com> Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org> Signed-off-by: Abhey Rana <a.rana@salesforce.com> Signed-off-by: Ujjawal <ujjawal4046@gmail.com> Signed-off-by: Aman Poonia <aman.poonia.29@gmail.com>
… filesystem (apache#5369) Co-authored-by: Ujjawal <ujjawal4046@gmail.com> Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org> Signed-off-by: Abhey Rana <a.rana@salesforce.com> Signed-off-by: Ujjawal <ujjawal4046@gmail.com> Signed-off-by: Aman Poonia <aman.poonia.29@gmail.com>
… filesystem (apache#5372) (apache#5369) Co-Authored-By: ujjawal4046 <ujjawal4046@gmail.com> Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org> Signed-off-by: Abhey Rana <a.rana@salesforce.com> Signed-off-by: Ujjawal <ujjawal4046@gmail.com> Signed-off-by: Aman Poonia <aman.poonia.29@gmail.com> (cherry picked from commit 61250ad) Change-Id: I8f93a9b89df3c1195d427ac1b67001708e716b49
Co-authored-by: Ujjawal <ujjawal4046@gmail.com>Jira: HBASE-28042