public static ZkPartitionProperties create(ZooKeeperPlus zk, String partsRoot, int partNum, long numBytes, long numRecords) throws KeeperException, InterruptedException {
String partPath = ZkPath.append(partsRoot, nodeName(partNum));
if (zk.exists(partPath, false) == null) {
zk.create(partPath, null);
zk.createLong(ZkPath.append(partPath, "num_bytes"), numBytes);
zk.createLong(ZkPath.append(partPath, "num_records"), numRecords);
zk.create(ZkPath.append(partPath, DotComplete.NODE_NAME), null);
}
return new ZkPartitionProperties(zk, partPath);
}