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

MAX_MUTATION_SIZE_EXCEEDED and MAX_MUTATION_SIZE_BYTES_EXCEEDED SQLExceptions should print existing size

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.15.0
    • 5.1.0, 4.15.1, 4.16.0
    • None

    Description

      These exceptions do not print the existing size of the MutationState. We should add the existing size to the exception message for help in debugging. For ex:

      Caused by: java.sql.SQLException: ERROR 730 (LIM02): MutationState size is bigger than maximum allowed number of bytes
          at org.apache.phoenix.exception.SQLExceptionCode$Factory$1.newException(SQLExceptionCode.java:494)
          at org.apache.phoenix.exception.SQLExceptionInfo.buildException(SQLExceptionInfo.java:150)
          at org.apache.phoenix.execute.MutationState.throwIfTooBig(MutationState.java:371)
          at org.apache.phoenix.execute.MutationState.join(MutationState.java:471)
          at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:409)
          at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391)
          at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
          at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390)
          at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378)
          at org.apache.phoenix.jdbc.PhoenixPreparedStatement.execute(PhoenixPreparedStatement.java:173)
          at org.apache.phoenix.jdbc.PhoenixPreparedStatement.execute(PhoenixPreparedStatement.java:183)
          at org.apache.phoenix.jdbc.DelegatePreparedStatement.execute(DelegatePreparedStatement.java:284)
      

      Attachments

        1. PHOENIX-5630.patch
          15 kB
          Neha Gupta
        2. PHOENIX-5630.v1.patch
          19 kB
          Neha Gupta
        3. PHOENIX-5630.v2.patch
          20 kB
          Neha Gupta

        Issue Links

          Activity

            People

              neha.gupta Neha Gupta
              ckulkarni Chinmay Kulkarni
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h
                  3h