[ 
https://issues.apache.org/jira/browse/HIVE-29626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Denys Kuzmenko resolved HIVE-29626.
-----------------------------------
    Fix Version/s: 4.3.0
       Resolution: Fixed

> testFireInsertEvent() test failure for TestHive and TestHiveRemote
> ------------------------------------------------------------------
>
>                 Key: HIVE-29626
>                 URL: https://issues.apache.org/jira/browse/HIVE-29626
>             Project: Hive
>          Issue Type: Test
>          Components: Hive, Tests
>            Reporter: Venugopal Reddy K
>            Assignee: Venugopal Reddy K
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 4.3.0
>
>
> *[Description]* 
> {noformat}
> org.apache.hadoop.hive.ql.metadata.TestHive#testFireInsertEvent{noformat}
> and 
> {noformat}
> org.apache.hadoop.hive.ql.metadata.TestHiveRemote#testFireInsertEvent 
> {noformat}
> tests do not run currently because @Test annotation(from org.junit.Test) is 
> missing for testFireInsertEvent() at 
> [https://github.com/apache/hive/blob/master/ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHive.java#L1096]
>  
> And when we add the test annotation tests fails with below assertion errors.
> {code:java}
> [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.987 
> s <<< FAILURE! -- in org.apache.hadoop.hive.ql.metadata.TestHive
> [ERROR] org.apache.hadoop.hive.ql.metadata.TestHive.testFireInsertEvent -- 
> Time elapsed: 0.766 s <<< FAILURE!
> java.lang.AssertionError
>  at org.junit.Assert.fail(Assert.java:87)
>  at org.junit.Assert.assertTrue(Assert.java:42)
>  at org.junit.Assert.assertTrue(Assert.java:53)
>  at 
> org.apache.hadoop.hive.ql.metadata.TestHive.testFireInsertEvent(TestHive.java:1158)
>  at java.base/java.lang.reflect.Method.invoke(Method.java:580)
>  
> [INFO] 
> [INFO] Results:
> [INFO] 
> [ERROR] Failures: 
> [ERROR]   TestHive.testFireInsertEvent:1158
> [INFO] 
> [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
> [INFO]
> {code}
>  
> {code:java}
>  [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 
> 5.127 s <<< FAILURE! -- in org.apache.hadoop.hive.ql.metadata.TestHiveRemote
> [ERROR] org.apache.hadoop.hive.ql.metadata.TestHiveRemote.testFireInsertEvent 
> -- Time elapsed: 1.738 s <<< FAILURE!
> java.lang.AssertionError
>  at 
> org.apache.hadoop.hive.ql.metadata.TestHive.testFireInsertEvent(TestHive.java:1158)
>  at java.base/java.lang.reflect.Method.invoke(Method.java:580)
>  
> [INFO] 
> [INFO] Results:
> [INFO] 
> [ERROR] Failures: 
> [ERROR]   TestHiveRemote>TestHive.testFireInsertEvent:1158
> [INFO] 
> [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
> [INFO]
> {code}
>  
> *[Analysis]* 
> Have looked at the 
> PR[[https://github.com/apache/hive/pull/5926]|https://github.com/apache/hive/pull/5926]
>  that updated this test for https://issues.apache.org/jira/browse/HIVE-29067. 
> Cursor seem to have generated code for the test correctly. Appears that it 
> was not picked to PR correctly.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to