Skip to content

Conversation

@raman-m
Copy link
Member

@raman-m raman-m commented Nov 10, 2025

Fixes #2304

The problem happened with the first cold request, which returned an empty collection for the winning thread before the initial callback trigger kicked in. The fix simply calls the integrated discovery provider for the first cold request when the queue is empty.

Proposed Changes

  • Reviewed PollKube provider design to use ConcurrentQueue<T> to handle service versions while polling

@raman-m raman-m added this to the Summer'25 milestone Nov 10, 2025
@raman-m raman-m requested review from RaynaldM and ggnaegi November 10, 2025 20:19
@raman-m raman-m self-assigned this Nov 10, 2025
@raman-m raman-m added bug Identified as a potential bug Service Discovery Ocelot feature: Service Discovery Kubernetes Service discovery by Kubernetes Summer'25 Summer 2025 release labels Nov 10, 2025
@raman-m
Copy link
Member Author

raman-m commented Nov 10, 2025

@pietrocarpinacci-dufercodev Please review!

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 92.938% (+0.06%) from 92.88%
when pulling 0e492a0 on bug-2304-PollKube
into 9127387 on develop.

@raman-m raman-m requested a review from tintoy November 10, 2025 22:04
Copy link
Member Author

@raman-m raman-m left a comment

Choose a reason for hiding this comment

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

Ready for delivery ✅

  • Code reviews ➖
  • Unit testing ✔️
  • Acceptance testing ✔️
  • Updating docs ➖ not required due to the bug

@raman-m raman-m merged commit 1fdf6c2 into develop Nov 11, 2025
5 of 7 checks passed
@raman-m raman-m deleted the bug-2304-PollKube branch November 11, 2025 10:45
Copy link
Collaborator

@tintoy tintoy left a comment

Choose a reason for hiding this comment

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

Nice idea; looks good to me.

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

Labels

bug Identified as a potential bug Kubernetes Service discovery by Kubernetes Service Discovery Ocelot feature: Service Discovery Summer'25 Summer 2025 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PollKube doesn't work at first request

4 participants