Skip to content
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

HBASE-28253: HBCK2 filesystem command to fix version file fails when Master in not up. #139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions hbase-hbck2/src/main/java/org/apache/hbase/HBCK2.java
Original file line number Diff line number Diff line change
Expand Up @@ -1220,15 +1220,12 @@ private int doCommandLine(CommandLine commandLine, Options options) throws IOExc
}

case FILESYSTEM:
try (ClusterConnection connection = connect()) {
checkHBCKSupport(connection, command);
try (FileSystemFsck fsfsck = new FileSystemFsck(getConf())) {
Pair<CommandLine, List<String>> pair =
parseCommandWithFixAndInputOptions(purgeFirst(commands));
return fsfsck.fsck(pair.getSecond(), pair.getFirst().hasOption("f")) != 0
? EXIT_FAILURE
: EXIT_SUCCESS;
}
try (FileSystemFsck fsfsck = new FileSystemFsck(getConf())) {
Pair<CommandLine, List<String>> pair =
parseCommandWithFixAndInputOptions(purgeFirst(commands));
return fsfsck.fsck(pair.getSecond(), pair.getFirst().hasOption("f")) != 0
? EXIT_FAILURE
: EXIT_SUCCESS;
}

case REPLICATION:
Expand Down