test(server-common): add concurrency test and remove redundant copy in InMemoryPushNotificationConfigStore by ehsavoie · Pull Request #20 · kabir/a2a-java · GitHub
Skip to content

test(server-common): add concurrency test and remove redundant copy in InMemoryPushNotificationConfigStore - #20

Merged
kabir merged 1 commit into
kabir:fix/push-config-store-thread-safetyfrom
ehsavoie:push-config-store-thread-safety
Aug 14, 2026
Merged

kabir merged 1 commit into
kabir:fix/push-config-store-thread-safetyfrom
ehsavoie:push-config-store-thread-safety

Conversation

@ehsavoie

Copy link
Copy Markdown
  • add concurrent limit-enforcement test using CyclicBarrier to verify compute() atomicity when two threads race for the last config slot
  • drop unnecessary ArrayList copy when pageSize <= 0 since stored values are already immutable List.copyOf() snapshots

…n InMemoryPushNotificationConfigStore

- add concurrent limit-enforcement test using CyclicBarrier to verify
  compute() atomicity when two threads race for the last config slot
- drop unnecessary ArrayList copy when pageSize <= 0 since stored values
  are already immutable List.copyOf() snapshots

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
@kabir
kabir merged commit 82e60ae into kabir:fix/push-config-store-thread-safety Aug 14, 2026
9 checks passed
@ehsavoie
ehsavoie deleted the push-config-store-thread-safety branch August 26, 2026 16:06
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.

2 participants