Skip to content

Commit b0a4853

Browse files
craig[bot]sean-Xiang-Guerikgrinakerkvoli
committed
107381: go.mod: bump pgx/v5 to 5.4.2 r=sean- a=sean- Upgrade pgx from [v5.3.1 to v5.4.2](jackc/pgx@v5.3.1...v5.4.2#files_bucket). > Replace platform specific syscalls for non-blocking IO with more traditional goroutines and deadlines. This returns to the v4 approach with some additional improvements and fixes. This restores the ability to use a pgx.Conn over an ssh.Conn as well as other non-TCP or Unix socket connections. In addition, it is a significantly simpler implementation that is less likely to have cross platform issues. Release note: none Epic: none 107450: compose: Deflake TestComposeCompare r=Xiang-Gu a=Xiang-Gu This commit fixes a previously overlooked issue to actually disable using locales when creating tables in the TestComposeCompare test. Inform cockroachdb#82867 Epic: None Release justification: Test fixes Release Note: None 107505: kvserver: add lease preference metrics r=erikgrinaker a=kvoli There were no existing metrics to monitor the lease preference conformance. This commit adds two metric gauges: `leases.preferences.violating` and `leases.preferences.less-preferred`. These metrics are reported by the store. `leases.preferences.violating` indicates the number of valid leases a store owns, which satisfy none of the preferences applied. `leases.preferences.less-preferred` indicates the number of valid leases a store owns, which satisfy some of the preferences applied, but not the first one. For example, with a lease preference `'[[+zone=a],[+zone=b]]'`, the metric values with different leaseholders are: ``` leaseholder_locality="zone=c" leases.preferences.less-preferred: 0 leases.preferences.violating: 1 ``` ``` leaseholder_locality="zone=b" leases.preferences.less-preferred: 1 leases.preferences.violating: 0 ``` ``` leaseholder_locality="zone=a" leases.preferences.less-preferred: 0 leases.preferences.violating: 0 ``` When no preferences are applied, the lease is not counted in either metric. Epic: none Informs: cockroachdb#106100 Release note (ops change): Introduce two new metrics to monitor lease range preference conformance. `leases.preferences.violating` indicates the number of valid leases a store owns, which satisfy none of the preferences applied. `leases.preferences.less-preferred` indicates the number of valid leases a store owns, which satisfy some of the preferences applied, but not the first one. 107574: issues: escape title when doing regexp match r=rafiss a=rafiss Without this, a test name that has regex in it could break this search, or even cause roachtest itself to crash. Epic: none Release note: None Co-authored-by: Sean Chittenden <[email protected]> Co-authored-by: Xiang Gu <[email protected]> Co-authored-by: Erik Grinaker <[email protected]> Co-authored-by: Austen McClernon <[email protected]> Co-authored-by: Rafi Shamim <[email protected]>
5 parents 8961a31 + 2d9757c + cd90b8a + e393afb + 40ea68c commit b0a4853

File tree

17 files changed

+386
-259
lines changed

17 files changed

+386
-259
lines changed

DEPS.bzl

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4899,10 +4899,10 @@ def go_deps():
48994899
name = "com_github_jackc_pgx_v5",
49004900
build_file_proto_mode = "disable_global",
49014901
importpath = "github.com/jackc/pgx/v5",
4902-
sha256 = "e2f4a98f6b8716a6854d0a910c12c3527d35ff78ec5f2d16bf49f85601071bf0",
4903-
strip_prefix = "github.com/jackc/pgx/v5@v5.3.1",
4902+
sha256 = "198eebac7e875b51616090fe2e3694e6f27e335afcc3c47ae9991497ade7f52a",
4903+
strip_prefix = "github.com/jackc/pgx/v5@v5.4.2",
49044904
urls = [
4905-
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgx/v5/com_github_jackc_pgx_v5-v5.3.1.zip",
4905+
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgx/v5/com_github_jackc_pgx_v5-v5.4.2.zip",
49064906
],
49074907
)
49084908
go_repository(
@@ -11080,10 +11080,10 @@ def go_deps():
1108011080
name = "org_golang_x_crypto",
1108111081
build_file_proto_mode = "disable_global",
1108211082
importpath = "golang.org/x/crypto",
11083-
sha256 = "7754a7c66b7800ff6e47903c609aa07d0484501826ae047d2ee1a7d5e24fd012",
11084-
strip_prefix = "golang.org/x/crypto@v0.7.0",
11083+
sha256 = "672ebc916740a040d5f5472b477e1d1898e06b0c6c0a5a820b65495bbb133e82",
11084+
strip_prefix = "golang.org/x/crypto@v0.9.0",
1108511085
urls = [
11086-
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/crypto/org_golang_x_crypto-v0.7.0.zip",
11086+
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/crypto/org_golang_x_crypto-v0.9.0.zip",
1108711087
],
1108811088
)
1108911089
go_repository(
@@ -11150,10 +11150,10 @@ def go_deps():
1115011150
name = "org_golang_x_net",
1115111151
build_file_proto_mode = "disable_global",
1115211152
importpath = "golang.org/x/net",
11153-
sha256 = "c28918deb668906821c4e3b5da3643c262ff4ccc48b1b2e021ce188694af9dba",
11154-
strip_prefix = "golang.org/x/net@v0.8.0",
11153+
sha256 = "f92f9b2655226a6d015af7a76279a11fb55678e410b851b158fc846546f80733",
11154+
strip_prefix = "golang.org/x/net@v0.10.0",
1115511155
urls = [
11156-
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/net/org_golang_x_net-v0.8.0.zip",
11156+
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/net/org_golang_x_net-v0.10.0.zip",
1115711157
],
1115811158
)
1115911159
go_repository(
@@ -11190,30 +11190,30 @@ def go_deps():
1119011190
name = "org_golang_x_sys",
1119111191
build_file_proto_mode = "disable_global",
1119211192
importpath = "golang.org/x/sys",
11193-
sha256 = "8c15860e3850e3cea5a7186bb79b8cf98f513d9ac5498099d3bddfd49c6dfc3f",
11194-
strip_prefix = "golang.org/x/sys@v0.6.0",
11193+
sha256 = "2588b3a645838390e341f1007f8679f5e1117b5d5ac9467ef832d148b2219a38",
11194+
strip_prefix = "golang.org/x/sys@v0.8.0",
1119511195
urls = [
11196-
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/sys/org_golang_x_sys-v0.6.0.zip",
11196+
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/sys/org_golang_x_sys-v0.8.0.zip",
1119711197
],
1119811198
)
1119911199
go_repository(
1120011200
name = "org_golang_x_term",
1120111201
build_file_proto_mode = "disable_global",
1120211202
importpath = "golang.org/x/term",
11203-
sha256 = "3699084ad1104a6a0a027a0871e67987304d73a6abb2770c8f7e5ce3d7c1d314",
11204-
strip_prefix = "golang.org/x/term@v0.6.0",
11203+
sha256 = "1961dfea59ce531e2d6e6a3228781f5958b27c6d9d9c09932f5ffc54c4d9cdf9",
11204+
strip_prefix = "golang.org/x/term@v0.8.0",
1120511205
urls = [
11206-
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/term/org_golang_x_term-v0.6.0.zip",
11206+
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/term/org_golang_x_term-v0.8.0.zip",
1120711207
],
1120811208
)
1120911209
go_repository(
1121011210
name = "org_golang_x_text",
1121111211
build_file_proto_mode = "disable_global",
1121211212
importpath = "golang.org/x/text",
11213-
sha256 = "194ba27fd7a743d7778e17788e43619499885adcf6a322da4095814a83e73a77",
11214-
strip_prefix = "golang.org/x/text@v0.8.0",
11213+
sha256 = "c1cbe684eaf01c053bf1232738697d1040327a5c8ad62dadfc950b585d1b4caa",
11214+
strip_prefix = "golang.org/x/text@v0.9.0",
1121511215
urls = [
11216-
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/text/org_golang_x_text-v0.8.0.zip",
11216+
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/text/org_golang_x_text-v0.9.0.zip",
1121711217
],
1121811218
)
1121911219
go_repository(

build/bazelutil/distdir_files.bzl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ DISTDIR_FILES = {
645645
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgservicefile/com_github_jackc_pgservicefile-v0.0.0-20221227161230-091c0ba34f0a.zip": "1f8bdf75b2a0d750e56c2a94b1d1b0b5be4b29d6df056aebd997162c29bfd8ab",
646646
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgtype/com_github_jackc_pgtype-v1.11.0.zip": "6a257b81c0bd386d6241219a14ebd41d574a02aeaeb3942670c06441b864dcad",
647647
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgx/v4/com_github_jackc_pgx_v4-v4.16.1.zip": "c3a169a68ff0e56f9f81eee4de4d2fd2a5ec7f4d6be159159325f4863c80bd10",
648-
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgx/v5/com_github_jackc_pgx_v5-v5.3.1.zip": "e2f4a98f6b8716a6854d0a910c12c3527d35ff78ec5f2d16bf49f85601071bf0",
648+
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgx/v5/com_github_jackc_pgx_v5-v5.4.2.zip": "198eebac7e875b51616090fe2e3694e6f27e335afcc3c47ae9991497ade7f52a",
649649
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/puddle/com_github_jackc_puddle-v1.2.1.zip": "40d73550686666eb1f6df02b65008b2a4c98cfed1254dc4866e6ebe95fbc5c95",
650650
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/puddle/v2/com_github_jackc_puddle_v2-v2.2.0.zip": "b99ea95df0c0298caf2be786c9eba511bfde2046eccfaa06e89b3e460ab406b0",
651651
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jaegertracing/jaeger/com_github_jaegertracing_jaeger-v1.18.1.zip": "256a95b2a52a66494aca6d354224bb450ff38ce3ea1890af46a7c8dc39203891",
@@ -1043,20 +1043,20 @@ DISTDIR_FILES = {
10431043
"https://storage.googleapis.com/cockroach-godeps/gomod/go.uber.org/zap/org_uber_go_zap-v1.19.0.zip": "6437824258873fed421b7975b8e4cafd1be80cdc15e553beaa887b499dd01420",
10441044
"https://storage.googleapis.com/cockroach-godeps/gomod/goji.io/io_goji-v2.0.2+incompatible.zip": "1ea69b28e356cb91381ce2339004fcf144ad1b268c9e3497c9ef304751ae0bb3",
10451045
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/arch/org_golang_x_arch-v0.0.0-20180920145803-b19384d3c130.zip": "9f67b677a3fefc503111d9aa7df8bacd2677411b0fcb982eb1654aa6d14cc3f8",
1046-
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/crypto/org_golang_x_crypto-v0.7.0.zip": "7754a7c66b7800ff6e47903c609aa07d0484501826ae047d2ee1a7d5e24fd012",
1046+
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/crypto/org_golang_x_crypto-v0.9.0.zip": "672ebc916740a040d5f5472b477e1d1898e06b0c6c0a5a820b65495bbb133e82",
10471047
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/exp/org_golang_x_exp-v0.0.0-20220827204233-334a2380cb91.zip": "d22b8623bef1ead959b1c6449512dfdbf9624e1ec6c4bc443e91eee170d4d7af",
10481048
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/exp/typeparams/org_golang_x_exp_typeparams-v0.0.0-20221208152030-732eee02a75a.zip": "9bd73f186851c6229484f486981f608d16e2b86acbbef6f4f7cc0480a508a4a4",
10491049
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/image/org_golang_x_image-v0.0.0-20210628002857-a66eb6448b8d.zip": "70cf423fad9be160a88fbf01bc1897efd888f915a6d7ba0dd41ca7085f75e06e",
10501050
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/lint/org_golang_x_lint-v0.0.0-20210508222113-6edffad5e616.zip": "0a4a5ebd2b1d79e7f480cbf5a54b45a257ae1ec9d11f01688efc5c35268d4603",
10511051
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/mobile/org_golang_x_mobile-v0.0.0-20190719004257-d2bd2a29d028.zip": "6b946c7da47acf3b6195336fd071bfc73d543cefab73f2d27528c5dc1dc829ec",
10521052
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/mod/org_golang_x_mod-v0.9.0.zip": "ad0b72a29c07f57d92612fdbc2da6891b3988dd98b31d2fdcbe8ddb9c8cc2d52",
1053-
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/net/org_golang_x_net-v0.8.0.zip": "c28918deb668906821c4e3b5da3643c262ff4ccc48b1b2e021ce188694af9dba",
1053+
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/net/org_golang_x_net-v0.10.0.zip": "f92f9b2655226a6d015af7a76279a11fb55678e410b851b158fc846546f80733",
10541054
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/oauth2/org_golang_x_oauth2-v0.5.0.zip": "4d9d9ce8d2f55b7d2ffb3697ed811a54606e881bb7fbbd84d3d9c42fc404ae3c",
10551055
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/perf/org_golang_x_perf-v0.0.0-20230113213139-801c7ef9e5c5.zip": "bc1b902e645fdd5d210b7db8f3280833af225b131dab5842d7a6d32a676f80f5",
10561056
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/sync/org_golang_x_sync-v0.1.0.zip": "f510bec6009e19882d19953e7273137d34df86c65949345d72f123a255c2ecd2",
1057-
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/sys/org_golang_x_sys-v0.6.0.zip": "8c15860e3850e3cea5a7186bb79b8cf98f513d9ac5498099d3bddfd49c6dfc3f",
1058-
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/term/org_golang_x_term-v0.6.0.zip": "3699084ad1104a6a0a027a0871e67987304d73a6abb2770c8f7e5ce3d7c1d314",
1059-
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/text/org_golang_x_text-v0.8.0.zip": "194ba27fd7a743d7778e17788e43619499885adcf6a322da4095814a83e73a77",
1057+
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/sys/org_golang_x_sys-v0.8.0.zip": "2588b3a645838390e341f1007f8679f5e1117b5d5ac9467ef832d148b2219a38",
1058+
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/term/org_golang_x_term-v0.8.0.zip": "1961dfea59ce531e2d6e6a3228781f5958b27c6d9d9c09932f5ffc54c4d9cdf9",
1059+
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/text/org_golang_x_text-v0.9.0.zip": "c1cbe684eaf01c053bf1232738697d1040327a5c8ad62dadfc950b585d1b4caa",
10601060
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/tools/org_golang_x_tools-v0.7.0.zip": "e43c6cc63a85dc30cd1794846ae96a44e81e458e88e436474c3bbbdbef80941a",
10611061
"https://storage.googleapis.com/cockroach-godeps/gomod/golang.org/x/xerrors/org_golang_x_xerrors-v0.0.0-20220907171357-04be3eba64a2.zip": "b9c481db33c4b682ba8ba348018ddbd2155bd227cc38ff9f6b4cb2b74bbc3c14",
10621062
"https://storage.googleapis.com/cockroach-godeps/gomod/gonum.org/v1/gonum/org_gonum_v1_gonum-v0.11.0.zip": "abdfee15ce7c9d2cd96b66468d3ae28d6054add4efbfc1b15fadfe3613f3d362",

go.mod

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ require (
1616
github.com/google/btree v1.0.1
1717
github.com/google/pprof v0.0.0-20210827144239-02619b876842
1818
github.com/google/uuid v1.3.0
19-
golang.org/x/crypto v0.7.0
19+
golang.org/x/crypto v0.9.0
2020
golang.org/x/exp v0.0.0-20220827204233-334a2380cb91
2121
golang.org/x/exp/typeparams v0.0.0-20221208152030-732eee02a75a // indirect
2222
golang.org/x/mod v0.9.0 // indirect
23-
golang.org/x/net v0.8.0
23+
golang.org/x/net v0.10.0
2424
golang.org/x/oauth2 v0.5.0
2525
golang.org/x/sync v0.1.0
26-
golang.org/x/sys v0.6.0
27-
golang.org/x/text v0.8.0
26+
golang.org/x/sys v0.8.0
27+
golang.org/x/text v0.9.0
2828
golang.org/x/time v0.1.0
2929
golang.org/x/tools v0.7.0
3030
google.golang.org/api v0.110.0
@@ -157,7 +157,7 @@ require (
157157
github.com/grpc-ecosystem/grpc-gateway v1.16.0
158158
github.com/guptarohit/asciigraph v0.5.5
159159
github.com/irfansharif/recorder v0.0.0-20211218081646-a21b46510fd6
160-
github.com/jackc/pgx/v5 v5.3.1
160+
github.com/jackc/pgx/v5 v5.4.2
161161
github.com/jaegertracing/jaeger v1.18.1
162162
github.com/jordan-wright/email v4.0.1-0.20210109023952-943e75fe5223+incompatible
163163
github.com/jordanlewis/gcassert v0.0.0-20230505190637-fed79d91cd5f
@@ -227,7 +227,7 @@ require (
227227
go.opentelemetry.io/otel/sdk v1.0.0-RC3
228228
go.opentelemetry.io/otel/trace v1.0.0-RC3
229229
golang.org/x/perf v0.0.0-20230113213139-801c7ef9e5c5
230-
golang.org/x/term v0.6.0
230+
golang.org/x/term v0.8.0
231231
gopkg.in/yaml.v2 v2.4.0
232232
gopkg.in/yaml.v3 v3.0.1
233233
honnef.co/go/tools v0.4.3

go.sum

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,8 +1404,8 @@ github.com/jackc/pgx/v4 v4.0.0-pre1.0.20190824185557-6972a5742186/go.mod h1:X+GQ
14041404
github.com/jackc/pgx/v4 v4.12.1-0.20210724153913-640aa07df17c/go.mod h1:1QD0+tgSXP7iUjYm9C1NxKhny7lq6ee99u/z+IHFcgs=
14051405
github.com/jackc/pgx/v4 v4.16.1 h1:JzTglcal01DrghUqt+PmzWsZx/Yh7SC/CTQmSBMTd0Y=
14061406
github.com/jackc/pgx/v4 v4.16.1/go.mod h1:SIhx0D5hoADaiXZVyv+3gSm3LCIIINTVO0PficsvWGQ=
1407-
github.com/jackc/pgx/v5 v5.3.1 h1:Fcr8QJ1ZeLi5zsPZqQeUZhNhxfkkKBOgJuYkJHoBOtU=
1408-
github.com/jackc/pgx/v5 v5.3.1/go.mod h1:t3JDKnCBlYIc0ewLF0Q7B8MXmoIaBOZj/ic7iHozM/8=
1407+
github.com/jackc/pgx/v5 v5.4.2 h1:u1gmGDwbdRUZiwisBm/Ky2M14uQyUP65bG8+20nnyrg=
1408+
github.com/jackc/pgx/v5 v5.4.2/go.mod h1:q6iHT8uDNXWiFNOlRqJzBTaSH3+2xCXkokxHZC5qWFY=
14091409
github.com/jackc/puddle v0.0.0-20190413234325-e4ced69a3a2b/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
14101410
github.com/jackc/puddle v0.0.0-20190608224051-11cab39313c9/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
14111411
github.com/jackc/puddle v1.1.3/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
@@ -2449,8 +2449,8 @@ golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5y
24492449
golang.org/x/crypto v0.0.0-20220210151621-f4118a5b28e2/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
24502450
golang.org/x/crypto v0.0.0-20220427172511-eb4f295cb31f/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
24512451
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
2452-
golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A=
2453-
golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU=
2452+
golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g=
2453+
golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0=
24542454
golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
24552455
golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
24562456
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
@@ -2585,8 +2585,8 @@ golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qx
25852585
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
25862586
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
25872587
golang.org/x/net v0.0.0-20220725212005-46097bf591d3/go.mod h1:AaygXjzTFtRAg2ttMY5RMuhpJ3cNnI0XpyFJD1iQRSM=
2588-
golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ=
2589-
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
2588+
golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M=
2589+
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
25902590
golang.org/x/oauth2 v0.0.0-20170207211851-4464e7848382/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
25912591
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
25922592
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
@@ -2766,15 +2766,15 @@ golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBc
27662766
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
27672767
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
27682768
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
2769-
golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
2770-
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
2769+
golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU=
2770+
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
27712771
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
27722772
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
27732773
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
27742774
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
27752775
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
2776-
golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
2777-
golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
2776+
golang.org/x/term v0.8.0 h1:n5xxQn2i3PC0yLAbjTpNT85q/Kgzcr2gIoX9OrJUols=
2777+
golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
27782778
golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
27792779
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
27802780
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
@@ -2786,8 +2786,8 @@ golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
27862786
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
27872787
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
27882788
golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
2789-
golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68=
2790-
golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
2789+
golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE=
2790+
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
27912791
golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
27922792
golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
27932793
golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=

pkg/cmd/internal/issues/issues.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ func HelpCommandAsLink(title, href string) func(r *Renderer) {
496496
func filterByPrefixTitleMatch(
497497
result *github.IssuesSearchResult, expectedTitle string,
498498
) []github.Issue {
499-
expectedTitleRegex := regexp.MustCompile(`^` + expectedTitle + `(\s+|$)`)
499+
expectedTitleRegex := regexp.MustCompile(`^` + regexp.QuoteMeta(expectedTitle) + `(\s+|$)`)
500500
var issues []github.Issue
501501
for _, issue := range result.Issues {
502502
if title := issue.Title; title != nil && expectedTitleRegex.MatchString(*title) {

pkg/kv/kvserver/allocator/allocatorimpl/allocator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2827,7 +2827,7 @@ func (a Allocator) PreferredLeaseholders(
28272827
if !ok {
28282828
continue
28292829
}
2830-
if constraint.ConjunctionsCheck(storeDesc, preference.Constraints) {
2830+
if constraint.CheckStoreConjunction(storeDesc, preference.Constraints) {
28312831
preferred = append(preferred, repl)
28322832
}
28332833
}

pkg/kv/kvserver/allocator/allocatorimpl/allocator_scorer.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,7 +2010,7 @@ func allocateConstraintsCheck(
20102010
}
20112011

20122012
for i, constraints := range analyzed.Constraints {
2013-
if constraintsOK := constraint.ConjunctionsCheck(
2013+
if constraintsOK := constraint.CheckStoreConjunction(
20142014
store, constraints.Constraints,
20152015
); constraintsOK {
20162016
valid = true
@@ -2050,9 +2050,7 @@ func replaceConstraintsCheck(
20502050
for i, constraints := range analyzed.Constraints {
20512051
matchingStores := analyzed.SatisfiedBy[i]
20522052
satisfiedByExistingStore := containsStore(matchingStores, existingStore.StoreID)
2053-
satisfiedByCandidateStore := constraint.ConjunctionsCheck(
2054-
store, constraints.Constraints,
2055-
)
2053+
satisfiedByCandidateStore := constraint.CheckStoreConjunction(store, constraints.Constraints)
20562054
if satisfiedByCandidateStore {
20572055
valid = true
20582056
}
@@ -2147,7 +2145,7 @@ func rebalanceFromConstraintsCheck(
21472145
// satisfied by existing replicas or that is only fully satisfied because of
21482146
// fromStoreID, then it's necessary.
21492147
for i, constraints := range analyzed.Constraints {
2150-
if constraintsOK := constraint.ConjunctionsCheck(
2148+
if constraintsOK := constraint.CheckStoreConjunction(
21512149
store, constraints.Constraints,
21522150
); constraintsOK {
21532151
valid = true

0 commit comments

Comments
 (0)