protected ZkWriteCommand updateStateNew(ClusterState clusterState,final ZkNodeProps message){
  String collectionName=message.getStr(ZkStateReader.COLLECTION_PROP);
  if (!checkCollectionKeyExistence(message))   return ZkStateWriter.NO_OP;
  String sliceName=message.getStr(ZkStateReader.SHARD_ID_PROP);
  if (collectionName == null || sliceName == null) {
    log.error("Invalid collection and slice {}",message);
    return ZkStateWriter.NO_OP;
  }
  DocCollection collection=clusterState.getCollectionOrNull(collectionName);
  Slice slice=collection != null ? collection.getSlice(sliceName) : null;
  if (slice == null) {
    log.error("No such slice exists {}",message);
    return ZkStateWriter.NO_OP;
  }
  return updateState(clusterState,message);
}

protected ZkWriteCommand updateStateNew ( ClusterState clusterState , final ZkNodeProps message ) { String collectionName = message . getStr ( ZkStateReader . COLLECTION_PROP ) ; if ( ! checkCollectionKeyExistence ( message ) ) return ZkStateWriter . NO_OP ; String sliceName = message . getStr ( ZkStateReader . SHARD_ID_PROP ) ; if ( collectionName == null || sliceName == null ) { log . error ( "Invalid collection and slice {}" , message ) ; return ZkStateWriter . NO_OP ; } DocCollection collection = clusterState . getCollectionOrNull ( collectionName ) ; Slice slice = collection != null ? collection . getSlice ( sliceName ) : null ; if ( slice == null ) { log . error ( "No such slice exists {}" , message ) ; return ZkStateWriter . NO_OP ; } return updateState ( clusterState , message ) ; }
handles non - legacy state updates
