Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-872 Uber jira for HMS HA + Sentry HA redesign
  3. SENTRY-1784

DBUpdateForwarder returns empty update list to HDFS instead of full update

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • 2.0.0
    • 2.0.0
    • Sentry
    • None

    Description

      When HDFS first asks Sentry for update, the request changeID is 1. If there is no entries in permission change table (current changeID is 0), empty update list is returned to HDFS because the current code behavior is that no update is returned if request changeID is larger than the current chaneID.

      Once this problem is fixed (returning full update when request changeID = 1, and current changeID = 0), another issue of the current code is that after a full update is sent to client, and there is no entries in permission change table (current changeID is 0), the next request changeID is still 1,
      so full update is returned for the second time. Full update will be sent for each request until permission change table has at least one entry.

      The desired behavior is for HDFS to get full update when it sends the first request to Sentry. Once it gets full update, the following requests should get delta updates unless some updates are purged before they are sent to HDFS.

      Attachments

        Issue Links

          Activity

            People

              spena Sergio Peña
              linaataustin Na Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: