Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-3513

Throw SQLException instead of IllegalStateException when max commit size exceeded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.11.0
    • None
    • None

    Description

      We should change this code in MutationState and implement the TODO here:

          private void throwIfTooBig() {
              if (numRows > maxSize) {
                  // TODO: throw SQLException ?
                  throw new IllegalArgumentException("MutationState size of " + numRows + " is bigger than max allowed size of " + maxSize);
              }
          }
      

      Otherwise, it's difficult for clients to react to the exception.

      Attachments

        Issue Links

          Activity

            People

              tdsilva Thomas D'Silva
              jamestaylor James R. Taylor
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: