-
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.
73887: colrpc: propagate the flow cancellation as ungraceful for FlowStream RPC r=yuzefovich a=yuzefovich This commit fixes an oversight in the cancellation protocol of the vectorized inbox/outbox communication. Previously, when the flow context of the inbox host has been canceled (indicating that the whole query should be canceled) we would propagate it as a graceful completion of the `FlowStream` RPC which would result in the outbox cancelling only its own subtree on the remote node. However, what we ought to do is to propagate such cancellation as the ungraceful RPC completion so that the outbox would also cancel the flow context of its own host. In some rare cases the old behavior could result in some flows being stuck forever (until a node is restarted) because they would get blocked on producing the data when their consumer has already exited. The behavior in this fix is what we already have in place for the row-by-row engine (see `processInboundStreamHelper` in `flowinfra/inbound.go`). Fixes: https://github.com/cockroachlabs/support/issues/1326. Fixes: #72445. Release note (bug fix): The bug with the ungraceful shutdown of the distributed queries in some rare cases has been fixed. "Ungraceful" here means because of the `statement_timeout` (most likely) or because a node crashed. 73921: ui: use convert functions from cluster-ui pkg r=matthewtodd a=xinhaoz Partially addresses #71826 Previously, time unit conversion functions were being duplicated across the cluster-ui and db-console packages. This commit replaces db-console convert functions with the exported functions from cluster-ui, allowing us to delete the duplicated file in db-console. Release note: None 73926: schemachanger/scdeps/sctestdeps: decompose constructor r=ajwerner a=ajwerner Release note: None 73936: ui: avoid re-defining consts from cluster-ui in db-console r=maryliag a=xinhaoz Partially addresses #71826 Previously, we re-defined many constants across cluster-ui and db-console. This commit imports shared constants in both packages into db-console to avoid the duplication. Release note: None Co-authored-by: Yahor Yuzefovich <[email protected]> Co-authored-by: Xin Hao Zhang <[email protected]> Co-authored-by: Andrew Werner <[email protected]>
- Loading branch information
Showing
50 changed files
with
587 additions
and
477 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
Oops, something went wrong.