Skip to content

Address race condition during synchronization of datasets between Qbis and DM#1385

Merged
sven1103 merged 3 commits intomainfrom
fix/raw-data-sync-race-condition
Mar 11, 2026
Merged

Address race condition during synchronization of datasets between Qbis and DM#1385
sven1103 merged 3 commits intomainfrom
fix/raw-data-sync-race-condition

Conversation

@Steffengreiner
Copy link
Copy Markdown
Contributor

What was changed

Currently the raw dataset information is synchronised between openbis and the data manger via a dedicated synchronization service which sets and retrieves watermarks to get the current progress of synchronization.

However if datasets are registered within the synchronization (As can happen if bigger datasets are registered in openbis) then the watermark setting does not work correctly since it sets the update interval to instance.now() after pagination instead of the timepoint of the last successful synchronization.

Note

1.) This is just a hotfix, this does NOT fix missing datasets which already were not synchronized.
2.) The current implementation does not account for update or deletion of datasets in openbis, since it solely relies on time points which is less than ideal. The current state of datasets should be synchronized dependent on the entities not on some watermark based timepoint.

@github-actions github-actions Bot added the fix label Feb 25, 2026
@Steffengreiner Steffengreiner requested a review from a team as a code owner March 11, 2026 12:28
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Copy link
Copy Markdown
Contributor

@sven1103 sven1103 left a comment

Choose a reason for hiding this comment

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

NIce catch!

@sven1103 sven1103 merged commit 827cd39 into main Mar 11, 2026
10 of 11 checks passed
@sven1103 sven1103 deleted the fix/raw-data-sync-race-condition branch March 11, 2026 12:40
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