[ 
https://issues.apache.org/jira/browse/HIVE-26869?focusedWorklogId=834600&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-834600
 ]

ASF GitHub Bot logged work on HIVE-26869:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 19/Dec/22 18:46
            Start Date: 19/Dec/22 18:46
    Worklog Time Spent: 10m 
      Work Description: 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.




Issue Time Tracking
-------------------

    Worklog Id:     (was: 834600)
    Time Spent: 1h 10m  (was: 1h)

> Backport of HIVE-25250 Branch-3: Fix 
> TestHS2ImpersonationWithRemoteMS.testImpersonation
> ---------------------------------------------------------------------------------------
>
>                 Key: HIVE-26869
>                 URL: https://issues.apache.org/jira/browse/HIVE-26869
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Aman Raj
>            Assignee: Aman Raj
>            Priority: Critical
>              Labels: pull-request-available
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>




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

Reply via email to