HDFS-13309. Ozone: Improve error message in case of missing nodes. Contributed by Elek, Marton.
This commit is contained in:
parent
43f7307829
commit
792ac4d08b
|
@ -291,6 +291,11 @@ public class ContainerStateManager implements Closeable {
|
|||
|
||||
Pipeline pipeline = selector.getReplicationPipeline(type,
|
||||
replicationFactor, containerName);
|
||||
|
||||
Preconditions.checkNotNull(pipeline, "Pipeline type=%s/"
|
||||
+ "replication=%s couldn't be found for the new container. "
|
||||
+ "Do you have enough nodes?", type, replicationFactor);
|
||||
|
||||
ContainerInfo containerInfo = new ContainerInfo.Builder()
|
||||
.setContainerName(containerName)
|
||||
.setState(HdslProtos.LifeCycleState.ALLOCATED)
|
||||
|
|
Loading…
Reference in New Issue