amanraj2520 commented on PR #3873:
URL: https://github.com/apache/hive/pull/3873#issuecomment-1358090827

   Hi @abstractdog @ayushtkn @zabetak 
   I was able to produce this issue in my local. Need some suggestion about the 
fix.
   
   This is the error :
   ```
   [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 
703.357 s <<< FAILURE! - in 
org.apache.hive.service.TestHS2ImpersonationWithRemoteMS
   [ERROR] 
testImpersonation(org.apache.hive.service.TestHS2ImpersonationWithRemoteMS)  
Time elapsed: 668.923 s  <<< FAILURE!
   java.lang.AssertionError: Unexpected table directory '34015' in warehouse
           at org.junit.Assert.fail(Assert.java:88)
           at 
org.apache.hive.service.TestHS2ImpersonationWithRemoteMS.testImpersonation(TestHS2ImpersonationWithRemoteMS.java:115)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   ```
   
   The issue is that in the test the directory structure where this table is 
getting created is like this hdfs://localhost:43235/base/warehouse/44157 : 
   
![image](https://user-images.githubusercontent.com/104416558/208496857-45ca91e3-404e-42a1-845b-65c41f697197.png)
   
   When it tries to get the directory name it returns 44157 instead of 
foo_table or bar_table. This is why this is throwing the error. I see a bunch 
of other test cases failing because of this. Any idea which commit that I need 
to look into. I also compared this code with oss/master and oss/branch-3.1. 
There are no differences related to this. Also a point to be noted is that this 
test fails in oss/branch-3.1.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to