[ https://issues.apache.org/jira/browse/SOLR-5543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alan Woodward updated SOLR-5543: -------------------------------- Attachment: SOLR-5543.patch This patch adds an explicit #swap(CoreContainer, CoreDescriptor, CoreDescriptor) method to CoreLocator. CoreContainer.swap() was just using persist, which ended up adding two new entries to the end of the cores list but never clearing them out. This wasn't being picked up in tests because the SolrXMLCoreLocator deduplicated them in discovery (by a happy accident). > solr.xml duplicat eentries after SWAP 4.6 > ----------------------------------------- > > Key: SOLR-5543 > URL: https://issues.apache.org/jira/browse/SOLR-5543 > Project: Solr > Issue Type: Bug > Affects Versions: 4.6 > Reporter: Bill Bell > Assignee: Alan Woodward > Attachments: SOLR-5543.patch > > > We are having issues with SWAP CoreAdmin in 4.6. > Using legacy solr.xml we issue a COreodmin SWAP, and we want it persistent. > It has been running flawless since 4.5. Now it creates duplicate lines in > solr.xml. > Even the example multi core schema in doesn't work with persistent="true" - > it creates duplicate lines in solr.xml. > <cores adminPath="/admin/cores"> > <core name="autosuggest" loadOnStartup="true" instanceDir="autosuggest" > transient="false"/> > <core name="citystateprovider" loadOnStartup="true" > instanceDir="citystateprovider" transient="false"/> > <core name="collection1" loadOnStartup="true" instanceDir="collection1" > transient="false"/> > <core name="facility" loadOnStartup="true" instanceDir="facility" > transient="false"/> > <core name="inactiveproviders" loadOnStartup="true" > instanceDir="inactiveproviders" transient="false"/> > <core name="linesvcgeo" instanceDir="linesvcgeo" loadOnStartup="true" > transient="false"/> > <core name="linesvcgeofull" instanceDir="linesvcgeofull" > loadOnStartup="true" transient="false"/> > <core name="locationgeo" loadOnStartup="true" instanceDir="locationgeo" > transient="false"/> > <core name="market" loadOnStartup="true" instanceDir="market" > transient="false"/> > <core name="portalprovider" loadOnStartup="true" > instanceDir="portalprovider" transient="false"/> > <core name="practice" loadOnStartup="true" instanceDir="practice" > transient="false"/> > <core name="provider" loadOnStartup="true" instanceDir="provider" > transient="false"/> > <core name="providersearch" loadOnStartup="true" > instanceDir="providersearch" transient="false"/> > <core name="tridioncomponents" loadOnStartup="true" > instanceDir="tridioncomponents" transient="false"/> > <core name="linesvcgeo" instanceDir="linesvcgeo" loadOnStartup="true" > transient="false"/> > <core name="linesvcgeofull" instanceDir="linesvcgeofull" > loadOnStartup="true" transient="false"/> > </cores> -- This message was sent by Atlassian JIRA (v6.1.4#6159) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org