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

Sergio Peña updated SENTRY-2069:
--------------------------------
    Priority: Minor  (was: Major)

> HDFS kerberos timeout tests take 7+ minutes to finish
> -----------------------------------------------------
>
>                 Key: SENTRY-2069
>                 URL: https://issues.apache.org/jira/browse/SENTRY-2069
>             Project: Sentry
>          Issue Type: Test
>          Components: Sentry
>            Reporter: Sergio Peña
>            Priority: Minor
>
> While taking a look at the time spent on the sentry tests, I found that the 
> HDFS timeout tests take 7+ minutes to finish:
> {noformat}
> [INFO] Running org.apache.sentry.hdfs.TestKrbConnectionTimeout
> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 449.31 
> s - in org.apache.sentry.hdfs.TestKrbConnectionTimeout
> {noformat}
> I see that the test sleeps for 400s before attempting to reconnect to HDFS.
> {noformat}
> @Test
>   public void testConnectionAfterTicketTimeout() throws Exception {
>     Thread.sleep(400000);
>     connectToHdfsSyncService();
>   }
> {noformat}
> 1. I think we could reduce the ticket renewal time to speed the test case 
> (See MiniKdc.MAX_RENEWABLE_LIFETIME).
> 2. The test case is not verifying the renewal was done. How can we verify 
> this renewal is correct? There is some code on the 
> SentryTransportFactory.open() to renew the ticket, but that is never 
> triggered when I was doing tests.
> We should improve this test case to speed the test and check that the renewal 
> is working.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to