Prevent infinite recursion in hierarchy ownership updates#19
Merged
Prevent infinite recursion in hierarchy ownership updates#19
Conversation
Signed-off-by: ishitadatta <isheeta50@gmail.com>
Member
|
Good catch, and nice work on the failing test case! :-) Tracked at https://bugzilla.sapsailing.com/bugzilla/show_bug.cgi?id=6216 For the fix I suggest a few minor modifications. See https://github.com/SAP/sailing-analytics/tree/bug6216. A build is running at https://github.com/SAP/sailing-analytics/actions/runs/22759031743. |
Member
|
@ishitadatta can you please sign the CLA so we can include your proposed changes? |
Member
|
That test failure of OpenRegattaTest.simpleTest() seems to have been a stray Github Actions infrastructure issue. Locally, the test passes. I've triggered a re-run... |
Member
|
Merged branch bug6216 into main with 303cca9. |
Member
|
Thanks again, Ishita, for this contribution :-) |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR hardens ownership migration against cyclic event/leaderboard-group graphs that can otherwise recurse indefinitely.
What changed
SailingHierarchyOwnershipUpdaterfor:testCyclicLeagueHierarchyOwnershipChangeStartingAtEventTerminatesthat builds a cyclic topology (shared leaderboard group across two events with an overall leaderboard) and verifies ownership update completes within a timeout.Impact
This prevents non-terminating ownership updates and potential stack overflows in production when hierarchy links are cyclic, which is a high-severity reliability issue.
Validation
LeagueEventHierarchyOwnershipChangeTest.