Skip to content

a bug of checking if restoreDir is subDir of rootDir - #109

Closed
VincentChoiCN wants to merge 1 commit into
apache:branch-2.0from
VincentChoiCN:HBASE-22070
Closed

a bug of checking if restoreDir is subDir of rootDir#109
VincentChoiCN wants to merge 1 commit into
apache:branch-2.0from
VincentChoiCN:HBASE-22070

Conversation

@VincentChoiCN

Copy link
Copy Markdown
Contributor

The restoreDir shouldn't be a sub directory of rootDir. The code check it with a prefix check "restoreDir.toUri().getPath().startsWith(rootDir.toUri().getPath())". But it goes error in some reasonable cases.

eg: rootDir = hdfs://user/hbase restoreDir = hdfs://user/hbase_restore. So I think it's more reasonable to chang the code to "restoreDir.toUri().getPath().startsWith(rootDir.toUri().getPath() + "/" )".

jira:https://issues.apache.org/jira/browse/HBASE-22070

@VincentChoiCNVincentChoiCN changed the title fix a bug of checking if restoreDir is subDir of rootDira bug of checking if restoreDir is subDir of rootDirMar 20, 2019
@VincentChoiCN

Copy link
Copy Markdown
ContributorAuthor

@Apache9 , Could you take a look at it, Please?

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec28Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
-0test4tests0The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ branch-2.0 Compile Tests _
+1mvninstall191branch-2.0 passed
+1compile120branch-2.0 passed
+1checkstyle70branch-2.0 passed
+1shadedjars250branch has no errors when building our shaded downstream artifacts.
+1findbugs142branch-2.0 passed
+1javadoc32branch-2.0 passed
_ Patch Compile Tests _
+1mvninstall173the patch passed
+1compile118the patch passed
+1javac118the patch passed
-1checkstyle68hbase-server: The patch generated 1 new + 17 unchanged - 0 fixed = 18 total (was 17)
+1whitespace0The patch has no whitespace issues.
+1shadedjars247patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck533Patch does not cause any errors with Hadoop 2.6.5 2.7.4 or 3.0.0.
+1findbugs154the patch passed
+1javadoc31the patch passed
_ Other Tests _
+1unit7719hbase-server in the patch passed.
+1asflicense22The patch does not generate ASF License warnings.
9984
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-109/1/artifact/out/Dockerfile
GITHUB PR#109
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 5b810723f00c 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionbranch-2.0 / 381a0d5
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.0-RC3
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-109/1/artifact/out/diff-checkstyle-hbase-server.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-109/1/testReport/
Max. process+thread count4487 (vs. ulimit of 10000)
modulesC: hbase-server U: hbase-server
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-109/1/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@petersomogyi

Copy link
Copy Markdown
Contributor

Merged patch from Jira.

@VincentChoiCN
VincentChoiCN deleted the HBASE-22070 branch April 7, 2019 04:15
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@VincentChoiCN@hadoop-yetus@petersomogyi