-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
ZOOKEEPER-3839: ReconfigBackupTest Remove getFileContent #1360
Conversation
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.
Nice improvement! +1
@@ -93,7 +83,7 @@ public void testBackupStatic() throws Exception { | |||
mt[i] = new MainThread(i, clientPorts[i], currentQuorumCfgSection, false); | |||
// check that a dynamic configuration file doesn't exist | |||
assertNull("static file backup shouldn't exist before bootup", mt[i].getFileByName("zoo.cfg.bak")); | |||
staticFileContent[i] = getFileContent(mt[i].confFile); | |||
staticFileContent[i] = FileUtils.readFileToString(mt[i].confFile, StandardCharsets.UTF_8); |
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.
You seem to have a lot of little open PRs for the same action in different parts of the code. It is making reviewing a bit redundant. See my comments on your other PR with my suggestions to use static imports for UTF_8
for readability, and the Java-native options for reading files without needing to use Commons.
b354a6c
to
0d17b60
Compare
@ctubbsii @nkalmar Another review please :) When you take a look at it, one of the things to review is that the previous implementation used a |
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.
LGTM
Thanks
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.
LGTM
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.
LGTM.
Merged into |
Author: David Mollitor <dmollitor@apache.org> Reviewers: Norbert Kalmar <nkalmar@apache.org>, Enrico Olivelli <eolivelli@apache.org>, Christopher Tubbs <ctubbsii@apache.org>, Damien Diederen <ddiederen@apache.org> Closes apache#1360 from belugabehr/ZOOKEEPER-3839
Author: David Mollitor <dmollitor@apache.org> Reviewers: Norbert Kalmar <nkalmar@apache.org>, Enrico Olivelli <eolivelli@apache.org>, Christopher Tubbs <ctubbsii@apache.org>, Damien Diederen <ddiederen@apache.org> Closes apache#1360 from belugabehr/ZOOKEEPER-3839
Author: David Mollitor <dmollitor@apache.org> Reviewers: Norbert Kalmar <nkalmar@apache.org>, Enrico Olivelli <eolivelli@apache.org>, Christopher Tubbs <ctubbsii@apache.org>, Damien Diederen <ddiederen@apache.org> Closes apache#1360 from belugabehr/ZOOKEEPER-3839
Author: David Mollitor <dmollitor@apache.org> Reviewers: Norbert Kalmar <nkalmar@apache.org>, Enrico Olivelli <eolivelli@apache.org>, Christopher Tubbs <ctubbsii@apache.org>, Damien Diederen <ddiederen@apache.org> Closes apache#1360 from belugabehr/ZOOKEEPER-3839
No description provided.