Shalin Shekhar Mangar created SOLR-12680:
--------------------------------------------

             Summary: Fix ClassCastException and AIOOBE in 
TestSolrConfigHandlerConcurrent
                 Key: SOLR-12680
                 URL: https://issues.apache.org/jira/browse/SOLR-12680
             Project: Solr
          Issue Type: Test
      Security Level: Public (Default Security Level. Issues are Public)
          Components: Tests
    Affects Versions: 7.4
            Reporter: Shalin Shekhar Mangar
            Assignee: Shalin Shekhar Mangar
             Fix For: master (8.0), 7.5


Noticed some weird errors in the logs for TestSolrConfigHandlerConcurrent:
# Test starts a thread to change each cache listed in the query section of the 
config but 4 of the keys inside the query section do not contain a cache 
definition at all. The thread would start and immediately exit when trying to 
cast the long value to a Map.
# The second half of the {{invokeBulkCall}} method is never executed because it 
tried to do {{      String url = urls.get(urls.size());}} which will always 
result in an AIOOBE and the thread would (silently exit)
# The second half also contained a bug where a string was being asserted to be 
equal to a long object so after fixing #2 above, the test always failed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to