Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  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

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Hdfs Plugin
    • 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.00-sentry-ha-redesign.patch
          8 kB
          Lei (Eddy) Xu
        2. SENTRY-1643.01-sentry-ha-redesign.patch
          8 kB
          Lei (Eddy) Xu
        3. SENTRY-1643.02-sentry-ha-redesign.patch
          9 kB
          Lei (Eddy) Xu

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: