Details
Description
Currently when doing mkdirs on fallback dir, we catching IOE and returning false.
I think we should just throw IOE out as the fs#mkdirs throws IOE out.
I noticed a case when we attempt to create .reserved dirs, NN throws HadoopIAE.
But we will catch and return false. Here exception should be thrown out.
try { return linkedFallbackFs.mkdirs(dirToCreate, permission); } catch (IOException e) { if (LOG.isDebugEnabled()) { StringBuilder msg = new StringBuilder("Failed to create ").append(dirToCreate) .append(" at fallback : ") .append(linkedFallbackFs.getUri()); LOG.debug(msg.toString(), e); } return false; }
Attachments
Issue Links
- links to