Package org.apache.hadoop.hdfs.server.namenode

Examples of org.apache.hadoop.hdfs.server.namenode.RemoteStorageState


      } else {
        if (state != r.getStorageState()) {
          state = StorageState.INCONSISTENT;
          LOG.warn("Inconsistent state detected: "
              + Arrays.toString(call.getResults().values().toArray()));
          return new RemoteStorageState(state, storageInfo);
        }
      }

      if (storageInfo == null) {
        storageInfo = r.getStorageInfo();
      } else {
        if (!storageInfo.equals(r.getStorageInfo())) {
          state = StorageState.INCONSISTENT;
          LOG.warn("Inconsistent state detected: "
              + Arrays.toString(call.getResults().values().toArray()));
          return new RemoteStorageState(state, storageInfo);
        }
      }
    }
   
    // return the state
    return new RemoteStorageState(state, storageInfo);
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.server.namenode.RemoteStorageState

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.