iamsanjay commented on PR #1933:
URL: https://github.com/apache/solr/pull/1933#issuecomment-1722120765

   Getting below error, only if I'm using V2 Jersey endpoints.
   
   > Core demo is not yet closed, waiting 100 ms before checking again
   
   I looked into this more and found out below code snipped that got executed 
when calling Jersey endpoints, and that results in increase the variable named 
`refCount` -- core current usage count. 
   
   
https://github.com/iamsanjay/solr/blob/d772f112032c4a8648c97d688b792ccb6459a10e/solr/core/src/java/org/apache/solr/api/V2HttpCall.java#L171-L174
   
   Now, the unload endpoints executes `SolrCore.closeAndWait()` which decreases 
the `refCount` and check if it's closed. Nonetheless, the refCount still 1 and 
thread got stuck in below loop.
   
   
https://github.com/iamsanjay/solr/blob/d772f112032c4a8648c97d688b792ccb6459a10e/solr/core/src/java/org/apache/solr/core/SolrCore.java#L1564-L1572


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to