-
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.
60947: bulkio: make backup, restore, and import more resilient to node failures r=pbardea a=pbardea This PR extracts error helpers that were specific to the changefeedccl package, so that they can be used by all other jobs that run long-running DistSQL flows. This allows all jobs to be resilient to node failures. This commit does not fix that less-than-ideal error handling used to detect RPC failures from DistSQL flow, but does aim to centralize the checks so that they occur only in 1 place. Informs #50732. Please see individual commits. Release-justification: high impact fix 62452: ui: Replace "Admin UI" with "DB Console" on login r=nathanstilwell a=nathanstilwell Changed a few remaining instances of "Admin UI" to "DB Console" that were spotted on the login page. Release note (ui change): Change copy that referred to the app as "Admin UI" to "DB Console" instead 62870: Revert "sql: lease acquisition of OFFLINE descs may starve bulk operations" r=ajwerner a=fqazi Fixes: #62864, #62853, #62849, #62844 Reverts offline descriptor leasing change to fix intermittent failures introduced inside the importccl tests. Release note: None Co-authored-by: Paul Bardea <[email protected]> Co-authored-by: Nathan Stilwell <[email protected]> Co-authored-by: Faizan Qazi <[email protected]>
- Loading branch information
Showing
18 changed files
with
607 additions
and
242 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright 2021 The Cockroach Authors. | ||
// | ||
// Licensed as a CockroachDB Enterprise file under the Cockroach Community | ||
// License (the "License"); you may not use this file except in compliance with | ||
// the License. You may obtain a copy of the License at | ||
// | ||
// https://github.com/cockroachdb/cockroach/blob/master/licenses/CCL.txt | ||
|
||
package utilccl | ||
|
||
import "strings" | ||
|
||
// IsDistSQLRetryableError returns true if the supplied error, or any of its parent | ||
// causes is an rpc error. | ||
// This is an unfortunate implementation that should be looking for a more | ||
// specific error. | ||
func IsDistSQLRetryableError(err error) bool { | ||
if err == nil { | ||
return false | ||
} | ||
|
||
// TODO(knz): this is a bad implementation. Make it go away | ||
// by avoiding string comparisons. | ||
|
||
errStr := err.Error() | ||
// When a crdb node dies, any DistSQL flows with processors scheduled on | ||
// it get an error with "rpc error" in the message from the call to | ||
// `(*DistSQLPlanner).Run`. | ||
return strings.Contains(errStr, `rpc error`) | ||
} |
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.