Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

diagnostics.reporting.enabled cluster setting is required to enable server.telemetry.hot_ranges_stats.enabled. #122977

Closed
dhartunian opened this issue Apr 24, 2024 · 0 comments · Fixed by #124425
Assignees
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1 backport-23.2.x Flags PRs that need to be backported to 23.2. backport-24.1.x Flags PRs that need to be backported to 24.1. C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. T-observability

Comments

@dhartunian
Copy link
Collaborator

dhartunian commented Apr 24, 2024

Customer cannot enable hot ranges stats in their logs without also enabling diagnostic reporting. These options should be independent since diagnostic reporting could be something the customer wants to enable independently of hot ranges stats.

Jira issue: CRDB-38152

@dhartunian dhartunian added C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. T-observability backport-23.1.x Flags PRs that need to be backported to 23.1 backport-23.2.x Flags PRs that need to be backported to 23.2. backport-24.1.x Flags PRs that need to be backported to 24.1. labels Apr 24, 2024
kyle-a-wong added a commit to kyle-a-wong/cockroach that referenced this issue May 17, 2024
…porting disabled

Previously, enable hot ranges stats also required the enabling of diagnostic
reporting. Hot ranges stats shouldn't be dependent on diagnostic reporting
and someone might want to enable hot ranges stats without enabling diagnostic
reporting.

Now, server.telemetry.hot_ranges_stats.enabled can be set to true while
without setting diagnostics.reporting.enabled

Epic: none
Fixes: cockroachdb#122977
Part of: https://cockroachlabs.atlassian.net/browse/CRDB-38152

Release note: None
kyle-a-wong added a commit to kyle-a-wong/cockroach that referenced this issue May 20, 2024
…porting disabled

Previously, enable hot ranges stats also required the enabling of diagnostic
reporting. Hot ranges stats doesn't need to be dependent on diagnostic reporting
and someone might want to enable hot ranges stats without enabling diagnostic
reporting.

Now, server.telemetry.hot_ranges_stats.enabled can be set to true while
without setting diagnostics.reporting.enabled

Epic: none
Fixes: cockroachdb#122977
Part of: https://cockroachlabs.atlassian.net/browse/CRDB-38152

Release note: None
kyle-a-wong added a commit to kyle-a-wong/cockroach that referenced this issue May 20, 2024
…abled

Previously, enabling hot ranges stats also required the enabling of diagnostic
reporting. Hot ranges stats doesn't need to be dependent on diagnostic
reporting and someone might want to enable hot ranges stats without enabling
diagnostic reporting.

Now, `server.telemetry.hot_ranges_stats.enabled` can be set to true without
setting `diagnostics.reporting.enabled`.

Epic: none
Fixes: cockroachdb#122977
Release note (ops change): Enabling the
`server.telemetry.hot_ranges_stats.enabled` setting no longer requires the
`diagnostics.reporting.enabled` setting to be set to true. Because
`server.telemetry.hot_ranges_stats.enabled` is enabled by default, those who
have `diagnostics.reporting.enabled` set to false  and no explicity setting
for `server.telemetry.hot_ranges_stats.enabled` will now see hot range stats
in their telemetry logs.
kyle-a-wong added a commit to kyle-a-wong/cockroach that referenced this issue May 20, 2024
…abled

Previously, enabling hot ranges stats also required the enabling of diagnostic
reporting. Hot ranges stats doesn't need to be dependent on diagnostic
reporting and someone might want to enable hot ranges stats without enabling
diagnostic reporting.

Now, `server.telemetry.hot_ranges_stats.enabled` can be set to true without
setting `diagnostics.reporting.enabled`.

Epic: none
Fixes: cockroachdb#122977
Release note (ops change): Enabling the
`server.telemetry.hot_ranges_stats.enabled` setting no longer requires the
`diagnostics.reporting.enabled` setting to be set to true. Because
`server.telemetry.hot_ranges_stats.enabled` is enabled by default, those who
have `diagnostics.reporting.enabled` set to false and no explicit setting
for `server.telemetry.hot_ranges_stats.enabled` will now see hot range stats
in their telemetry logs.
kyle-a-wong added a commit to kyle-a-wong/cockroach that referenced this issue May 20, 2024
…abled

Previously, enabling hot ranges stats also required the enabling of diagnostic
reporting. Hot ranges stats doesn't need to be dependent on diagnostic
reporting and someone might want to enable hot ranges stats without enabling
diagnostic reporting.

Now, `server.telemetry.hot_ranges_stats.enabled` can be set to true without
setting `diagnostics.reporting.enabled`.

Epic: none
Fixes: cockroachdb#122977
Release note (ops change): Enabling the
`server.telemetry.hot_ranges_stats.enabled` setting no longer requires the
`diagnostics.reporting.enabled` setting to be set to true. Because
`server.telemetry.hot_ranges_stats.enabled` is enabled by default, those who
have `diagnostics.reporting.enabled` set to false and no explicit setting
for `server.telemetry.hot_ranges_stats.enabled` will now see hot ranges stats
in their telemetry logs.
craig bot pushed a commit that referenced this issue May 21, 2024
123120: ui: Highlight unavailable ranges in red on the summary bar with nonzero r=abarganier a=theloneexplorerquest

Modify the summary bar to change the color of unavailable ranges. When the unavailable range is greater than zero, it will be displayed in red; if it is zero, it will be green.

Fix: #122014

Release note (ui): Changed the color of unavailable ranges on the summary bar to red when nonzero; ranges are green when zero.

124301: logtestutils: generalize structured logging spy r=xinhaoz a=xinhaoz

This commit generalizes the structured logging spy previously being used for datadriven telemetry tests so that it can repurposed for other structured logging channels.

Epic: none

Release note: None

124403: roachtest: use first transient error when checking for flakes r=srosenberg a=renatolabs

Previously, roachtest would only look at the outermost error in a chain that matched a `TransientError` (or `ErrorWithOwnership`) when checking for flakes. However, that is in most cases *not* what we want: if a transient error wraps another transient error, the actual reason for the failure is the original (wrapped) error.

Informs: #123887

Release note: None

124425: pkg/server/structlogging: support hot ranges stats with diagnostic reporting disabled r=kyle-a-wong a=kyle-a-wong

Previously, enable hot ranges stats also required the enabling of diagnostic reporting. Hot ranges stats doesn't need to be dependent on diagnostic reporting and someone might want to enable hot ranges stats without enabling diagnostic reporting.

Now, server.telemetry.hot_ranges_stats.enabled can be set to true while without setting diagnostics.reporting.enabled

Epic: none
Fixes: #122977
Part of: https://cockroachlabs.atlassian.net/browse/CRDB-38152

Release note: None

124459: builtins: fix st_geojson when max_decimal_digits is specified r=yuzefovich a=yuzefovich

This commit fixes a regression in `st_geojson` builtin when `max_decimal_digits` argument is specified which was introduced in 6009141 (during 24.1 cycle). In particular, this overload specifies the precision (rather than using the default number of digits), and that commit made it so that we ignore the precision argument. This is now fixed.

Fixes: #124368.

Release note (bug fix): CockroachDB previously would ignore `max_decimal_digits` argument of `st_geojson` builtin function and would use the default instead. The bug is only present in 24.1.0 releases.

124491: raft: remove RawNode.TickQuiesced r=pav-kv a=nvanbenschoten

This commit removes the `(*RawNode).TickQuiesced` method. The method was deprecated back in etcd-io/raft#62 and has not been in use since 2018.

Epic: None
Release note: None

Co-authored-by: theloneexplorerquest <theloneexplorerquest@gmail.com>
Co-authored-by: Xin Hao Zhang <xzhang@cockroachlabs.com>
Co-authored-by: Renato Costa <renato@cockroachlabs.com>
Co-authored-by: Kyle Wong <kyle.wong@cockroachlabs.com>
Co-authored-by: Yahor Yuzefovich <yahor@cockroachlabs.com>
Co-authored-by: Nathan VanBenschoten <nvanbenschoten@gmail.com>
craig bot pushed a commit that referenced this issue May 21, 2024
124301: logtestutils: generalize structured logging spy r=xinhaoz a=xinhaoz

This commit generalizes the structured logging spy previously being used for datadriven telemetry tests so that it can repurposed for other structured logging channels.

Epic: none

Release note: None

124425: pkg/server/structlogging: support hot ranges stats with diagnostic reporting disabled r=kyle-a-wong a=kyle-a-wong

Previously, enable hot ranges stats also required the enabling of diagnostic reporting. Hot ranges stats doesn't need to be dependent on diagnostic reporting and someone might want to enable hot ranges stats without enabling diagnostic reporting.

Now, server.telemetry.hot_ranges_stats.enabled can be set to true while without setting diagnostics.reporting.enabled

Epic: none
Fixes: #122977
Part of: https://cockroachlabs.atlassian.net/browse/CRDB-38152

Release note: None

124459: builtins: fix st_geojson when max_decimal_digits is specified r=yuzefovich a=yuzefovich

This commit fixes a regression in `st_geojson` builtin when `max_decimal_digits` argument is specified which was introduced in 6009141 (during 24.1 cycle). In particular, this overload specifies the precision (rather than using the default number of digits), and that commit made it so that we ignore the precision argument. This is now fixed.

Fixes: #124368.

Release note (bug fix): CockroachDB previously would ignore `max_decimal_digits` argument of `st_geojson` builtin function and would use the default instead. The bug is only present in 24.1.0 releases.

Co-authored-by: Xin Hao Zhang <xzhang@cockroachlabs.com>
Co-authored-by: Kyle Wong <kyle.wong@cockroachlabs.com>
Co-authored-by: Yahor Yuzefovich <yahor@cockroachlabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1 backport-23.2.x Flags PRs that need to be backported to 23.2. backport-24.1.x Flags PRs that need to be backported to 24.1. C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. T-observability
Projects
None yet
2 participants