-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
95436: storage: rely on pebble for log message in case of write stall r=joshimhoff a=joshimhoff Part of #67856. Haven't added additional context re: op type & size of write to `pebble.DiskSlowInfo` but will do that shortly. With this change, if we make changes to how much context is included in `pebble.DiskSlowInfo`, we will not need to make a CRDB change to have the context in the CRDB logs. Note also that I will adjust the pebble String method to be less accusatory to disks ("disk slow" -> "write slow"). See below for log message with this commit in. ``` $ ./dev test pkg/storage -v --filter='TestPebbleMetricEventListener' --show-logs $ bazel test pkg/storage:all --test_env=GOTRACEBACK=all --test_filter=TestPebbleMetricEventListener --test_arg -test.v --test_arg -show-logs --test_sharding_strategy=disabled --test_output all Starting local Bazel server and connecting to it... INFO: Invocation ID: a4365f4b-9190-4ef3-8a54-de3b4c0c46b7 INFO: Analyzed 3 targets (626 packages loaded, 16556 targets configured). INFO: Found 2 targets and 1 test target... INFO: From Testing //pkg/storage:storage_test: ==================== Test output for //pkg/storage:storage_test: initialized metamorphic constant "span-reuse-rate" with value 58 initialized metamorphic constant "mvcc-value-disable-simple-encoding" with value true initialized metamorphic constant "mvcc-max-iters-before-seek" with value 2 initialized metamorphic constant "span-reuse-rate" with value 39 initialized metamorphic constant "mvcc-value-disable-simple-encoding" with value true initialized metamorphic constant "mvcc-max-iters-before-seek" with value 0 === RUN TestPebbleMetricEventListener test_log_scope.go:76: test logs captured to: /private/var/tmp/_bazel_joshimhoff/69f147d3e5e8d9a9bc7bc343361a1a94/sandbox/darwin-sandbox/6/execroot/com_github_cockroachdb_cockroach/_tmp/88d640957a51906868fc787a6e8a38b4/logTestPebbleMetricEventListener440509452 E230118 21:01:15.941881 28 storage/pebble.go:1001 [-] 1 write stall detected: disk slowness detected: write to file has been ongoing for 70.0s pebble_test.go:356: -- test log scope end -- --- PASS: TestPebbleMetricEventListener (0.05s) PASS ================================================================================ INFO: Elapsed time: 29.194s, Critical Path: 8.66s INFO: 7 processes: 1 internal, 6 darwin-sandbox. INFO: Build completed successfully, 7 total actions //pkg/storage:storage_test PASSED in 0.6s Executed 1 out of 1 test: 1 test passes. INFO: Build completed successfully, 7 total actions ``` **storage: rely on pebble for log message in case of write stall** In case of a write stall, CRDB logs out details re: the write stall. By default, CRDB logs at fatal level & then crashes. Before this commit, tho the pebble event had a String method, it was not used in the CRDB log message. This means adding additional context to the pebble event will not add the context to the CRDB logs, unless a CRDB change is made in addition to a pebble change. With this commit, the log message calls the pebble event's String method. Release note (ops change): CRDB log message in case of write stall has been adjusted slightly. 95697: cloud/kubernetes: update to v22.2.3 r=celiala a=cameronnunez Part of https://cockroachlabs.atlassian.net/browse/REL-248 Release note: None 95698: roachtest: update version map for 22.2.3 r=rail,renatolabs a=cameronnunez Part of: https://cockroachlabs.atlassian.net/browse/REL-248 Release note: None 95714: logictest: fix retry on query that returns a fleeting error r=cucaroach a=cucaroach Fixes: #95664 Release note: None Epic: CRDB-20535 95751: cdc: add transformations to create changefeed telemetry r=jayshrivastava a=jayshrivastava Previously, there were no telemetry events emitted to track the usage of changefeed transformations. This change adds the `transformation` field to the `CREATE CHANGEFEED` telemetry log event to track that. Example: ``` { "Timestamp": 1674574083953989000, "EventType": "create_changefeed", "Description": "CREATE CHANGEFEED INTO 'gcpubsub://testfeed?region=testfeedRegion' AS SELECT b FROM foo", "SinkType": "gcpubsub", "NumTables": 1, "Resolved": "no", "Transformation": true } ``` Epic: CRDB-17161 Closes: #95126 Release note: None 95784: dev: in `doctor`, include output of failed `git submodule` invocations r=healthy-pod a=rickystewart Epic: none Release note: None Co-authored-by: Josh Imhoff <[email protected]> Co-authored-by: Cameron Nunez <[email protected]> Co-authored-by: Tommy Reilly <[email protected]> Co-authored-by: Jayant Shrivastava <[email protected]> Co-authored-by: Ricky Stewart <[email protected]>
- Loading branch information
Showing
43 changed files
with
146 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ | |
"21.2": "21.1.12", | ||
"22.1": "21.2.7", | ||
"22.2": "22.1.6", | ||
"23.1": "22.2.2" | ||
"23.1": "22.2.3" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.