Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-453

NullPointerException when useBatchMultiSend is false or using Aurora

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.9
    • Fix Version/s: 2.0.0-RC, 1.6.0
    • Component/s: Other
    • Labels:
      None

      Description

      A NullPointerException occurs in AbstractMultiSend when useBatchMultiSend is false. This happens on line 241 of AstractMultiSend.java On "AbstractQueryProtocol.readScheduler.execute(futureReadTask);"

      The reason is that readScheduler is not set in AbstractQueryProtocol constructor:

      if (options.useBatchMultiSend && readScheduler == null) {
      synchronized (AbstractQueryProtocol.class) {
      if (readScheduler == null)

      { readScheduler = SchedulerServiceProviderHolder.getBulkScheduler(); }

      }
      }

      It looks as if there is no code to do synchronous batch in "executeBatchStandard". We have implemented a synchronous version, and are willing to contribute.

        Attachments

          Activity

            People

            Assignee:
            diego dupin Diego Dupin
            Reporter:
            Green Matthew
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: