Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-872

Uber jira for HMS HA + Sentry HA redesign

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.5.0, 2.0.0
    • 2.0.0
    • Hdfs Plugin
    • None

    Attachments

      1. Sentry-872_design_v2_1.pdf
        657 kB
        Alex Kolbasov
      2. SENTRY-872_design_v2.pdf
        178 kB
        Colin McCabe
      3. SENTRY-872_design.pdf
        170 kB
        Colin McCabe
      4. SENTRY-872_dessign-v2.1.1.pdf
        448 kB
        Alex Kolbasov
      5. SENTRY-872.0.patch
        118 kB
        Sravya Tirukkovalur
      6. SENTRY-872.pdf
        168 kB
        Sravya Tirukkovalur

      Issue Links

        1.
        Add metrics for isActive and isHA Sub-task Resolved Rahul Sharma  
        2.
        Implement Sentry leadership election Sub-task Resolved Colin McCabe  
        3.
        Store HMSPaths in Sentry DB to allow fast failover Sub-task Resolved Hao Hao  
        4.
        Upgrading SQL script for HMSPaths persistence Sub-task Resolved Hao Hao  
        5.
        Implement fencing required for active/standby Sub-task Resolved Colin McCabe  
        6.
        Add sentry specific test cases to use NotificationLog Sub-task Resolved Sravya Tirukkovalur  
        7.
        Adapt SentryMetaStorePostEventListener to write HMS notification logs Sub-task Resolved Sravya Tirukkovalur  
        8.
        Fix TestLeaderStatus#testRacingClients Sub-task Resolved Colin McCabe  
        9.
        Move SentryHDFSServiceClient code from hdfs-common into hdfs-service Sub-task Resolved Hao Hao  
        10.
        Integrate Fencer with SentryStore Sub-task Resolved Colin McCabe  
        11.
        The sentry client should retry RPCs if it gets a SentryStandbyException (SentryPolicyServiceClient - pool version) Sub-task Resolved Hao Hao  
        12.
        Move the HDFS code which lives inside the sentry daemon into sentry-provider Sub-task Resolved Hao Hao  
        13.
        Implement HMSFollower in Sentry service which reads the NotificationLog entries Sub-task Resolved Sravya Tirukkovalur  
        14.
        Handle updating HMSState for HDFS plugin in HMSFollower Sub-task Resolved Unassigned  
        15.
        Rework fetching Hive Paths state Sub-task Resolved Hao Hao  
        16.
        Add metrics for Sentry HA Sub-task Resolved Alex Kolbasov  
        17.
        Make HiveConf and Hive client jars available to Sentry deamon Sub-task Resolved Vamsee K. Yarlagadda  
        18.
        Notify Sentry about HMS new notifications if low delay is desired Sub-task Resolved Unassigned  
        19.
        Changes to get the Fencer working with Oracle and MySQL Sub-task Resolved Rahul Sharma  
        20.
        Evict datanucleus second-level cache during activation Sub-task Resolved Alex Kolbasov  
        21.
        [Test infra] Ability to start active and standby sentry service using InternalSentrySrv Sub-task Resolved Unassigned  
        22.
        [Test hook] Provide a hook to stop the active sentry sevice Sub-task Resolved Rahul Sharma  
        23.
        Support intializing state in Sentry service Sub-task Resolved Unassigned  
        24.
        JDO deadlocks while processing grant while a background thread processes Notificationlogs Sub-task Resolved Colin  
        25.
        May want to disallow reads on Sentry passive Sub-task Resolved Alex Kolbasov  
        26.
        Do not start up HMSFollower if hive is not using Sentry Sub-task Resolved Unassigned  
        27.
        Test TGT renewals in HMSFollower Sub-task Resolved Vamsee K. Yarlagadda  
        28.
        Only leader should follow HMS updates Sub-task Resolved Alex Kolbasov  
        29.
        Test Sentry HA Tasks Sub-task Resolved Vamsee K. Yarlagadda  
        30.
        GenericServiceClient should support connection pools Sub-task Resolved Unassigned  
        31.
        Sentry should not serve requests until the full update processing is finished Sub-task Resolved Unassigned  
        32.
        Error during fencing table rename can disable master Sub-task Resolved Alex Kolbasov  
        33.
        Fencing implementation in sentry-ha can create two fencing tables Sub-task Resolved Alex Kolbasov  
        34.
        Store processed notification sequence ID in database Sub-task Resolved Hao Hao  
        35.
        Rebase sentry-ha-redesign branch on master Sub-task Resolved Unassigned  
        36.
        Ensure HMS point-in-time snapshot consistency Sub-task Resolved Hao Hao  
        37.
        Sentry clients should retry with another server when they get connection errors Sub-task Resolved Li Li  
        38.
        Disable fencing in Sentry store for Active/Active Sub-task Resolved Li Li  
        39.
        HMS plugin should wait until Sentry handles the update before continuing. Sub-task Resolved Unassigned  
        40.
        Renaming SQL script for HMSPaths persistence Sub-task Resolved Krishna Kalyan  
        41.
        Add feature flag for using NotifcationLog Sub-task Resolved Hao Hao  
        42.
        Add option to use non pool model for sentry client Sub-task Resolved Li Li  
        43.
        HDFS Sync change for handling persisted Sentry delta or full updates Sub-task Resolved Hao Hao  
        44.
        HMS Follower thread should terminate when Sentry receives ^C Sub-task Resolved Alex Kolbasov  
        45.
        HMS Follower should update HDFS plugin paths Sub-task Resolved Hao Hao  
        46.
        Refactor SentryStore transaction management to allow for extra TransanctionBlocks for a single permission update Sub-task Resolved Hao Hao  
        47.
        Create schema for storing HMS path change and Sentry permission change. Sub-task Resolved Hao Hao  
        48.
        HMS Follower should store arriving HMS notifications Sub-task Resolved Hao Hao  
        49.
        Remove fencing support Sub-task Resolved Alex Kolbasov  
        50.
        Add feature flag to allow stand-alone configuration without ZK Sub-task Resolved Unassigned  
        51.
        Make full Perm/Path snapshot available for NN plugin Sub-task Resolved Hao Hao  
        52.
        Refactor propagating logic for Perm/Path delta to NN plugin Sub-task Resolved Lei (Eddy) Xu  
        53.
        Upgrading SQL scripts for persist Perm/Path change Sub-task Resolved Krishna Kalyan  
        54.
        Suport secure ZK configuration for leader election Sub-task Resolved Alex Kolbasov  
        55.
        Provide pooled client connection model with HA Sub-task Resolved Alex Kolbasov  
        56.
        Refactor ZK/Curator code Sub-task Resolved Alex Kolbasov  
        57.
        Refactor SentryStore transaction to persist a single path transcation bundled with corresponding delta path change Sub-task Resolved Hao Hao  
        58.
        Backport SENTRY-1404 to Sentry-ha-redesign branch Sub-task Resolved Alex Kolbasov  
        59.
        Implement NN client failover for Sentry HA Sub-task Resolved Krishna Kalyan  
        60.
        Implement client failover for Generic and NN clients Sub-task Resolved Krishna Kalyan  
        61.
        Hive tests failing for sentry-ha-redesign branch Sub-task Resolved Hao Hao  
        62.
        Define Thrift API for HMS to Sentry notification barrier Sub-task Resolved Alex Kolbasov  
        63.
        Implement HMS Notification barrier on the server side Sub-task Resolved Alex Kolbasov  
        64.
        Converting Sentry to a stateless service Sub-task Resolved Hao Hao  
        65.
        Purge MSentryPerm/PathChange tables Sub-task Resolved Lei (Eddy) Xu  
        66.
        HMSFollower should persist full HMS snapshot into SentryDB if there is not one. Sub-task Resolved Hao Hao  
        67.
        Add propagating logic for Perm/Path updates in Sentry service Sub-task Resolved Hao Hao  
        68.
        Fetch Hive Paths point-in-time full snapshot during Sentry startup Sub-task Resolved Hao Hao  
        69.
        Fix the secure HMS connection code in HMSFollower Sub-task Resolved Vamsee K. Yarlagadda  
        70.
        Incorrect usage of AuthzConfVars.AUTHZ_SERVER_NAME may cause HS2 HA not work Sub-task Resolved Unassigned  
        71.
        HMSFollower to retry connecting to HMS upon connection loss Sub-task Resolved Vamsee K. Yarlagadda  
        72.
        Typo for notification log feature flag Sub-task Resolved Hao Hao  
        73.
        In HMSFollower failing of catching error causes the executor to halt Sub-task Resolved Hao Hao  
        74.
        Current MAuthzPathsMapping table definition may cause error 'Duplicate entry XX for key PRIMARY' Sub-task Resolved Krishna Kalyan  
        75.
        out of sequence error in HMSFollower Sub-task Resolved Alex Kolbasov  
        76.
        Make HMSFollower initialDelay and run period configurable Sub-task Resolved Hao Hao  
        77.
        HMSFollower should not check isLoadMetastoreConfig when trying to connect to HMS Sub-task Resolved Vamsee K. Yarlagadda  
        78.
        Limit HMS connections only to the leader of the sentry servers Sub-task Resolved Vamsee K. Yarlagadda  
        79.
        Update SQL script of MSentryPathChange table to add a column for notification ID Sub-task Resolved Krishna Kalyan  
        80.
        Periodically purge Delta change tables. Sub-task Resolved Lei (Eddy) Xu  
        81.
        Cleanup creation of SentryStore and HMSFollower Sub-task Resolved Lei (Eddy) Xu  
        82.
        AutoIncrement ChangeID of MSentryPermChange/MSentryPathChange may be error-prone Sub-task Resolved Lei (Eddy) Xu  
        83.
        Initialize HMSFollower when sentry server actually starts Sub-task Resolved Na Li  
        84.
        Port SENTRY-1360 to sentry-ha-redesign Sub-task Resolved Alex Kolbasov  
        85.
        TestHDFSIntegrationAdvanced timeouts on sentry-ha-redesign branch Sub-task Resolved Unassigned  
        86.
        HMSFollower should read current processed notification ID from database every time it runs Sub-task Resolved Krishna Kalyan  
        87.
        Expose current HMS notification ID as a Sentry gauge (metric) Sub-task Resolved Alex Kolbasov  
        88.
        Provide HMSFollower healthcheck (metric) Sub-task Resolved Unassigned  
        89.
        Expose HMS data via Sentry web UI Sub-task Resolved Unassigned  
        90.
        Improve error reporting from FullUpdateInitializer Sub-task Resolved Alex Kolbasov  
        91.
        HMSFollower shouldn't print the same value of notification ID multiple times Sub-task Resolved Na Li  
        92.
        FullUpdateInitializer#createInitialUpdate should not throw RuntimeException Sub-task Resolved Alex Kolbasov  
        93.
        sentry-hdfs-dist should include sentry-core-common after refactor SentryHDFSServiceClientDefaultImpl Sub-task Resolved Krishna Kalyan  
        94.
        Add metrics to measure how much time to get Delta Path/Perm Updates Sub-task Resolved Alex Kolbasov  
        95.
        MetastoreCacheInitializer is lo longer used and should be removed Sub-task Resolved Jan Hentschel  
        96.
        Investigate use of EXPORT for replication for initial HMS snapshot Sub-task Resolved Sergio Peña  
        97.
        FullUpdateInitializer has a race condition in handling results list Sub-task Resolved Alex Kolbasov  
        98.
        Port SENTRY-1489 to sentry-ha-redesign branch Sub-task Resolved Na Li  
        99.
        Port SENTRY-1548 to sentry-ha-redesign branch Sub-task Resolved Krishna Kalyan  
        100.
        FullUpdateInitializer can be more efficient Sub-task Resolved Alex Kolbasov  
        101.
        Refactor HA components based on Sentry-852 Sub-task Resolved Unassigned  
        102.
        sql changed needed for AUTHZ_PATH table Sub-task Resolved Krishna Kalyan  
        103.
        Move thrift waiters gauge away from SentryStore Sub-task Resolved Unassigned  
        104.
        HMSFollower should handle adding a view with empty path. Sub-task Resolved Na Li  
        105.
        Deprecate feature flag for enabling notification log Sub-task Resolved Alex Kolbasov  
        106.
        Waiting for HMS notifications from Thrift should be interruptible Sub-task Resolved Alex Kolbasov  
        107.
        Expose time spent creating the initial snapshot as a metric Sub-task Resolved Alex Kolbasov  
        108.
        FullUpdateInitializer should not use preconditions to verify HMS data Sub-task Resolved Alex Kolbasov  
        109.
        Do not start HMSFollower if Hive isn't configured Sub-task Resolved Na Li  
        110.
        Avoid randomizing the servers at client side based on configuration. Sub-task Resolved Krishna Kalyan  
        111.
        HMSFollower shouldn't call processNotificationEvents() unless there are events Sub-task Resolved Alex Kolbasov  
        112.
        Enable TestHDFSIntegrationEnd2End.testEnd2End Sub-task Resolved Lei (Eddy) Xu  
        113.
        Disable HMSFollower when HMS integration is not enabled Sub-task Resolved Unassigned  
        114.
        HMSFollower doesn't need to save path info when HDFS sync is disabled Sub-task Resolved Sergio Peña  
        115.
        Sentry should emit log messages when it is ready to serve requests. Sub-task Resolved Na Li  
        116.
        TestSentryStore often fails in setup() Sub-task Resolved Na Li  
        117.
        Implement alternative HMS/Sentry synchronization Sub-task Resolved Unassigned  
        118.
        Improve retry handling for FullUpdateInitializer Sub-task Resolved Unassigned  
        119.
        Sentry HDFS Sync should survive in presence of bad paths objects Sub-task Resolved Alex Kolbasov  
        120.
        Sentry HA Test: programmatic failover in a mini cluster env; also add some test data. Sub-task Resolved Krishna Kalyan  
        121.
        Unit test failures in TestSentryStore due to changeId miscount Sub-task Resolved Na Li

        0%

        Original Estimate - 96h
        Remaining Estimate - 96h
        122.
        Create HMSFollower when SentryService.Start() is called Sub-task Resolved Na Li

        0%

        Original Estimate - 4h
        Remaining Estimate - 4h
        123.
        HDFS e2e tests should wait for HMSFollower to start Sub-task Resolved Na Li  
        124.
        Remove old PoolClientInvocationHandler Sub-task Resolved Jan Hentschel  
        125.
        Include response status in TSentrySyncIDResponse Sub-task Resolved Alex Kolbasov  
        126.
        PathsUpdate.parsePath() calls FileSystem.getDefaultUri() way too often Sub-task Resolved Alex Kolbasov  
        127.
        Test secure ZK connections Sub-task Resolved Unassigned  
        128.
        Test concurrent roles/groups/privs operations Sub-task Resolved Unassigned  
        129.
        Create/Alter/Drop database/table should check corresponding property before drop privileges Sub-task Resolved Alex Kolbasov  
        130.
        Generic service client should support Kerberos Sub-task Resolved Krishna Kalyan  
        131.
        SentryTransportFactory may use incorrect kerberos principal Sub-task Resolved Alex Kolbasov  
        132.
        Inefficient connection management by retrying invocation handler Sub-task Resolved Alex Kolbasov  
        133.
        HMSFollower doesn't handle INSERT operation Sub-task Resolved Sergio Peña  
        134.
        HMSFollower shouldn't create local hive during tests Sub-task Resolved Na Li  
        135.
        HMSFollower gets stuck once it fails to process a notification event Sub-task Resolved Na Li  
        136.
        Add HMSFollower per-operation metrics Sub-task Resolved Alex Kolbasov  
        137.
        sql changes to store last notification-id processed Sub-task Resolved Krishna Kalyan  
        138.
        Passive nodes should still follow latest notification ID Sub-task Resolved Sergio Peña  
        139.
        Avoid using local hive meta store with wrong configuration Sub-task Resolved Na Li  
        140.
        Improve Sentry memory usage by interning object names Sub-task Resolved Alex Kolbasov  
        141.
        add sentry ha e2e test back accommodating to the re-design Sub-task Resolved Unassigned  
        142.
        HMSFollower should detect when a full snapshot from HMS is required Sub-task Resolved Sergio Peña  
        143.
        Add log message for key store file path Sub-task Resolved Na Li  
        144.
        notification id's in SENTRY_HMS_NOTIFICATION_ID should be purged periodically Sub-task Resolved Krishna Kalyan  
        145.
        HMSFollower should check for leader status after each event processed Sub-task Resolved Krishna Kalyan  
        146.
        Fix the config string for server load balancing Sub-task Resolved Krishna Kalyan  
        147.
        CounterWait.update should be less strict Sub-task Resolved Alex Kolbasov  
        148.
        HMSFollower should not persist empty full snapshot Sub-task Resolved Krishna Kalyan  
        149.
        Generic model clients using kerberos can no longer connect to Sentry server Sub-task Resolved Krishna Kalyan  
        150.
        Multiple followers should not create full snapshot Sub-task Resolved Na Li  
        151.
        Avoid detaching object on transaction exit when it isn't needed Sub-task Resolved Alex Kolbasov  
        152.
        Refactor HMSFollower Class Sub-task Resolved Krishna Kalyan  
        153.
        Avoid more detaches on commit Sub-task Resolved Alex Kolbasov  
        154.
        HDFS client concurrently requests full permission update multiple times Sub-task Resolved Alex Kolbasov  
        155.
        Permissions created before table creation are not reflected in HDFS ACLs Sub-task Resolved Alex Kolbasov  
        156.
        Delta change cleaner should leave way more then a single entry intact Sub-task Resolved Alex Kolbasov  
        157.
        HMSFollower should always depend on persisted information to decide is full snapshot is needed Sub-task Resolved Krishna Kalyan  
        158.
        SentryStore should clear SENTRY_HMS_NOTIFICATION_ID while clearing store Sub-task Resolved Krishna Kalyan  
        159.
        Generic clients are not able to connect to sentry server with kerberos enabled. Sub-task Resolved Krishna Kalyan  
        160.
        FullUpdateInitializer does not kill the threads whenever getFullHMSSnapshot throws an exception Sub-task Resolved Alex Kolbasov  
        161.
        Persist new HMS snapshots with a new generation ID. Sub-task Resolved Sergio Peña  
        162.
        Add an HMS image ID to the thrift schema definition for hdfs/sentry requests Sub-task Resolved Sergio Peña  
        163.
        DBUpdateForwarder returns empty update list to HDFS instead of full update Sub-task Resolved Sergio Peña  
        164.
        Sentry Clients should not log every connection request Sub-task Resolved Alex Kolbasov  
        165.
        Sentry Clients failover not working with kerberos enabled Sub-task Resolved Krishna Kalyan  
        166.
        HMSFollower does not handle view update correctly Sub-task Resolved Na Li  
        167.
        Ensure DB to sort delta changes by CHANGE_ID Sub-task Resolved Vamsee K. Yarlagadda  
        168.
        HMSFollower not persisting last processed notifications when partition is altered Sub-task Resolved Krishna Kalyan  
        169.
        Reenable ignored unit tests from TestHDFSIntegrationEnd2End Sub-task Resolved Vamsee K. Yarlagadda  
        170.
        Delta tables should not have holes Sub-task Resolved Lei (Eddy) Xu

        0%

        Original Estimate - 168h
        Remaining Estimate - 168h
        171.
        Add better debug logging for retrieving the delta changes Sub-task Resolved Vamsee K. Yarlagadda  
        172.
        Provide names for HMSFollower and cleaner threads Sub-task Resolved Alex Kolbasov  
        173.
        Fix flaky HDFS END2END tests Sub-task Resolved Krishna Kalyan  
        174.
        Flaky testConcurrentUpdateChanges test Sub-task Resolved Alex Kolbasov  
        175.
        HMSFollower should handle the case of multiple notifications with the same ID Sub-task Resolved Sergio Peña  
        176.
        Sentry server can be more efficient in handling full snapshot from HMS Sub-task Resolved Alex Kolbasov  
        177.
        Define a DB schema for HMS generation IDs Sub-task Resolved Sergio Peña  
        178.
        Improve memory handling for HDFS sync Sub-task Resolved Alex Kolbasov  
        179.
        NotificationProcessor may put the wrong path in the update Sub-task Resolved Alex Kolbasov

        0%

        Original Estimate - 72h
        Remaining Estimate - 72h
        180.
        Provide unit test for LeaderStatusMonitor Sub-task Resolved Alex Kolbasov  
        181.
        Send new HMS snapshots to HDFS requesting an old generation ID Sub-task Resolved Sergio Peña  
        182.
        Deprecate SENTRY_HA_ENABLED and all tests that use it Sub-task Resolved Na Li

        0%

        Original Estimate - 72h
        Remaining Estimate - 72h
        183.
        HMSFollower should be a singleton Sub-task Resolved Alex Kolbasov

        0%

        Original Estimate - 24h
        Remaining Estimate - 24h
        184.
        Transactions could fail to commit to the database under load Sub-task Resolved Alex Kolbasov  
        185.
        SentryStore may serialize transactions that rely on unique key Sub-task Resolved Na Li

        0%

        Original Estimate - 72h
        Remaining Estimate - 72h
        186.
        Dropping a Hive database/table doesn't cleanup the permissions associated with it Sub-task Resolved Na Li  
        187.
        Rename version in sentry-ha-redesign branch to 2.0.0-SNAPSHOT Sub-task Resolved Krishna Kalyan  
        188.
        Sentry e2e tests should enable SentrySyncHMSNotificationsPostEventListener Sub-task Resolved Na Li  
        189.
        Expose current set of IDs as Sentry metrics Sub-task Resolved Alex Kolbasov  
        190.
        Fix build failures when hive-authz2 profile is enabled. Sub-task Resolved Krishna Kalyan  
        191.
        Separate legacy sentry configs from sentry ha configs for api compatibility Sub-task Resolved Na Li  
        192.
        HMSFollower should handle notifications even if HDFS sync is disabled. Sub-task Closed Na Li  
        193.
        Revert HMSFollower refactoring change Sub-task Resolved Krishna Kalyan  
        194.
        Persisting HMS snapshot and the notification-id to database in same transaction Sub-task Resolved Na Li  
        195.
        Try to use pool with idle connections first Sub-task Resolved Alex Kolbasov  
        196.
        Sentry e2e tests are trying to test without notification log Sub-task Resolved Na Li  
        197.
        Sentry should handle the case of multiple notifications with the same ID Sub-task Resolved Sergio Peña  

        Activity

          People

            akolb Alex Kolbasov
            sravya Sravya Tirukkovalur
            Votes:
            1 Vote for this issue
            Watchers:
            16 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 508h
                508h
                Remaining:
                Remaining Estimate - 508h
                508h
                Logged:
                Time Spent - Not Specified
                Not Specified