sentry-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergio Peña (JIRA) <j...@apache.org>
Subject [jira] [Created] (SENTRY-2069) HDFS kerberos timeout tests take 7+ minutes to finish
Date Wed, 22 Nov 2017 19:10:00 GMT
Sergio Peña created SENTRY-2069:
-----------------------------------

             Summary: 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


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)

Mime
View raw message