Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reuse 'ShardSyncTaskManager' instance for existing stream to avoid duplicate enqueue of 'ShardSyncTask' #1277

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

laxeo
Copy link
Contributor

@laxeo laxeo commented Mar 18, 2024

Description of changes:

  • Make streamToShardSyncTaskManagerMap in Scheduler a ConcurrentHashMap and pass it into PeriodicShardSyncManager when a host is elected as leader
  • Remove unnecessary retrigger mechanism in ShardSyncTaskManager to improve ShardSyncTask Performance
  • Add Metric NumSkippedShardSyncTask to track how many submissions of ShardSyncTask were skipped because of previous ongoing task

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@brendan-p-lynch brendan-p-lynch merged commit e9b810b into awslabs:master Mar 26, 2024
1 check passed
akidambisrinivasan pushed a commit to akidambisrinivasan/amazon-kinesis-client that referenced this pull request Apr 29, 2024
…plicate enqueue of 'ShardSyncTask' (awslabs#1277)

Co-authored-by: Tongqing Zhang <tqzhang@amazon.com>
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