-
Notifications
You must be signed in to change notification settings - Fork 25.9k
clear auto-follow errors on deleting pattern #80544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
idegtiarenko
merged 12 commits into
elastic:master
from
idegtiarenko:77723_clear_auto_follow_stats_on_delete
Nov 24, 2021
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
0f42495
clear auto-follow errors on deleting pattern
idegtiarenko 858b8ba
update test to verify other stats are retained
idegtiarenko a8a8a7b
restructure the test
idegtiarenko a030ce1
move expiration outside the listener
idegtiarenko 8c6d46e
Merge branch 'master' into 77723_clear_auto_follow_stats_on_delete
idegtiarenko 4768ea5
fix comments
idegtiarenko 0526560
format and remove duplication
idegtiarenko 2f1df28
Merge branch 'master' into 77723_clear_auto_follow_stats_on_delete
idegtiarenko 0a064fe
use struct key
idegtiarenko 8aedab3
fix comments
idegtiarenko e862a2e
revert tuple change
idegtiarenko 2e33556
Merge branch 'master' into 77723_clear_auto_follow_stats_on_delete
idegtiarenko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should set the patterns to the empty list above when
autoFollowMetadata == nulltoo (though I think we never go back to null, so mostly for completeness).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we are also not clearing/stopping
autoFollowersonce metadata is null. If this happens for whatever reason then it might result in auto-followers still running but not producing any statsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, perhaps we can simply add an assert before the return above to express the intent here?