Tabnine Logo
UnexpectedReplicaStateException
Code IndexAdd Tabnine to your IDE (free)

How to use
UnexpectedReplicaStateException
in
org.apache.hadoop.hdfs.server.datanode

Best Java code snippets using org.apache.hadoop.hdfs.server.datanode.UnexpectedReplicaStateException (Showing top 5 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

throw new UnexpectedReplicaStateException(b,state);
origin: ch.cern.hadoop/hadoop-hdfs

throw new UnexpectedReplicaStateException(b,state);
origin: io.prestosql.hadoop/hadoop-apache

throw new UnexpectedReplicaStateException(b,state);
origin: linkedin/dynamometer

/**
 * Check if a block is valid.
 *
 * @param b           The block to check.
 * @param minLength   The minimum length that the block must have.  May be 0.
 * @param state       If this is null, it is ignored.  If it is non-null, we
 *                        will check that the replica has this state.
 *
 * @throws ReplicaNotFoundException          If the replica is not found
 *
 * @throws UnexpectedReplicaStateException   If the replica is not in the 
 *                                             expected state.
 */
@Override // {@link FsDatasetSpi}
public void checkBlock(ExtendedBlock b, long minLength, ReplicaState state)
  throws ReplicaNotFoundException, UnexpectedReplicaStateException {
 final BInfo binfo = getBInfo(b);
 if (binfo == null) {
  throw new ReplicaNotFoundException(b);
 }
 if ((state == ReplicaState.FINALIZED && !binfo.isFinalized()) ||
   (state != ReplicaState.FINALIZED && binfo.isFinalized())) {
  throw new UnexpectedReplicaStateException(b,state);
 }
}
origin: ch.cern.hadoop/hadoop-hdfs

/**
 * Check if a block is valid.
 *
 * @param b           The block to check.
 * @param minLength   The minimum length that the block must have.  May be 0.
 * @param state       If this is null, it is ignored.  If it is non-null, we
 *                        will check that the replica has this state.
 *
 * @throws ReplicaNotFoundException          If the replica is not found
 *
 * @throws UnexpectedReplicaStateException   If the replica is not in the 
 *                                             expected state.
 */
@Override // {@link FsDatasetSpi}
public void checkBlock(ExtendedBlock b, long minLength, ReplicaState state)
  throws ReplicaNotFoundException, UnexpectedReplicaStateException {
 final BInfo binfo = getBInfo(b);
 
 if (binfo == null) {
  throw new ReplicaNotFoundException(b);
 }
 if ((state == ReplicaState.FINALIZED && !binfo.isFinalized()) ||
   (state != ReplicaState.FINALIZED && binfo.isFinalized())) {
  throw new UnexpectedReplicaStateException(b,state);
 }
}
org.apache.hadoop.hdfs.server.datanodeUnexpectedReplicaStateException

Javadoc

Exception indicating that the replica is in an unexpected state

Most used methods

  • <init>

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • putExtra (Intent)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • String (java.lang)
  • Permission (java.security)
    Legacy security code; do not use.
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now