You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (Resolved) (JIRA)" <ji...@apache.org> on 2011/11/01 22:35:32 UTC

[jira] [Resolved] (SOLR-2860) In solr-test-framework, SolrTestCaseJ4 tracking of SolrIndexWriter opens / closes is incorrect

     [ https://issues.apache.org/jira/browse/SOLR-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hoss Man resolved SOLR-2860.
----------------------------

       Resolution: Not A Problem
    Fix Version/s: 4.0
         Assignee: Hoss Man

I removed the broken/unnecessary code...

Committed revision 1196292.

...thanks again for bringing this up Aaron.
                
> In solr-test-framework, SolrTestCaseJ4 tracking of SolrIndexWriter opens / closes is incorrect
> ----------------------------------------------------------------------------------------------
>
>                 Key: SOLR-2860
>                 URL: https://issues.apache.org/jira/browse/SOLR-2860
>             Project: Solr
>          Issue Type: Bug
>          Components: SearchComponents - other
>            Reporter: Aaron Beppu
>            Assignee: Hoss Man
>            Priority: Trivial
>             Fix For: 4.0
>
>         Attachments: trackingwriters.patch
>
>
> This appears to be a simple copy/paste error, where someone attempted to copy the code for tracking open/close counts on SolrIndexSearcher,  and use it to track open/close counts on SolrIndexWriter, but didn't update all of the variables. In particular :
> -- the "startTrackingWriters()" method sets the values of numOpens and numCloses, not numWriterOpens and numWriterCloses
> -- because in "beforeClassSolrTestCase()", startTrackingWriters() is called after startTrackingSearchers(), this means that the "start" counts referenced by startTrackingSearchers can be incorrect. This can cause "endTrackingSearchers()" to report nonsensical (e.g. negative) open or close counts in test cases.
> -- inside "endTrackingWriters()", the test condition for detecting when writers have been opened but not closed uses numOpens / numCloses, even though the error message it logs uses numWriterOpens / numWriterCloses.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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