Skip to content

Conversation

@Mihajlo-Pavlovic
Copy link
Collaborator

No description provided.

Mihajlo-Pavlovic and others added 30 commits June 24, 2025 17:34
refactor: decouple intervals for sync new and sync missed KCs
…get-telemetry

Improvment/better proofing get telemetry
Mihajlo-Pavlovic and others added 24 commits July 17, 2025 12:13
feat: implement early settling threshold for batchGet
…ved-message

Add early finish for batchGet command
…nd-new-sync

refactor: decouple missed and new sync
@Mihajlo-Pavlovic Mihajlo-Pavlovic self-assigned this Jul 18, 2025
@Mihajlo-Pavlovic Mihajlo-Pavlovic added the release New release label Jul 18, 2025
@Mihajlo-Pavlovic Mihajlo-Pavlovic merged commit 97905df into v6/prerelease/testnet Jul 18, 2025
4 of 6 checks passed
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Bug: Race Conditions in BatchGetCommand

Two race conditions exist in BatchGetCommand due to concurrent processing of messagePromises:

  1. Concurrent modification of ualNotPresentLocally can lead to incorrect element removal when overlapping UALs are returned, as indexOf and splice calls become desynchronized.
  2. Multiple operations can simultaneously satisfy hasReachedThreshold() and call operationService.markOperationAsCompleted before commandCompleted is set, resulting in duplicate completion handling.

src/commands/protocols/get/sender/batch-get-command.js#L301-L321

https://github.com/OriginTrail/ot-node/blob/8e11adb065cf68ce933e29c4d03d752f9a9c45e2/src/commands/protocols/get/sender/batch-get-command.js#L301-L321

Fix in CursorFix in Web


Was this report helpful? Give feedback by reacting with 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release New release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants