|
@@ -446,7 +446,7 @@ public class DataNode extends ReconfigurableBase
|
|
try {
|
|
try {
|
|
LOG.info("Reconfiguring " + property + " to " + newVal);
|
|
LOG.info("Reconfiguring " + property + " to " + newVal);
|
|
this.refreshVolumes(newVal);
|
|
this.refreshVolumes(newVal);
|
|
- } catch (Exception e) {
|
|
|
|
|
|
+ } catch (IOException e) {
|
|
throw new ReconfigurationException(property, newVal,
|
|
throw new ReconfigurationException(property, newVal,
|
|
getConf().get(property), e);
|
|
getConf().get(property), e);
|
|
}
|
|
}
|
|
@@ -581,14 +581,15 @@ public class DataNode extends ReconfigurableBase
|
|
IOException ioe = ioExceptionFuture.get();
|
|
IOException ioe = ioExceptionFuture.get();
|
|
if (ioe != null) {
|
|
if (ioe != null) {
|
|
errorMessageBuilder.append(String.format("FAILED TO ADD: %s: %s\n",
|
|
errorMessageBuilder.append(String.format("FAILED TO ADD: %s: %s\n",
|
|
- volume.toString(), ioe.getMessage()));
|
|
|
|
|
|
+ volume, ioe.getMessage()));
|
|
|
|
+ LOG.error("Failed to add volume: " + volume, ioe);
|
|
} else {
|
|
} else {
|
|
effectiveVolumes.add(volume.toString());
|
|
effectiveVolumes.add(volume.toString());
|
|
|
|
+ LOG.info("Successfully added volume: " + volume);
|
|
}
|
|
}
|
|
- LOG.info("Storage directory is loaded: " + volume.toString());
|
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
errorMessageBuilder.append(String.format("FAILED to ADD: %s: %s\n",
|
|
errorMessageBuilder.append(String.format("FAILED to ADD: %s: %s\n",
|
|
- volume.toString(), e.getMessage()));
|
|
|
|
|
|
+ volume, e.getMessage()));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|