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

HMS plugin should wait until Sentry handles the update before continuing.

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: hive_plugin_v2, 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Hive Plugin, Sentry
    • Labels:
      None

      Description

      Once Sentry switches to HMS notifications which are processed asynchronously we have problem with session consistency.

      Suppose that we have a session which creates a table and then grants permissions to it. The table create is handled as HMS notification event and will eventually reach Sentry. The DDL with permission grant is in-line and is likely to reach Sentry before the table create request. This will cause the grant to unexpectedly fail although it is a perfectly valid operation.

      The proposed solution is to include a "sync barrier" RPC call to Sentry which will block until the specified notification ID is processed by Sentry. Every HMS operation that generates notifications for Sentry should be followed by such sync call.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                akolb Alex Kolbasov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: