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

SLING-12024 - Import package if status message for later package alre… #122

Merged
merged 3 commits into from
Sep 20, 2023

Conversation

cschneider
Copy link
Contributor

…ady arrived

@joerghoh
Copy link
Contributor

Can you create an OSGI property to enable this feature?

Copy link
Member

@tmaret tmaret left a comment

Choose a reason for hiding this comment

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

I think one changes is required.

Higher status must be managed by sub agent name. Indeed, package offsets are guaranteed to be semantically increasing per agent, but agents interleave message on the same topic.

Could we consider restarting the pod instead of considering the offset to be imported ? In rare cases, the package will be imported when it should not and that will cause inconsistencies.

@cschneider
Copy link
Contributor Author

Managing status by sub agent makes sense. I will take care of it.
Restarting the pod is an interesting idea. We could do it like for the blocked queues by failing a health check.

@cschneider
Copy link
Contributor Author

I implemented the per publish agent check.

@cschneider
Copy link
Contributor Author

@joerghoh I have discussed a way to use a feature toggle in sling with Bogdan. Possibly I will have a solution for this.

Copy link
Member

@tmaret tmaret left a comment

Choose a reason for hiding this comment

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

I wonder if it works as is. It seems the pkg offset is never set. I wonder why we need a navigable map. A navigable map would require a cleanup. I think a long (or atomic long) per sub agent could do.

@sonarcloud
Copy link

sonarcloud bot commented Sep 20, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@tmaret
Copy link
Member

tmaret commented Sep 20, 2023

Just figured out the field is already set in the unchanged code (not in the diff). Also, we do require to keep track of the offsets anyway.

LGTM

@cschneider cschneider merged commit 5a0e0ee into master Sep 20, 2023
2 checks passed
@cschneider cschneider deleted the SLING-12024 branch September 20, 2023 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants