Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14205

Do not fail when given timeout to connectionImpl.isValid() = 0

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.4.1
    • Fix Version/s: 8.5
    • Component/s: Parallel SQL
    • Labels:
      None

      Description

      The ConnectionImpl.isValid() returns false when you pass 0 as the timeout. According to the javadocs (https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Connection.html#isValid(int)) a timeout = 0 means no timeout. In the current implementation a timeout = 0 means that the connection is always invalid.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                krisden Kevin Risden
                Reporter:
                vercani Nick Vercammen
              • Votes:
                0 Vote for this issue
                Watchers:
                4 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 - 0.5h
                  0.5h