Skip to content

Conversation

@Apache9
Copy link
Contributor

@Apache9 Apache9 commented Jun 22, 2019

No description provided.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 26 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 4 new or modified test files.
_ master Compile Tests _
0 mvndep 24 Maven dependency ordering for branch
+1 mvninstall 252 master passed
+1 compile 96 master passed
+1 checkstyle 114 master passed
+1 shadedjars 271 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 271 master passed
+1 javadoc 66 master passed
_ Patch Compile Tests _
0 mvndep 15 Maven dependency ordering for patch
+1 mvninstall 240 the patch passed
+1 compile 93 the patch passed
+1 javac 93 the patch passed
-1 checkstyle 73 hbase-server: The patch generated 3 new + 387 unchanged - 2 fixed = 390 total (was 389)
-1 checkstyle 14 hbase-backup: The patch generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 265 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 730 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 304 the patch passed
+1 javadoc 68 the patch passed
_ Other Tests _
+1 unit 171 hbase-common in the patch passed.
-1 unit 8717 hbase-server in the patch failed.
+1 unit 815 hbase-backup in the patch passed.
+1 asflicense 90 The patch does not generate ASF License warnings.
13097
Reason Tests
Failed junit tests hadoop.hbase.replication.TestSerialSyncReplication
hadoop.hbase.regionserver.TestOpenSeqNumUnexpectedIncrease
hadoop.hbase.replication.regionserver.TestSyncReplicationShipperQuit
hadoop.hbase.TestSequenceIdMonotonicallyIncreasing
hadoop.hbase.client.TestHbck
hadoop.hbase.replication.TestSerialReplication
Subsystem Report/Notes
Docker Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/1/artifact/out/Dockerfile
GITHUB PR #330
Optional Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux bd0656cc4f09 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / 9aee88e
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/1/artifact/out/diff-checkstyle-hbase-server.txt
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/1/artifact/out/diff-checkstyle-hbase-backup.txt
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/1/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/1/testReport/
Max. process+thread count 4817 (vs. ulimit of 10000)
modules C: hbase-common hbase-server hbase-backup U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/1/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache9
Copy link
Contributor Author

Apache9 commented Jun 23, 2019

Fixed the failed UTs. In the new patch, will delete the wrong region wal directory after successfully opening a region. And also, in GCRegionProcedure we will delete the region wal directory, and in DeleteTableProcedure.deleteFromFs(which will be called from many places), we will delete the table wal directory.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 43 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 4 new or modified test files.
_ master Compile Tests _
0 mvndep 28 Maven dependency ordering for branch
+1 mvninstall 259 master passed
+1 compile 99 master passed
+1 checkstyle 120 master passed
+1 shadedjars 281 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 292 master passed
+1 javadoc 68 master passed
_ Patch Compile Tests _
0 mvndep 14 Maven dependency ordering for patch
+1 mvninstall 256 the patch passed
+1 compile 99 the patch passed
+1 javac 99 the patch passed
+1 checkstyle 24 The patch passed checkstyle in hbase-common
+1 checkstyle 80 hbase-server: The patch generated 0 new + 388 unchanged - 32 fixed = 388 total (was 420)
+1 checkstyle 13 The patch passed checkstyle in hbase-backup
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 274 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 768 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 312 the patch passed
+1 javadoc 66 the patch passed
_ Other Tests _
+1 unit 156 hbase-common in the patch passed.
-1 unit 12930 hbase-server in the patch failed.
+1 unit 964 hbase-backup in the patch passed.
+1 asflicense 76 The patch does not generate ASF License warnings.
17589
Reason Tests
Failed junit tests hadoop.hbase.replication.TestSerialReplication
hadoop.hbase.client.TestHbck
Subsystem Report/Notes
Docker Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/2/artifact/out/Dockerfile
GITHUB PR #330
Optional Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux cb8808c0c881 4.4.0-141-generic #167~14.04.1-Ubuntu SMP Mon Dec 10 13:20:24 UTC 2018 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / 9aee88e
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/2/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/2/testReport/
Max. process+thread count 4640 (vs. ulimit of 10000)
modules C: hbase-common hbase-server hbase-backup U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/2/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache9
Copy link
Contributor Author

Apache9 commented Jun 24, 2019

Let me check the failed UTs.

@Apache9
Copy link
Contributor Author

Apache9 commented Jun 24, 2019

TestHbck.testRecoverSplitAfterMetaUpdated is still failing. Will dig more.

*/
public Path getRegionDir(RegionInfo region) {
return FSUtils.getRegionDir(FSUtils.getTableDir(getRootDir(), region.getTable()), region);
return FSUtils.getRegionDirFromRootDir(getRootDir(), region);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this? The old impl should be getRegionDirFromTableDir?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are the same...

You can see the implementation of getRegionDirFromRootDir, it will first generate the tableDir...

// Cleanup the directories on WAL filesystem also
Path regionWALDir = FSUtils.getWALRegionDir(env.getMasterConfiguration(),
getRegion().getTable(), getRegion().getEncodedName());
walFs.delete(regionWALDir, true);
Copy link
Contributor

Choose a reason for hiding this comment

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

regionWALDir should already be deleted when archive region dir?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They could be on different file system. The table data are on the normal file system and these are on the wal file system. By default they are the same but they could be different, i.e, when deploying HBase on S3.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it. But for the wrong regionWALDir, how about exist first and then delete it?

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 check exists first


// Delete the directory on wal filesystem
FileSystem walFs = mfs.getWALFileSystem();
Path tableWALDir = FSUtils.getWALTableDir(env.getMasterConfiguration(), tableName);
Copy link
Contributor

Choose a reason for hiding this comment

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

This should already be deleted when archive table?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They could be on different file system. The table data are on the normal file system and these are on the wal file system. By default they are the same but they could be different, i.e, when deploying HBase on S3.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it.

if (!createDir(splitdir)) {
throw new IOException("Failed create of " + splitdir);
}
Path daughterATmpDir = getSplitsDir(daughterA);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have to create the directories for daughter regions here, as it is possible that we do not have any store files to split, which means the directories may not be created when we call commitDaugherRegion, and then we will miss the .regioninfo file and cause TestHbck to fail. Not sure why this does not have problem in the past but it is no harm...

Copy link
Contributor

Choose a reason for hiding this comment

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

ok

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 92 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 4 new or modified test files.
_ master Compile Tests _
0 mvndep 25 Maven dependency ordering for branch
+1 mvninstall 246 master passed
+1 compile 97 master passed
+1 checkstyle 113 master passed
+1 shadedjars 268 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 272 master passed
+1 javadoc 69 master passed
_ Patch Compile Tests _
0 mvndep 15 Maven dependency ordering for patch
+1 mvninstall 240 the patch passed
+1 compile 97 the patch passed
+1 javac 97 the patch passed
+1 checkstyle 23 The patch passed checkstyle in hbase-common
+1 checkstyle 74 hbase-server: The patch generated 0 new + 388 unchanged - 32 fixed = 388 total (was 420)
+1 checkstyle 15 The patch passed checkstyle in hbase-backup
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 266 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 719 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 302 the patch passed
+1 javadoc 71 the patch passed
_ Other Tests _
+1 unit 169 hbase-common in the patch passed.
-1 unit 8530 hbase-server in the patch failed.
+1 unit 791 hbase-backup in the patch passed.
+1 asflicense 73 The patch does not generate ASF License warnings.
12927
Reason Tests
Failed junit tests hadoop.hbase.client.TestHbck
Subsystem Report/Notes
Docker Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/3/artifact/out/Dockerfile
GITHUB PR #330
Optional Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 8b38e7979e70 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / 9aee88e
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/3/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/3/testReport/
Max. process+thread count 4792 (vs. ulimit of 10000)
modules C: hbase-common hbase-server hbase-backup U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/3/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 135 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 4 new or modified test files.
_ master Compile Tests _
0 mvndep 27 Maven dependency ordering for branch
+1 mvninstall 247 master passed
+1 compile 102 master passed
+1 checkstyle 116 master passed
+1 shadedjars 273 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 273 master passed
+1 javadoc 68 master passed
_ Patch Compile Tests _
0 mvndep 15 Maven dependency ordering for patch
+1 mvninstall 253 the patch passed
+1 compile 105 the patch passed
+1 javac 105 the patch passed
+1 checkstyle 24 The patch passed checkstyle in hbase-common
+1 checkstyle 76 hbase-server: The patch generated 0 new + 388 unchanged - 32 fixed = 388 total (was 420)
+1 checkstyle 15 The patch passed checkstyle in hbase-backup
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 263 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 728 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 306 the patch passed
+1 javadoc 70 the patch passed
_ Other Tests _
+1 unit 171 hbase-common in the patch passed.
-1 unit 16025 hbase-server in the patch failed.
+1 unit 1095 hbase-backup in the patch passed.
+1 asflicense 85 The patch does not generate ASF License warnings.
20816
Reason Tests
Failed junit tests hadoop.hbase.client.TestSnapshotTemporaryDirectoryWithRegionReplicas
hadoop.hbase.client.TestFromClientSide
hadoop.hbase.client.TestFromClientSideWithCoprocessor
hadoop.hbase.master.TestMasterShutdown
Subsystem Report/Notes
Docker Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/4/artifact/out/Dockerfile
GITHUB PR #330
Optional Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 79ec73004e79 4.4.0-137-generic #163-Ubuntu SMP Mon Sep 24 13:14:43 UTC 2018 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / c1e5350
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/4/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/4/testReport/
Max. process+thread count 4947 (vs. ulimit of 10000)
modules C: hbase-common hbase-server hbase-backup U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/4/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 49 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 4 new or modified test files.
_ master Compile Tests _
0 mvndep 12 Maven dependency ordering for branch
+1 mvninstall 236 master passed
+1 compile 96 master passed
+1 checkstyle 111 master passed
+1 shadedjars 263 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 276 master passed
+1 javadoc 69 master passed
_ Patch Compile Tests _
0 mvndep 16 Maven dependency ordering for patch
+1 mvninstall 238 the patch passed
+1 compile 96 the patch passed
+1 javac 96 the patch passed
+1 checkstyle 22 The patch passed checkstyle in hbase-common
+1 checkstyle 73 hbase-server: The patch generated 0 new + 388 unchanged - 32 fixed = 388 total (was 420)
+1 checkstyle 14 The patch passed checkstyle in hbase-backup
+1 whitespace 1 The patch has no whitespace issues.
+1 shadedjars 276 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 775 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 302 the patch passed
+1 javadoc 66 the patch passed
_ Other Tests _
+1 unit 166 hbase-common in the patch passed.
-1 unit 16293 hbase-server in the patch failed.
+1 unit 1023 hbase-backup in the patch passed.
+1 asflicense 85 The patch does not generate ASF License warnings.
20919
Reason Tests
Failed junit tests hadoop.hbase.client.TestSnapshotTemporaryDirectoryWithRegionReplicas
hadoop.hbase.master.procedure.TestSCPWithReplicas
hadoop.hbase.replication.TestReplicationDisableInactivePeer
hadoop.hbase.util.TestFromClientSide3WoUnsafe
Subsystem Report/Notes
Docker Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/5/artifact/out/Dockerfile
GITHUB PR #330
Optional Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 58b3b66e8405 4.4.0-137-generic #163-Ubuntu SMP Mon Sep 24 13:14:43 UTC 2018 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / c1e5350
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/5/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/5/testReport/
Max. process+thread count 5072 (vs. ulimit of 10000)
modules C: hbase-common hbase-server hbase-backup U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/5/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@apurtell apurtell left a comment

Choose a reason for hiding this comment

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

lgtm assuming all tests pass.
I may be back. Using this to make a branch-1 patch. Might find a small detail later.

// Cleanup the directories on WAL filesystem also
Path regionWALDir = FSUtils.getWALRegionDir(env.getMasterConfiguration(),
getRegion().getTable(), getRegion().getEncodedName());
walFs.delete(regionWALDir, true);
Copy link
Contributor

Choose a reason for hiding this comment

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

+1 check exists first

}
}
for (Path file: files) {
for (Path file : filesUnderWrongRegionWALDir) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Small code smell. Now that we have three lists, why not create one List, add to the one lists the files we find in any of the three locations we must check, then process the one list all at once. The only difference here is the log messages are slightly different but operators and us won't care if "root" or "wrong". The error or debug log lines all contain the file path, which is enough, I think.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are on different file systems so at least we need two loops...

return new Path(tabledir, name);
}

/**
Copy link
Contributor

Choose a reason for hiding this comment

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

This is good

@apurtell
Copy link
Contributor

After the fix is ready we should also have a unit test that confirms that no files are written outside of where we expect, so we can catch this kind of error in the future. Could be done as part of this work or as a follow up PR and JIRA, but we should have that additional test coverage in place going forward.

Path tableWALDir = FSUtils.getWALTableDir(env.getMasterConfiguration(), tableName);
if (walFs.exists(tableWALDir) && !walFs.delete(tableWALDir, true)) {
throw new IOException("Couldn't delete table dir on wal filesystem" + tableWALDir);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we not be checking for wrong wal directory here too and deleting that if it exists?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not necessary I think, at least there is no way to delete the namespace directories... So the users hava to use a script to delete the empty directories manually...

// Cleanup the directories on WAL filesystem also
Path regionWALDir = FSUtils.getWALRegionDir(env.getMasterConfiguration(),
getRegion().getTable(), getRegion().getEncodedName());
walFs.delete(regionWALDir, true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please log at DEBUG if delete fails

walFs.delete(regionWALDir, true);
Path wrongRegionWALDir = FSUtils.getWrongWALRegionDir(env.getMasterConfiguration(),
getRegion().getTable(), getRegion().getEncodedName());
walFs.delete(wrongRegionWALDir, true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please log at DEBUG if delete fails

getRegionInfo().getEncodedName());
FileSystem walFs = getWalFileSystem();
if (walFs.exists(wrongRegionWALDir)) {
walFs.delete(wrongRegionWALDir, true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please log at DEBUG if delete fails

@Apache9
Copy link
Contributor Author

Apache9 commented Jun 25, 2019

After the fix is ready we should also have a unit test that confirms that no files are written outside of where we expect, so we can catch this kind of error in the future. Could be done as part of this work or as a follow up PR and JIRA, but we should have that additional test coverage in place going forward.

Let's do this in a follow up, as the 'outside of where we expect' is not a clear description, we need to discuss how to implement the test, as well as how to check the result.

Let me address the review comments.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 26 Docker mode activated.
_ Prechecks _
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 4 new or modified test files.
_ master Compile Tests _
0 mvndep 26 Maven dependency ordering for branch
+1 mvninstall 250 master passed
+1 compile 98 master passed
+1 checkstyle 113 master passed
+1 shadedjars 266 branch has no errors when building our shaded downstream artifacts.
+1 findbugs 255 master passed
+1 javadoc 68 master passed
_ Patch Compile Tests _
0 mvndep 15 Maven dependency ordering for patch
+1 mvninstall 243 the patch passed
+1 compile 98 the patch passed
+1 javac 98 the patch passed
+1 checkstyle 23 The patch passed checkstyle in hbase-common
+1 checkstyle 74 hbase-server: The patch generated 0 new + 388 unchanged - 32 fixed = 388 total (was 420)
+1 checkstyle 14 The patch passed checkstyle in hbase-backup
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 271 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 737 Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
+1 findbugs 305 the patch passed
+1 javadoc 65 the patch passed
_ Other Tests _
+1 unit 168 hbase-common in the patch passed.
-1 unit 9192 hbase-server in the patch failed.
+1 unit 864 hbase-backup in the patch passed.
+1 asflicense 89 The patch does not generate ASF License warnings.
13598
Reason Tests
Failed junit tests hadoop.hbase.io.asyncfs.TestSaslFanOutOneBlockAsyncDFSOutput
Subsystem Report/Notes
Docker Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/6/artifact/out/Dockerfile
GITHUB PR #330
Optional Tests dupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux a81530de7cc1 4.4.0-139-generic #165-Ubuntu SMP Wed Oct 24 10:58:50 UTC 2018 x86_64 GNU/Linux
Build tool maven
Personality /testptch/patchprocess/precommit/personality/provided.sh
git revision master / 841b319
maven version: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java 1.8.0_181
findbugs v3.1.11
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/6/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/6/testReport/
Max. process+thread count 4650 (vs. ulimit of 10000)
modules C: hbase-common hbase-server hbase-backup U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-330/6/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@Apache9 Apache9 merged commit b426142 into apache:master Jun 25, 2019
asfgit pushed a commit that referenced this pull request Jun 25, 2019
asfgit pushed a commit that referenced this pull request Jun 25, 2019
asfgit pushed a commit that referenced this pull request Jun 25, 2019
asfgit pushed a commit that referenced this pull request Jun 25, 2019
wchevreuil pushed a commit to wchevreuil/hbase that referenced this pull request Jul 3, 2019
for (Path file: files) {
if (!walFS.delete(file, false)) {
LOG.error("Failed delete of " + file);
for (Path file : filesUnderRootDir) {

Choose a reason for hiding this comment

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

hi, if the region is read-only mode for HbaseTableSnapshotInputFormat, it try to delete the filesUnderRootDir and no access, it will throw exception and failed

infraio pushed a commit to infraio/hbase that referenced this pull request Aug 17, 2020
symat pushed a commit to symat/hbase that referenced this pull request Feb 17, 2021
)

Signed-off-by: Guanghao Zhang <[email protected]>
Signed-off-by: Andrew Purtell <[email protected]>
(cherry picked from commit 2b7a7da)

Change-Id: I01752de3d258ac5e68fe0cd735bafadedb7547c3
Sign up for free to 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.

6 participants