Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-20226

HMS getNextNotification will throw exception when request maxEvents exceed table's max_rows

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 4.0.0
    • Fix Version/s: 4.0.0
    • Component/s: Metastore
    • Labels:
      None

      Description

      When Sentry call getNextNotification(), its request max_events will always be Integer.MAX_VALUE.
      query.setRange(0, maxEvents) of ObjectStore will throw exception when maxEvents exceed table's max_rows.
      Ex: assumed max_rows = 50,000,000 in a mysql table
      java.sql.SQLException: setMaxRows() out of range. 2147483647 > 50000000.

        Attachments

        1. HIVE-20226.3.patch
          5 kB
          Alice Fan
        2. HIVE-20226.2.patch
          5 kB
          Alice Fan
        3. HIVE-20226.1.patch
          5 kB
          Alice Fan

          Issue Links

            Activity

              People

              • Assignee:
                afan Alice Fan
                Reporter:
                afan Alice Fan
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: