Examples of TransactionState


Examples of org.apache.hadoop.hbase.client.transactional.TransactionState

  }

  public void testWithoutFlush() throws IOException,
      CommitUnsuccessfulException {
    writeInitalRows();
    TransactionState state1 = makeTransaction(false);
    transactionManager.tryCommit(state1);
    stopOrAbortRegionServer(true);

    Thread t = startVerificationThread(1);
    t.start();
View Full Code Here

Examples of org.apache.hadoop.hbase.client.transactional.TransactionState

  }

  public void testWithFlushBeforeCommit() throws IOException,
      CommitUnsuccessfulException {
    writeInitalRows();
    TransactionState state1 = makeTransaction(false);
    flushRegionServer();
    transactionManager.tryCommit(state1);
    stopOrAbortRegionServer(true);

    Thread t = startVerificationThread(1);
View Full Code Here

Examples of org.apache.hadoop.hbase.client.transactional.TransactionState

  }

  // Move 2 out of ROW1 and 1 into ROW2 and 1 into ROW3
  private TransactionState makeTransaction(final boolean flushMidWay)
      throws IOException {
    TransactionState transactionState = transactionManager.beginTransaction();

    // Reads
    int row1 = Bytes.toInt(table.get(transactionState, ROW1, COL_A).getValue());
    int row2 = Bytes.toInt(table.get(transactionState, ROW2, COL_A).getValue());
    int row3 = Bytes.toInt(table.get(transactionState, ROW3, COL_A).getValue());
View Full Code Here

Examples of org.neo4j.kernel.impl.core.TransactionState

    @Override
    public void acquireLock(LockType lockType, PropertyContainer element) {
        TransactionImpl tx = getCurrentTransaction();
        if (tx==null) return; // no lock taken without external tx
        TransactionState state = tx.getState();
        switch (lockType) {
            case READ:
                state.acquireReadLock(element);
                break;
            case WRITE:
                state.acquireWriteLock(element);
                break;
            default: throw new IllegalStateException("Unknown lock type "+lockType);
        }
    }
View Full Code Here

Examples of org.voltdb.dtxn.TransactionState

     * @return the resulting VoltTable as a length-one array.
     */
    public VoltTable[] executeSysProcPlanFragments(
            SynthesizedPlanFragment pfs[], int aggregatorOutputDependencyId) {

        TransactionState txnState = m_runner.getTxnState();

        // the stack frame drop terminates the recursion and resumes
        // execution of the current stored procedure.
        assert (txnState != null);
        txnState.setupProcedureResume(false, new int[] { aggregatorOutputDependencyId });

        VoltTable[] results = new VoltTable[1];
        executeSysProcPlanFragmentsAsync(pfs);

        // execute the tasks that just got queued.
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.