-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
Can you create an OSGI property to enable this feature? |
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 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.
Managing status by sub agent makes sense. I will take care of it. |
I implemented the per publish agent check. |
@joerghoh I have discussed a way to use a feature toggle in sling with Bogdan. Possibly I will have a solution for this. |
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 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.
Kudos, SonarCloud Quality Gate passed! |
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 |
…ady arrived