Skip to content

[dbnode] Rename embed.Config URL fields, bump etcd to 3.5.8 - #4404

Closed
justinhwang wants to merge 1 commit into
m3db:masterfrom
justinhwang:justinhwang/etcd-embed-field-rename
Closed

justinhwang wants to merge 1 commit into
m3db:masterfrom
justinhwang:justinhwang/etcd-embed-field-rename

Conversation

@justinhwang

Copy link
Copy Markdown
Collaborator

What this PR does / why we need it:

Fixes compilation against etcd >= 3.5.8. etcd renamed embed.Config's LPUrls/LCUrls/APUrls/ACUrls fields to ListenPeerUrls/ListenClientUrls/AdvertisePeerUrls/AdvertiseClientUrls in v3.5.8 — a breaking rename with no aliases. Master pins etcd 3.5.5 and uses the old names in NewEtcdEmbedConfig (src/cmd/services/m3dbnode/config/config.go), so any downstream consumer whose module graph forces etcd server v3.5.8+ (e.g. via a replace directive) cannot compile m3.

Special notes for your reviewer:

  • Why 3.5.8 and not latest (3.5.16+): etcd server v3.5.14+ requires grpc >= 1.59 / protobuf >= 1.33, which forces the OpenTelemetry module constellation forward and breaks m3's current otel v1.4.1 / opentelemetry-collector usage (go.opentelemetry.io/otel/metric/global was removed from newer otel releases, so go mod tidy fails). 3.5.8 requires only grpc 1.41, so nothing else in the module graph moves — the go.mod/go.sum diff is confined to the etcd modules. Going further is a separate otel-modernization effort.
  • No behavior change: the fields were renamed upstream with identical semantics.
  • Verified: go mod tidy passes, src/cmd/services/m3dbnode/config and src/dbnode/server build, and the config package tests pass.

Does this PR introduce a user-facing and/or backwards incompatible change?:

m3's etcd dependency is bumped from 3.5.5 to 3.5.8. Binaries now embed etcd 3.5.8 for embedded-etcd (seed node) mode, and projects importing m3 as a Go module will have their go.etcd.io/etcd/* modules resolved to >= 3.5.8. No change is required for external etcd clusters, as client wire compatibility across the 3.x line is unaffected.

Does this PR require updating code package or user-facing documentation?:

NONE

etcd renamed embed.Config's LPUrls/LCUrls/APUrls/ACUrls fields to
ListenPeerUrls/ListenClientUrls/AdvertisePeerUrls/AdvertiseClientUrls
in v3.5.8 (a breaking rename with no aliases). Master currently pins
etcd 3.5.5 and uses the old names, which means m3 fails to compile
against any etcd >= 3.5.8 forced by a downstream replace directive.

Bump to 3.5.8 specifically: 3.5.14+ requires grpc >= 1.59 and
protobuf >= 1.33, which drags the module graph past otel v1.4.1 and
breaks m3's opentelemetry-collector usage (otel/metric/global was
removed from newer otel releases). 3.5.8 requires only grpc 1.41, so
nothing else in the graph moves.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@justinhwang
justinhwang force-pushed the justinhwang/etcd-embed-field-rename branch from 3d0666b to ddfcb49 Compare September 15, 2026 21:27
@justinhwang
justinhwang deleted the justinhwang/etcd-embed-field-rename branch September 16, 2026 17:21
@justinhwang

Copy link
Copy Markdown
Collaborator Author

Reopened as #4407, rebased onto current master and branched from this repository rather than a fork so CI can run.

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.

1 participant