Search in sources :

Example 6 with GetAllWriteEventInfoRequest

use of org.apache.hadoop.hive.metastore.api.GetAllWriteEventInfoRequest in project hive by apache.

the class TestGetAllWriteEventInfo method testGetByWrongTxnId.

@Test
public void testGetByWrongTxnId() throws Exception {
    GetAllWriteEventInfoRequest req = new GetAllWriteEventInfoRequest();
    req.setTxnId(-1);
    List<WriteEventInfo> writeEventInfoList = client.getAllWriteEventInfo(req);
    Assert.assertTrue(writeEventInfoList.isEmpty());
}
Also used : GetAllWriteEventInfoRequest(org.apache.hadoop.hive.metastore.api.GetAllWriteEventInfoRequest) WriteEventInfo(org.apache.hadoop.hive.metastore.api.WriteEventInfo) Test(org.junit.Test) MetastoreCheckinTest(org.apache.hadoop.hive.metastore.annotation.MetastoreCheckinTest)

Aggregations

GetAllWriteEventInfoRequest (org.apache.hadoop.hive.metastore.api.GetAllWriteEventInfoRequest)6 WriteEventInfo (org.apache.hadoop.hive.metastore.api.WriteEventInfo)6 MetastoreCheckinTest (org.apache.hadoop.hive.metastore.annotation.MetastoreCheckinTest)5 Test (org.junit.Test)5 Collections2 (com.google.common.collect.Collections2)1 Lists (com.google.common.collect.Lists)1 File (java.io.File)1 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 LoginException (javax.security.auth.login.LoginException)1 Path (org.apache.hadoop.fs.Path)1 HiveConf (org.apache.hadoop.hive.conf.HiveConf)1 ReplChangeManager (org.apache.hadoop.hive.metastore.ReplChangeManager)1 MetaException (org.apache.hadoop.hive.metastore.api.MetaException)1 NotificationEvent (org.apache.hadoop.hive.metastore.api.NotificationEvent)1 CommitTxnMessage (org.apache.hadoop.hive.metastore.messaging.CommitTxnMessage)1 StringUtils (org.apache.hadoop.hive.metastore.utils.StringUtils)1 ReplUtils (org.apache.hadoop.hive.ql.exec.repl.util.ReplUtils)1 HiveFatalException (org.apache.hadoop.hive.ql.metadata.HiveFatalException)1