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

Uber jira for HMS HA + Sentry HA redesign

Details

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

    Attachments

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

      Issue Links

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

        0%

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

        0%

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

        0%

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

        0%

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

        0%

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

        0%

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

        0%

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

        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

                Slack

                  Issue deployment