Skip to content
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

Fix bug when migrating old states, 2 restarts are required #3322

Merged
merged 1 commit into from
Jan 10, 2017

Conversation

ruflin
Copy link
Member

@ruflin ruflin commented Jan 10, 2017

The state of migrated states was not properly updated in the registry file. This lead to the issue that after the first restart, the states were migrated but the prospector assumed the states were not finished and didn't start harvesting. A second restart resolved the problem.

@ruflin ruflin added Filebeat Filebeat needs_backport PR is waiting to be backported to other branches. review labels Jan 10, 2017
@ruflin
Copy link
Member Author

ruflin commented Jan 10, 2017

This bug does not affect 5.0.0 but all follow up version as the issue was introduced here: 76e8f99

@@ -43,6 +43,7 @@ https://github.com/elastic/beats/compare/v5.1.1...master[Check the HEAD diff]

*Filebeat*
- Fix registry cleanup issue when files falling under ignore_older after restart. {issue}2818[2818]
- Fix registry migration issue from old states were files were only harvested after second restart.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Link to the issue/PR, please.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do a second commit. Linking to PR is always tricky before it is created :-)

The state of migrated states was not properly updated in the registry file. This lead to the issue that after the first restart, the states were migrated but the prospector assumed the states were not finished and didn't start harvesting. A second restart resolved the problem.

Discussion started here: https://discuss.elastic.co/t/filebeat-upgrade-requiring-multiple-restarts/70414/8
@ruflin ruflin force-pushed the fix-registry-migration branch from 072d6e5 to c0c9be9 Compare January 10, 2017 08:40
@ruflin
Copy link
Member Author

ruflin commented Jan 10, 2017

jenkins, retest it

@tsg tsg merged commit fb47507 into elastic:master Jan 10, 2017
@ruflin ruflin deleted the fix-registry-migration branch January 10, 2017 14:02
ruflin added a commit to ruflin/beats that referenced this pull request Jan 10, 2017
)

The state of migrated states was not properly updated in the registry file. This lead to the issue that after the first restart, the states were migrated but the prospector assumed the states were not finished and didn't start harvesting. A second restart resolved the problem.

Discussion started here: https://discuss.elastic.co/t/filebeat-upgrade-requiring-multiple-restarts/70414/8
(cherry picked from commit fb47507)
ruflin added a commit to ruflin/beats that referenced this pull request Jan 10, 2017
)

The state of migrated states was not properly updated in the registry file. This lead to the issue that after the first restart, the states were migrated but the prospector assumed the states were not finished and didn't start harvesting. A second restart resolved the problem.

Discussion started here: https://discuss.elastic.co/t/filebeat-upgrade-requiring-multiple-restarts/70414/8
(cherry picked from commit fb47507)
tsg pushed a commit that referenced this pull request Jan 10, 2017
…3325)

The state of migrated states was not properly updated in the registry file. This lead to the issue that after the first restart, the states were migrated but the prospector assumed the states were not finished and didn't start harvesting. A second restart resolved the problem.

Discussion started here: https://discuss.elastic.co/t/filebeat-upgrade-requiring-multiple-restarts/70414/8
(cherry picked from commit fb47507)
tsg pushed a commit that referenced this pull request Jan 10, 2017
…3326)

The state of migrated states was not properly updated in the registry file. This lead to the issue that after the first restart, the states were migrated but the prospector assumed the states were not finished and didn't start harvesting. A second restart resolved the problem.

Discussion started here: https://discuss.elastic.co/t/filebeat-upgrade-requiring-multiple-restarts/70414/8
(cherry picked from commit fb47507)
@ruflin ruflin removed the needs_backport PR is waiting to be backported to other branches. label Jan 31, 2017
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
) (elastic#3325)

The state of migrated states was not properly updated in the registry file. This lead to the issue that after the first restart, the states were migrated but the prospector assumed the states were not finished and didn't start harvesting. A second restart resolved the problem.

Discussion started here: https://discuss.elastic.co/t/filebeat-upgrade-requiring-multiple-restarts/70414/8
(cherry picked from commit 61432ab)
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
) (elastic#3326)

The state of migrated states was not properly updated in the registry file. This lead to the issue that after the first restart, the states were migrated but the prospector assumed the states were not finished and didn't start harvesting. A second restart resolved the problem.

Discussion started here: https://discuss.elastic.co/t/filebeat-upgrade-requiring-multiple-restarts/70414/8
(cherry picked from commit 61432ab)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants