JanusGraph / janusgraph

JanusGraph: an open-source, distributed graph database
https://janusgraph.org
Other
5.33k stars 1.17k forks source link

SolrIndex client clean all collections when droping a graph #2433

Open benjamincoven opened 3 years ago

benjamincoven commented 3 years ago

Actually droping a graph in Gremlin console empties all the collections of Solr of the others graphs.

Responsible code maybe the method clearStorage from SolrIndex.java line 971

benjamincoven commented 3 years ago

We found a workaround by removing solr from the graph config before dropping it:

map = new HashMap(); map.put("index.<graph config namespace>.backend", ""); ConfiguredGraphFactory.updateConfiguration("<graph name>",new MapConfiguration(map));

CysOrion commented 8 months ago

Hi @benjamincoven I had faced the same issue when using Elasticsearch mixed index backend, your workaround is neat and works well, thanks!