Solr
  1. Solr
  2. SOLR-1450

DIH - Jdbc connection properties such as batchSize are not applied if the driver jar is placed in solr_home/lib

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0, 1.2, 1.3, 1.4, 1.5
    • Fix Version/s: 1.4
    • Labels:
      None
    • Environment:

      Generic

      Description

      When JDBC driver is placed in <solr-home>/lib (as instructed by DIHQuickStart page of Solr wiki), but not in tomcat's lib directory, the JDBC connection will not be configured as specified in the DIH configuration. Attributes like autoCommit, readOnly and batchSize will be ignored.

        Activity

        Hide
        Steve Sun added a comment - - edited

        Move the connection setup code out of the try...catch block.

        Show
        Steve Sun added a comment - - edited Move the connection setup code out of the try...catch block.
        Hide
        Shalin Shekhar Mangar added a comment -

        Committed revision 817634.

        Show
        Shalin Shekhar Mangar added a comment - Committed revision 817634.
        Hide
        Shalin Shekhar Mangar added a comment -

        Thanks for the report and fix Steve!

        Show
        Shalin Shekhar Mangar added a comment - Thanks for the report and fix Steve!
        Hide
        Brian Mansell added a comment -

        Nice work!

        Does this apply to JDBC connection attributes like autoReconnect and connectTimeout?

        thanks,
        --bemansell

        Show
        Brian Mansell added a comment - Nice work! Does this apply to JDBC connection attributes like autoReconnect and connectTimeout? thanks, --bemansell
        Hide
        Steve Sun added a comment -

        If Solr supports these attributes, yes. Otherwise, no.

        Show
        Steve Sun added a comment - If Solr supports these attributes, yes. Otherwise, no.
        Hide
        Grant Ingersoll added a comment -

        Bulk close for Solr 1.4

        Show
        Grant Ingersoll added a comment - Bulk close for Solr 1.4

          People

          • Assignee:
            Shalin Shekhar Mangar
            Reporter:
            Steve Sun
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

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

                Development