Codota Logo
UnexpectedReplicaStateException.<init>
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain UnexpectedReplicaStateException
private void myMethod () {
UnexpectedReplicaStateException u =
  • Codota IconExtendedBlock b;HdfsServerConstants.ReplicaState expectedState;new UnexpectedReplicaStateException(b, expectedState)
  • Smart code suggestions by Codota
}
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<init>

Popular methods of UnexpectedReplicaStateException

    Popular in Java

    • Reading from database using SQL prepared statement
    • getSharedPreferences (Context)
    • setContentView (Activity)
    • onCreateOptionsMenu (Activity)
    • Properties (java.util)
      The Properties class represents a persistent set of properties. The Properties can be saved to a st
    • Vector (java.util)
      The Vector class implements a growable array of objects. Like an array, it contains components that
    • ZipFile (java.util.zip)
      This class provides random read access to a zip file. You pay more to read the zip file's central di
    • ImageIO (javax.imageio)
    • Base64 (org.apache.commons.codec.binary)
      Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
    • Logger (org.apache.log4j)
      This is the central class in the log4j package. Most logging operations, except configuration, are d
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now