Elasticsearch helper implements hook_module_uninstall which deletes the respective indices when uninstalling a module providing an elasticsearch helper index plugin.

Imagine two modules providing index plugins which point to the same index but for different types. Uninstalling one of them would accidently delete the index controlled by the other module.

I guess the only save way to handle this is to not automatically delete an index when uninstalling a module.

Patch follows.

Comments

g.oechsler created an issue. See original summary.

g.oechsler’s picture

StatusFileSize
new1022 bytes

Here it is.

g.oechsler’s picture

Status: Active » Needs review
g.oechsler’s picture

Issue summary: View changes

  • floretan committed b843cdd on 8.x-1.x authored by g.oechsler
    Issue #2875365 by g.oechsler: Stop deleting indices on module uninstall
    
floretan’s picture

Status: Needs review » Fixed

Committed to the 8.x-1.x branch, will be merged into the 8.x-5.x branch later. Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.