Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -4479,6 +4479,13 @@ public void flushMasterStore() throws IOException {
}
}
masterRegion.flush(true);

try {
masterRegion.requestRollAll();
masterRegion.waitUntilWalRollFinished();
} catch (Exception e) {
throw new IOException("Error rolling HMaster WAL", e);
}
if (this.cpHost != null) {
try {
cpHost.postMasterStoreFlush();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import static org.apache.hadoop.hbase.HConstants.HREGION_LOGDIR_NAME;

import com.google.errorprone.annotations.RestrictedApi;
import java.io.IOException;
import java.util.List;
import java.util.Optional;
Expand Down Expand Up @@ -248,14 +247,10 @@ public FlushResult flush(boolean force) throws IOException {
}
}

@RestrictedApi(explanation = "Should only be called in tests", link = "",
allowedOnPath = ".*/src/test/.*")
public void requestRollAll() {
walRoller.requestRollAll();
}

@RestrictedApi(explanation = "Should only be called in tests", link = "",
allowedOnPath = ".*/src/test/.*")
public void waitUntilWalRollFinished() throws InterruptedException {
walRoller.waitUntilWalRollFinished();
}
Expand Down