Examples of appendNoSync()


Examples of org.apache.hadoop.hbase.regionserver.wal.HLog.appendNoSync()

      // 1. Test case where START_FLUSH throws exception
      IsFlushWALMarker isFlushWALMarker = new IsFlushWALMarker(FlushAction.START_FLUSH);

      // throw exceptions if the WalEdit is a start flush action
      when(hlog.appendNoSync((HTableDescriptor)any(), (HRegionInfo)any(), (HLogKey)any(),
        (WALEdit)argThat(isFlushWALMarker), (AtomicLong)any(), Mockito.anyBoolean(),
        (List<Cell>)any()))
          .thenThrow(new IOException("Fail to append flush marker"));

      // start cache flush will throw exception
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.wal.HLog.appendNoSync()

          long now = System.currentTimeMillis();
          WALEdit walEdit = new WALEdit();
          addFamilyMapToWALEdit(put.getFamilyMap(), walEdit);
          HRegionInfo hri = region.getRegionInfo();
          if (this.noSync) {
            hlog.appendNoSync(hri, hri.getTableName(), walEdit,
                              HConstants.DEFAULT_CLUSTER_ID, now, htd);
          } else {
            hlog.append(hri, hri.getTableName(), walEdit, now, htd);
          }
        }
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.wal.HLog.appendNoSync()

      // 1. Test case where START_FLUSH throws exception
      IsFlushWALMarker isFlushWALMarker = new IsFlushWALMarker(FlushAction.START_FLUSH);

      // throw exceptions if the WalEdit is a start flush action
      when(hlog.appendNoSync((HTableDescriptor)any(), (HRegionInfo)any(), (HLogKey)any(),
        (WALEdit)argThat(isFlushWALMarker), (AtomicLong)any(), Mockito.anyBoolean(),
        (List<Cell>)any()))
          .thenThrow(new IOException("Fail to append flush marker"));

      // start cache flush will throw exception
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.