title: Solr8.0.0 not all records getting indexed
body: <p>data-config.xml</p>
  
  <pre><code>&lt;dataConfig&gt;
  &lt;dataSource type="JdbcDataSource"
              driver="com.mysql.jdbc.Driver"
              batchSize="-1"
              autoReconnect="true"
              socketTimeout="0"
              connectTimeout="0"
              url="jdbc:mysql://xxxx/livenews?zeroDateTimeBehavior=convertToNull"
              user="admin"
              password="admin"/&gt;
  &lt;document&gt;
  &lt;document&gt;
  &lt;entity name="news"
      query="select * from news"&gt;
       &lt;field column="posting_id" name="posting_id"/&gt;
       &lt;field column="date" name="date"/&gt;
       &lt;field column="name" name="name"/&gt;
       &lt;field column="currency" name="currency"/&gt;
       &lt;field column="country" name="country"/&gt;
       &lt;field column="expiry" name="expiry"/&gt;
  
    &lt;/entity&gt;
  &lt;/document&gt;
  &lt;/dataConfig&gt;
  </code></pre>
  
  <p>While doing full import getting the following message -<br>
  Last Update: 11:31:09<br>
  Requests: 1 , Fetched: 951,104 , Skipped: 0 , Processed: 951,104  <br>
  Started: 4 minutes ago <br><br></p>
  
  <p>However the overview shows<br>
  Last Modified: 2 minutes ago <br>
  Num Docs: 941601<br>
  Max Doc: 941601<br><br></p>
  
  <p>Not all records are getting indexed. Logging shows the following message -</p>
  
  <pre><code>WARN false SimplePropertiesWriter Unable to read: dataimport.properties
  
  ERROR false EntityProcessorBase getNext() failed for query 'select * from news':org.apache.solr.handler.dataimport.DataImportHandlerException: java.sql.SQLException: Operation not allowed after ResultSet closed
  
  ERROR false DocBuilder Exception while processing: news document : SolrInputDocument(fields: []):org.apache.solr.handler.dataimport.DataImportHandlerException: java.sql.SQLException: Operation not allowed after ResultSet closed
  
  ERROR false DataImporter Full Import failed:java.lang.RuntimeException: java.lang.RuntimeException: org.apache.solr.handler.dataimport.DataImportHandlerException: java.sql.SQLException: Operation not allowed after ResultSet closed
  
  ERROR false CommitTracker auto commit error...:org.apache.solr.common.SolrException: Error opening new searcher
  </code></pre>
  
  <p>If I change the batchSize to 1000, solr stops working. Have to restart solr again.<br>
  Tried with both of these -<br>
  mysql-connector-java-5.1.15-bin.jar<br>
  mysql-connector-java-5.1.47-bin.jar<br></p>