DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
Introduce Compaction Transactional Phases
| Code Block |
|---|
/**
* An abstract class that would be extended to be the actual transactional phases for compaction
*/
abstract static class CompactionPhase {
private String phaseName = "";
CompactionPhase() {
}
CompactionPhase(String phaseName) {
this.phaseName = phaseName;
}
boolean run() {
try {
start();
return complete();
} catch (IOException e) {
LOG.error("Encounter exception in compaction phase {}. Abort current compaction.", phaseName, e);
abort();
}
return false;
}
abstract void start() throws IOException;
abstract boolean complete() throws IOException;
abstract void abort();
} |
...