#ff6600
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
1c1 | |
< // Copyright 2014 The Cockroach Authors. | |
--- | |
> // Copyright 2024 The Cockroach Authors. | |
8,11c8,38 | |
< // IsColumnar returns true if this InternalTimeSeriesData stores its samples | |
< // in columnar format. | |
< func (data *InternalTimeSeriesData) IsColumnar() bool { | |
< return len(data.Offset) > 0 | |
--- |
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
from pathlib import Path | |
from openai import OpenAI | |
client = OpenAI() | |
input_file_path = Path(__file__).parent / "input.txt" | |
with open(input_file_path, 'r') as f: | |
paragraphs = f.read().split('\n\n') | |
for i, input in enumerate(paragraphs): | |
response = client.audio.speech.create( |
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
E230706 18:27:30.787545 188 1@util/log/logcrash/crash_reporting.go:188 ⋮ [T1,n9] 2245 a panic has occurred! | |
E230706 18:27:30.787545 188 1@util/log/logcrash/crash_reporting.go:188 ⋮ [T1,n9] 2245 +‹can't leave a non-joint config› | |
E230706 18:27:30.787545 188 1@util/log/logcrash/crash_reporting.go:188 ⋮ [T1,n9] 2245 +(1) attached stack trace | |
E230706 18:27:30.787545 188 1@util/log/logcrash/crash_reporting.go:188 ⋮ [T1,n9] 2245 + -- stack trace: | |
E230706 18:27:30.787545 188 1@util/log/logcrash/crash_reporting.go:188 ⋮ [T1,n9] 2245 + | runtime.gopanic | |
E230706 18:27:30.787545 188 1@util/log/logcrash/crash_reporting.go:188 ⋮ [T1,n9] 2245 + | GOROOT/src/runtime/panic.go:884 | |
E230706 18:27:30.787545 188 1@util/log/logcrash/crash_reporting.go:188 ⋮ [T1,n9] 2245 + | go.etcd.io/raft/v3.(*raft).applyConfChange | |
E230706 18:27:30.787545 188 1@util/log/logcrash/crash_reporting.go:188 ⋮ [T1,n9] 2245 + | go.etcd.io/raft/v3/external/io_etcd_go_raft_v3/raft.go:1870 | |
E230706 18:27:30.787545 188 1@util/log/logcrash/crash |
This file has been truncated, but you can view the full file.
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
goroutine 408771655 [running]: | |
runtime/pprof.writeGoroutineStacks({0x7f2f2fac2818, 0xc09ec5aa00}) | |
GOROOT/src/runtime/pprof/pprof.go:692 +0x70 | |
runtime/pprof.writeGoroutine({0x7f2f2fac2818?, 0xc09ec5aa00?}, 0x0?) | |
GOROOT/src/runtime/pprof/pprof.go:681 +0x2b | |
runtime/pprof.(*Profile).WriteTo(0x55d8d00?, {0x7f2f2fac2818?, 0xc09ec5aa00?}, 0xc?) | |
GOROOT/src/runtime/pprof/pprof.go:330 +0x14b | |
net/http/pprof.handler.ServeHTTP({0xc01417a4c1, 0x9}, {0x6f81db0, 0xc09ec5aa00}, 0x702f67756265642f?) | |
GOROOT/src/net/http/pprof/pprof.go:253 +0x4a5 | |
net/http/pprof.Index({0x6f81db0?, 0xc09ec5aa00}, 0xc387927600) |
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, |
This file has been truncated, but you can view the full file.
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
=== RUN TestWriteWithStuckLeaseholderDisk | |
test_log_scope.go:161: test logs captured to: /var/folders/bw/w49dhnhx61xdh_t25_zscjpc0000gq/T/logTestWriteWithStuckLeaseholderDisk2758821677 | |
test_log_scope.go:79: use -show-logs to present logs inline | |
client_stuck_disk_test.go:423: write 0: <nil> | |
client_stuck_disk_test.go:423: write 1: <nil> | |
client_stuck_disk_test.go:423: write 2: <nil> | |
client_stuck_disk_test.go:423: write 3: <nil> | |
client_stuck_disk_test.go:423: write 4: <nil> | |
client_stuck_disk_test.go:423: write 5: <nil> | |
client_stuck_disk_test.go:423: write 6: <nil> |
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
// DumpMemSST iterates through the SST represented by the input bytes and returns | |
// all MVCC point and range key values in it. | |
// | |
// Not optimized. | |
// For testing only. | |
func DumpMemSST(sst []byte) (ps []MVCCKeyValue, rs []MVCCRangeKeyValue, _ error) { | |
it, err := NewMemSSTIterator(sst, false, IterOptions{ | |
LowerBound: keys.MinKey, | |
UpperBound: keys.MaxKey, | |
KeyTypes: IterKeyTypePointsAndRanges, |
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
$ benchstat benchdiff/50c064e/artifacts/out.2022-12-21T13_05_49Z benchdiff/52671d3/artifacts/out.2022-12-21T13_05_49Z | |
name old time/op new time/op delta | |
ReplicaProposal/bytes=256_B,withFollower=false-24 108µs ± 4% 109µs ± 5% ~ (p=0.286 n=30+30) | |
ReplicaProposal/bytes=256_B,withFollower=true-24 139µs ± 4% 140µs ± 6% ~ (p=0.273 n=30+30) | |
ReplicaProposal/bytes=512_B,withFollower=false-24 112µs ± 5% 113µs ± 5% ~ (p=0.217 n=30+27) | |
ReplicaProposal/bytes=512_B,withFollower=true-24 146µs ± 4% 145µs ± 3% ~ (p=0.255 n=30+27) | |
ReplicaProposal/bytes=1.0_KiB,withFollower=false-24 123µs ± 7% 124µs ± 6% ~ (p=0.227 n=29+29) | |
ReplicaProposal/bytes=1.0_KiB,withFollower=true-24 156µs ± 3% 157µs ± 4% ~ (p=0.362 n=29+30) | |
ReplicaProposal/bytes=256_KiB,withFollower=false-24 2.48ms ± 7% 2.56ms ± 7% +3.39% (p=0.002 n=30+29) | |
ReplicaProposal/bytes=256_KiB,withFollower=true |
WriteBatch gets created internally in a storage.Batch
// instance 1
The impl actually copies, womp womp (the batch reuses the original memory but still): // instance 2
Aside: If we kept the batch around with the proposal, we could conceivably use its backing memory. We could also apply the batch directly, possibly saving overhead on the leaseholder.
NewerOlder