You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
149505: cli: "no such host" error when starting CRDB on Mac r=darrylwong a=srosenberg
When CockroachDB is started without `--advertise-addr`, it fallbacks to `--listen-addr`. If the latter is also unspecified, it defaults to the `hostname`.
Subsequently, `validateAdvertiseAddr` attempts to
resolve the hostname. If the resolution fails, the server aborts the startup sequence. This is a safe default because node discovery is compromised without a functioning DNS.
On Mac, `hostname` is resolved via mDNS / Bonjour. Unless it's suffixed with `.local`, it doesn't resolve. An obvious workaround is to add it to /etc/hosts, or to change it via `sudo hostname $USER.local`.
To make the (DEV) experience on Mac more seamless, this PR replaces DNS resolution error with a warning. Since we can't unambiguously determine if the user is running in DEV-mode, we assume that `--insecure` on Mac implies exactly that.
We also update `roachprod` to explicitly use `--advertised-addr` with `127.0.0.1`. This also fixes `roachtest` in local mode.
Fixes: #66426Fixes: #149469
Release note: None
151355: changefeedccl/resolvedspan: integrate span.MultiFrontier into frontiers r=aerfrei,asg0451 a=andyyang890
Fixes#148110
---
**changefeedccl: fix ALTER CHANGEFEED span selection**
This patch updates the ALTER CHANGEFEED code to use primary index spans
instead of entire table spans to be consistent with the rest of the
changefeed code and to help maintain the assumption that we will
never merge spans from different tables in our frontier data structures.
Release note: None
---
**changefeedccl/resolvedspan: integrate span.MultiFrontier into frontiers**
This patch integrates `span.MultiFrontier`s into the resolved span frontiers
to give changefeed processors easy access to per-table resolved timestamps.
Release note: None
---
**changefeedccl/resolvedspan: add feature flag for per-table tracking**
This patch adds a new cluster setting named
`changefeed.frontier.per_table_tracking.enabled`
to feature flag enabling per-table tracking in
the resolved span frontiers.
Release note: None
Co-authored-by: Stan Rosenberg <[email protected]>
Co-authored-by: Andy Yang <[email protected]>
0 commit comments