You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Thomas D'Silva (JIRA)" <ji...@apache.org> on 2017/06/02 21:24:04 UTC

[jira] [Resolved] (PHOENIX-3513) Throw SQLException instead of IllegalStateException when max commit size exceeded

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

Thomas D'Silva resolved PHOENIX-3513.
-------------------------------------
    Resolution: Fixed

> Throw SQLException instead of IllegalStateException when max commit size exceeded
> ---------------------------------------------------------------------------------
>
>                 Key: PHOENIX-3513
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3513
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: James Taylor
>            Assignee: Thomas D'Silva
>             Fix For: 4.11.0
>
>
> We should change this code in MutationState and implement the TODO here:
> {code}
>     private void throwIfTooBig() {
>         if (numRows > maxSize) {
>             // TODO: throw SQLException ?
>             throw new IllegalArgumentException("MutationState size of " + numRows + " is bigger than max allowed size of " + maxSize);
>         }
>     }
> {code}
> Otherwise, it's difficult for clients to react to the exception.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)