Skip to content

Conversation

sk020734
Copy link
Contributor

When executing scan in parallel with scanPolicy.concurrentNodes = true, the results were inconsistent due to add method of ArrayList not being thread safe. Added synchronized keyword to prevent race condition.

When executing scan in parallel with scanPolicy.concurrentNodes = true, the results were inconsistent due to add method of ArrayList not being thread safe. Added synchronized keyword to prevent race condition
@sk020734
Copy link
Contributor Author

@tim-aero , @reugn Please take a look.

@reugn reugn changed the title Fix: Added synchronized block for Scan Query Result List. fix: synchronize result processor in scan callback Jan 24, 2025
Copy link
Member

@reugn reugn left a comment

Choose a reason for hiding this comment

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

lgtm

@tim-aero tim-aero merged commit 3fc38a6 into aerospike:main Jan 25, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants