hawq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From benchristel <...@git.apache.org>
Subject [GitHub] incubator-hawq issue #1379: WIP: Cache UGI objects and clean them periodical...
Date Sat, 30 Jun 2018 00:20:17 GMT
Github user benchristel commented on the issue:

    What's our approach to testing this going to be? Also, the cache should be a separate
class IMO since its behavior and data don't really cohere with `SecurityServletFilter`. Something
    class UserGroupInformationCache {
      public UserGroupInformation get(SegmentTransactionId session) { /* ... */ }
      public void removeStaleUGIs(long currentTimeMillis)  { /* ... */ }
    This interface assumes we will have some other thread outside this class that periodically
calls `removeStaleUGIs` with the current time. We could also have the cache start its own
cleanup thread, but then we'd have to `sleep` in our tests to observe the UGIs getting cleaned
up, which could make the tests slow and flaky.


View raw message