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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0, 4.0.0
    • 4.0.0-alpha-1
    • Metastore
    • 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.1.patch
          5 kB
          Alice Fan
        2. HIVE-20226.2.patch
          5 kB
          Alice Fan
        3. HIVE-20226.3.patch
          5 kB
          Alice Fan

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: