Package com.sleepycat.je

Examples of com.sleepycat.je.XAEnvironment.rollback()


      xaEnv2 = (XAEnvironment) env;
      Transaction recoveryXATxn1 = xaEnv2.getXATransaction(xid1);
      Transaction recoveryXATxn2 = xaEnv2.getXATransaction(xid2);
      xaEnv2.commit(xid1, false);
      xaEnv2.rollback(xid2);
      verifyData(expectedData1, false, 0, NUM_DBS);
      verifyData(expectedData2, false, NUM_DBS, NUM_DBS << 1);
      forceCloseEnvOnly();
      xaRecoverOnly(NUM_DBS);
      verifyData(expectedData1, false, 0, NUM_DBS);
View Full Code Here


    xaEnv.commit(xid, false);
      } catch (XAException XAE) {
    /* Expect this. */
    assertTrue(XAE.errorCode == XAException.XA_RBROLLBACK);
      }
      xaEnv.rollback(xid);

      /*
       * Check TMSUCCESS.
       */
      xid = new XidImpl(1, "TwoPCTest6".getBytes(), null);
View Full Code Here

      }

      if (commit) {
    xaEnv.commit(xid, false);
      } else {
    xaEnv.rollback(xid);
      }

      if (recover) {
    verifyData(expectedData, commit, NUM_DBS);
    forceCloseEnvOnly();
View Full Code Here

  XidImpl xid =
      new XidImpl(1, "MakeLogEntryVersionData".getBytes(), null);
  env.start(xid, XAResource.TMNOFLAGS);
  env.prepare(xid);
  env.rollback(xid);

        env.close();

        /*
         * Get the set of all log entry types we expect to output.  We punt on
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.