You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "iamsanjay (via GitHub)" <gi...@apache.org> on 2023/09/16 03:29:13 UTC

[GitHub] [solr] iamsanjay commented on pull request #1933: SOLR-16397: Create v2(JAX-RS) endpoints for UNLOAD core

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-unsubscribe@solr.apache.org

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


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