Skip to content

add LookupExtractorFactory.destroy() method#5287

Merged
gianm merged 2 commits intoapache:masterfrom
himanshug:lookups_destroy
Feb 2, 2018
Merged

add LookupExtractorFactory.destroy() method#5287
gianm merged 2 commits intoapache:masterfrom
himanshug:lookups_destroy

Conversation

@himanshug
Copy link
Copy Markdown
Contributor

@himanshug himanshug commented Jan 23, 2018

many custom lookup extensions when started keep thread-pools and also persist caches on disk for fast restart of historicals.
when historical process is stopped , thread-pools etc should be properly closed but persisted cache should be left untouched on disk.
when historical is asked to drop the lookup, thread-pools etc should be properly closed and also persisted cache should be removed from the disk.
it requires additional method on LookupExtractorFactory to tell the extension writer when they are simply supposed to let go off transient resources in process memory vs when lookup is being dropped and everything (including persistent information) relevant should be deleted.

this PR is completely backward compatible.

@himanshug himanshug added this to the 0.13.0 milestone Jan 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants