public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetTxn_high_water_mark()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'txn_high_water_mark' is unset! Struct:" + toString()); } if (!isSetOpen_txns()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'open_txns' is unset! Struct:" + toString()); } if (!isSetAbortedBits()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'abortedBits' is unset! Struct:" + toString()); } // check for sub-struct validity }
TxnStore.FAILED_RESPONSE, resp.getCompacts().get(0).getState()); GetOpenTxnsResponse openResp = txnHandler.getOpenTxns(); Assert.assertEquals(openResp.toString(), 1, openResp.getOpen_txnsSize()); Assert.assertTrue(openResp.toString(), BitSet.valueOf(openResp.getAbortedBits()).get(0)); Assert.assertEquals(openResp.toString(), 1, openResp.getOpen_txnsSize()); Assert.assertTrue(openResp.toString(), BitSet.valueOf(openResp.getAbortedBits()).get(0)); Assert.assertEquals(1, TxnDbUtil.countQueryAgent(hiveConf, "select count(*) from TXN_COMPONENTS")); Assert.assertEquals(openResp.toString(), 0, openResp.getOpen_txnsSize());
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetTxn_high_water_mark()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'txn_high_water_mark' is unset! Struct:" + toString()); } if (!isSetOpen_txns()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'open_txns' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetTxn_high_water_mark()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'txn_high_water_mark' is unset! Struct:" + toString()); } if (!isSetOpen_txns()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'open_txns' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetTxn_high_water_mark()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'txn_high_water_mark' is unset! Struct:" + toString()); } if (!isSetOpen_txns()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'open_txns' is unset! Struct:" + toString()); } if (!isSetAbortedBits()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'abortedBits' is unset! Struct:" + toString()); } // check for sub-struct validity }