Open vpaturet opened 5 days ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 69.45%. Comparing base (
15cf5f8
) to head (66dedbb
). Report is 32 commits behind head on dev-2.x.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This fixes the concurrent access on the Timetable object, but the SortedSet that holds the Timetable is also shared between snapshot: it should also be copied for the fix to be complete. I will rework this.
Complete fix:
Summary
As detailed in #5933, there is at least one code path that leads to the concurrent update of Timetable objects while they are being accessed by reader threads. This PR fixes one such code path where a real-time added trip is dissociated from a trip pattern, without using copy-on-write.
Issue
Potentially close #5933
Unit tests
The concurrent access bug itself is not unit-tested. The modified implementation details are tested by the unit tests from the original PR #5726
Documentation
No