Merge pull request #6328 from influxdata/dom/fix-wal-panic

fix: do not panic when writer disconnects
pull/24376/head
kodiakhq[bot] 2022-12-05 14:56:52 +00:00 committed by GitHub
commit cc9d4d302f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -458,7 +458,8 @@ impl OpenSegmentFile {
match req {
Write(tx, data) => {
let x = open_write.write(&data).unwrap();
tx.send(x).unwrap();
// Ignore send errors - the caller may have disconnected.
let _ = tx.send(x);
}
Rotate(tx, ()) => {