HDFS-14187. Make warning message more clear when there are not enough data nodes for EC write. Contributed by Kitti Nanasi.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org> (cherry picked from commit 0ab7fc92009fec2f0ab341f3d878e1b8864b8ea9)
This commit is contained in:
parent
eaf09e51ba
commit
cb701f4da0
@ -497,7 +497,10 @@ private void allocateNewBlock() throws IOException {
|
||||
// Set exception and close streamer as there is no block locations
|
||||
// found for the parity block.
|
||||
LOG.warn("Cannot allocate parity block(index={}, policy={}). " +
|
||||
"Not enough datanodes? Exclude nodes={}", i, ecPolicy.getName(),
|
||||
"Exclude nodes={}. There may not be enough datanodes or " +
|
||||
"racks. You can check if the cluster topology supports " +
|
||||
"the enabled erasure coding policies by running the command " +
|
||||
"'hdfs ec -verifyClusterSetup'.", i, ecPolicy.getName(),
|
||||
excludedNodes);
|
||||
si.getLastException().set(
|
||||
new IOException("Failed to get parity block, index=" + i));
|
||||
|
Loading…
x
Reference in New Issue
Block a user