d-c-manning commented on code in PR #7063:
URL: https://github.com/apache/hbase/pull/7063#discussion_r2136287654
##########
hbase-server/src/test/java/org/apache/hadoop/hbase/snapshot/TestRestoreSnapshotHelper.java:
##########
@@ -107,6 +117,8 @@ public void setup() throws Exception {
conf = TEST_UTIL.getConfiguration();
setupConf(conf);
CommonFSUtils.setRootDir(conf, rootDir);
+ // Turn off balancer so it doesn't cut in and mess up our placements.
+ admin.balancerSwitch(false, true);
Review Comment:
since other places in the class just call `TEST_UTIL.getAdmin` you don't
have to store the variable. (Or if you store the variable, might as well use it
in the testmethod directly.)
```suggestion
TEST_UTIL.getAdmin().balancerSwitch(false, true);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]