You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Alice Fan (JIRA)" <ji...@apache.org> on 2018/07/25 05:36:00 UTC

[jira] [Updated] (HIVE-20226) HMS getNextNotification will throw exception when request maxEvents exceed table's max_rows

     [ https://issues.apache.org/jira/browse/HIVE-20226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alice Fan updated HIVE-20226:
-----------------------------
    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 DB
java.sql.SQLException: setMaxRows() out of range. 2147483647 > 50000000.

  was:
query.setRange(0, maxEvents) in ObjectStore will throw exception when maxEvents exceed 50M.
java.sql.SQLException: setMaxRows() out of range. 2147483647 > 50000000.

        Summary: HMS getNextNotification will throw exception when request maxEvents exceed table's max_rows  (was: query.setRange(0, maxEvents) in ObjectStore will throw exception when maxEvents exceed 50M)

> HMS getNextNotification will throw exception when request maxEvents exceed table's max_rows
> -------------------------------------------------------------------------------------------
>
>                 Key: HIVE-20226
>                 URL: https://issues.apache.org/jira/browse/HIVE-20226
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 3.0.0
>            Reporter: Alice Fan
>            Assignee: Alice Fan
>            Priority: Major
>
> 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 DB
> java.sql.SQLException: setMaxRows() out of range. 2147483647 > 50000000.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)