Skip to content

core: Enable Happy Eyeballs in pick_first by default - #13201

Merged
kannanjgithub merged 1 commit into
grpc:masterfrom
kannanjgithub:enable-happy-eyeballs
Nov 23, 2026
Merged

kannanjgithub merged 1 commit into
grpc:masterfrom
kannanjgithub:enable-happy-eyeballs

Conversation

@kannanjgithub

Copy link
Copy Markdown
Contributor

Change the default of GRPC_PF_USE_HAPPY_EYEBALLS to true.

Change the default of GRPC_PF_USE_HAPPY_EYEBALLS to true. It can still
be disabled by setting the flag to false.

Test fixes needed with the new default:
- RingHashLoadBalancerTest: the expected requestConnection() counts
  assumed Happy Eyeballs causes a second call on the subchannel. With the
  new pick_first and a single address only one call happens; the count
  depends only on whether the new pick_first is enabled.
- ClusterImplLoadBalancerTest: FakeLbHelper now provides a
  ScheduledExecutorService, which pick_first needs to schedule the
  Happy Eyeballs connection delay.
- RandomSubsettingLoadBalancerTest: the mock Helper now provides a
  SynchronizationContext and ScheduledExecutorService, which the
  pick_first children of round_robin need to schedule the Happy Eyeballs
  connection delay.
- Rescheduler.isEnabled() (test-only) returns false for tasks that are
  not Rescheduler tasks, so ManagedChannelImplIdlenessTest's teardown
  check tolerates the pending Happy Eyeballs timer from the OOB channel.

TAG=agy
CONV=f4f988f1-e662-4825-a7ab-ac601c12d0d5
CONV=2b34d6af-c0df-46b4-8326-2dea3641f8cc
@kannanjgithub
kannanjgithub merged commit 6336333 into grpc:master Nov 23, 2026
17 of 18 checks passed
@kannanjgithub
kannanjgithub deleted the enable-happy-eyeballs branch November 23, 2026 09:30
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