|
@@ -161,7 +161,7 @@ class FSEditLog {
|
|
* server to exit
|
|
* server to exit
|
|
*/
|
|
*/
|
|
synchronized void processIOError(int index) throws IOException {
|
|
synchronized void processIOError(int index) throws IOException {
|
|
- if (editStreams == null || editStreams.size() == 1) {
|
|
|
|
|
|
+ if (editStreams == null || editStreams.size() <= 1) {
|
|
throw new IOException("Checkpoint directories inaccessible.");
|
|
throw new IOException("Checkpoint directories inaccessible.");
|
|
}
|
|
}
|
|
assert(index < getNumStorageDirs());
|
|
assert(index < getNumStorageDirs());
|
|
@@ -630,7 +630,7 @@ class FSEditLog {
|
|
//
|
|
//
|
|
getEditFile(idx).delete();
|
|
getEditFile(idx).delete();
|
|
if (!getEditNewFile(idx).renameTo(getEditFile(idx))) {
|
|
if (!getEditNewFile(idx).renameTo(getEditFile(idx))) {
|
|
- processIOError(idx);
|
|
|
|
|
|
+ fsimage.processIOError(idx);
|
|
idx--;
|
|
idx--;
|
|
}
|
|
}
|
|
}
|
|
}
|