Tabnine Logo
UnexpectedReplicaStateException.<init>
Code IndexAdd Tabnine 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)

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

    • Finding current android device location
    • getResourceAsStream (ClassLoader)
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • onCreateOptionsMenu (Activity)
    • Menu (java.awt)
    • FileWriter (java.io)
      A specialized Writer that writes to a file in the file system. All write requests made by calling me
    • SocketTimeoutException (java.net)
      This exception is thrown when a timeout expired on a socket read or accept operation.
    • Iterator (java.util)
      An iterator over a sequence of objects, such as a collection.If a collection has been changed since
    • ConcurrentHashMap (java.util.concurrent)
      A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
    • Logger (org.slf4j)
      The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
    • 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