(fix): handle nil shardorchestrator#22591
Conversation
|
👋 justinkaseman, thanks for creating this pull request! To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team. Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks! |
|
I see you updated files related to
|
|
✅ No conflicts with other open PRs targeting |
There was a problem hiding this comment.
Pull request overview
Risk Rating: LOW
Fixes a subtle Go “typed nil in interface” issue when creating the ShardOrchestrator client in the CRE workflow registry syncer, preventing downstream code from treating a non-functional client as present.
Changes:
- Avoids assigning a
(*shardorchestrator.Client)(nil)into ashardorchestrator.ClientInterface, ensuring the interface remains trulynilwhen shard 0 does not create a client. - Adds a debug log when the client is intentionally not created (shard 0 path).
Scrupulous human review recommended for:
core/services/cre/cre.go:newWorkflowRegistrySyncerV2shard-orchestrator initialization path — confirm shard 0 behavior is correct for your sharding topology (it now reliably results in anilinterface, which will skip ownership checks that are guarded byclient != nil).
|




No description provided.