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

AutoIncrement ChangeID of MSentryPermChange/MSentryPathChange may be error-prone

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Hdfs Plugin
    • Labels:
      None

      Description

      In MSentryPermChange/MSentryPathChange table, the changeID field is auto-increment.

      <field name="changeID" primary-key="true" value-strategy="increment">
        <column name="CHANGE_ID" jdbc-type="BIGINT" allows-null="false"/>
      </field>

      However, found through the integration unit test TestHDFSIntegration, the value does not seem to be correctly auto increased. e.g Instead of increasing by one for each new entry, it increased by some unexpected number.

        Attachments

        1. SENTRY-1643.02-sentry-ha-redesign.patch
          9 kB
          Lei (Eddy) Xu
        2. SENTRY-1643.01-sentry-ha-redesign.patch
          8 kB
          Lei (Eddy) Xu
        3. SENTRY-1643.00-sentry-ha-redesign.patch
          8 kB
          Lei (Eddy) Xu

          Issue Links

            Activity

              People

              • Assignee:
                eddyxu Lei (Eddy) Xu
                Reporter:
                hahao Hao Hao
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: