[
https://issues.apache.org/jira/browse/SOLR-6279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15098581#comment-15098581
]
ASF subversion and git services commented on SOLR-6279:
-------------------------------------------------------
Commit 1724668 from [~cpoerschke] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1724668 ]
SOLR-6279: cores?action=UNLOAD now waits for the core to close before
unregistering it from ZK. (merge in revision 1724654 from trunk)
> cores?action=UNLOAD can unregister unclosed core
> ------------------------------------------------
>
> Key: SOLR-6279
> URL: https://issues.apache.org/jira/browse/SOLR-6279
> Project: Solr
> Issue Type: Bug
> Reporter: Christine Poerschke
> Assignee: Christine Poerschke
>
> baseline:
> {code}
> /somewhere/instanceA/collection1_shard1/core.properties
> /somewhere/instanceA/collection1_shard1/data
> /somewhere/instanceA/collection1_shard2/core.properties
> /somewhere/instanceA/collection1_shard2/data
> /somewhere/instanceB
> {code}
> actions:
> {code}
> curl
> "http://host:port/solr/admin/cores?action=UNLOAD&core=collection1_shard2"
> # since UNLOAD completed we should now be free to move the unloaded core's
> files as we wish
> mv /somewhere/instanceA/collection1_shard2
> /somewhere/instanceB/collection1_shard2
> {code}
> expected result:
> {code}
> /somewhere/instanceA/collection1_shard1/core.properties
> /somewhere/instanceA/collection1_shard1/data
> # collection1_shard2 files have been fully relocated
> /somewhere/instanceB/collection1_shard2/core.properties.unloaded
> /somewhere/instanceB/collection1_shard2/data
> {code}
> actual result:
> {code}
> /somewhere/instanceA/collection1_shard1/core.properties
> /somewhere/instanceA/collection1_shard1/data
> /somewhere/instanceA/collection1_shard2/data
> # collection1_shard2 files have not been fully relocated and/or some files
> were left behind in instanceA because the UNLOAD action had returned prior to
> the core being closed
> /somewhere/instanceB/collection1_shard2/core.properties.unloaded
> /somewhere/instanceB/collection1_shard2/data
> {code}
> +proposed fix:+ Changing CoreContainer.unload to wait for core to close
> before unregistering it from ZK. Adding testMidUseUnload method to
> TestLazyCores.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]