Examples of EditLogInputStream


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

    // allow in-progress stream
    readerQjm.selectInputStreams(streams, 0, true, false);
    try {
      assertEquals(1, streams.size());
      // Validate the actual stream contents.
      EditLogInputStream stream = streams.get(0);
      assertEquals(0, stream.getFirstTxId());

      // for inprogress, we can read only up to second last one
      assertEquals(numTxns - 2, stream.getLastTxId());

      verifyEdits(streams, 0, numTxns - 1, txns, true);
      assertNull(stream.readOp());
    } finally {
      IOUtils.cleanup(LOG, streams.toArray(new Closeable[0]));
      streams.clear();
    }
  }
View Full Code Here

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

    for (Map.Entry<AsyncLogger, RemoteEditLogManifest> e : resps.entrySet()) {
      AsyncLogger logger = e.getKey();
      RemoteEditLogManifest manifest = e.getValue();
     
      for (RemoteEditLog remoteLog : manifest.getLogs()) {
        EditLogInputStream elis = new URLLogInputStream(logger,
            remoteLog.getStartTxId(), httpConnectReadTimeoutMs);
        if (elis.isInProgress() && !inProgressOk) {
          continue;
        }
        allStreams.add(elis);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.