@Override public MetaData checkForNewMetaData(Long expectedVersion) throws NoPersistedMetaDataException {
  MetaData localMetaData=readMetaDataAsRow(ConsistencyLevel.ONE);
  if (localMetaData != null && localMetaData.version() >= expectedVersion) {
    return localMetaData;
  }
  if (localMetaData == null) {
    throw new NoPersistedMetaDataException("No cluster metadata in " + this.elasticAdminKeyspaceName);
  }
  MetaData quorumMetaData=readMetaDataAsRow(this.metadataReadCL);
  if (quorumMetaData.version() >= expectedVersion) {
    return quorumMetaData;
  }
  return null;
}

@ Override public MetaData checkForNewMetaData ( Long expectedVersion ) throws NoPersistedMetaDataException { MetaData localMetaData = readMetaDataAsRow ( ConsistencyLevel . ONE ) ; if ( localMetaData != null && localMetaData . version ( ) >= expectedVersion ) { return localMetaData ; } if ( localMetaData == null ) { throw new NoPersistedMetaDataException ( "No cluster metadata in " + this . elasticAdminKeyspaceName ) ; } MetaData quorumMetaData = readMetaDataAsRow ( this . metadataReadCL ) ; if ( quorumMetaData . version ( ) >= expectedVersion ) { return quorumMetaData ; } return null ; }
try to read fresher metadata from cassandra .
