forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
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
125618: roachprod: handle insecure cluster in delete cluster config r=DarrylWong a=nameisbhaskar If a insecure cluster is created, the corresponding config is created in prometheus. This config is created in a separate location that is different from the secure clusters. When this cluster is destroyed, the ?insecure=true flag has to be passed so that the specific config file gets deleted. This is not done today. This change passes the ?insecure=true for insecure clusters Fixes: cockroachdb#125616 Epic: None 125832: streamingccl/logical: dedup code in query construction r=yuzefovich a=stevendanna This dedups some code during insert query construction and makes use of the `excluded` table in the ON CONFLICT clause rather than referencing the positional arguments again. I don't expect this to have much of an impact on query performance. Rather, I think this will simplify some other potential changes to query construction. Interestingly, the microbenchmark does show a small reduction in allocs, but I haven't tested this at larger scales yet: ``` │ old.txt │ new.txt │ │ sec/op │ sec/op vs base │ LastWriteWinsInsert 749.8µ ± 11% 718.4µ ± 5% ~ (p=0.280 n=10) │ old.txt │ new.txt │ │ B/op │ B/op vs base │ LastWriteWinsInsert 251.3Ki ± 1% 244.5Ki ± 1% -2.68% (p=0.000 n=10) │ old.txt │ new.txt │ │ allocs/op │ allocs/op vs base │ LastWriteWinsInsert 1.881k ± 0% 1.741k ± 0% -7.42% (p=0.000 n=10) ``` Epic: none Release note: None Co-authored-by: Bhaskarjyoti Bora <bhaskar.bora@cockroachlabs.com> Co-authored-by: Steven Danna <danna@cockroachlabs.com>
- Loading branch information
Showing
4 changed files
with
68 additions
and
48 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