File tree Expand file tree Collapse file tree 11 files changed +28
-14
lines changed
Expand file tree Collapse file tree 11 files changed +28
-14
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ func (h *cbMembership) monitor() {
226226 h .rebalance (filteredInstances )
227227 } else {
228228 if errors .Is (err , gocbcore .ErrCasMismatch ) {
229- logger .Log .Warn ( "error while update instances: cas mismatch" )
229+ logger .Log .Debug ( "cannot update instances: cas mismatch" )
230230 h .monitor ()
231231 } else {
232232 logger .Log .Error ("error while update instances: %v" , err )
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ require (
3737 github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
3838 github.com/modern-go/reflect2 v1.0.2 // indirect
3939 github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
40- github.com/prometheus/client_golang v1.20.4 // indirect
40+ github.com/prometheus/client_golang v1.20.5 // indirect
4141 github.com/prometheus/client_model v0.6.1 // indirect
4242 github.com/prometheus/common v0.58.0 // indirect
4343 github.com/prometheus/procfs v0.15.1 // indirect
Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
113113github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
114114github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
115115github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 h1:o4JXh1EVt9k/+g42oCprj/FisM4qX9L3sZB3upGN2ZU =
116- github.com/prometheus/client_golang v1.20.4 h1:Tgh3Yr67PaOv/uTqloMsCEdeuFTatm5zIq5+qNN23vI =
117- github.com/prometheus/client_golang v1.20.4 /go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE =
116+ github.com/prometheus/client_golang v1.20.5 h1:cxppBPuYhUnsO6yo/aoRol4L7q7UFfdm+bR9r+8l63Y =
117+ github.com/prometheus/client_golang v1.20.5 /go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE =
118118github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E =
119119github.com/prometheus/client_model v0.6.1 /go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY =
120120github.com/prometheus/common v0.58.0 h1:N+N8vY4/23r6iYfD3UQZUoJPnUYAo7v6LG5XZxjZTXo =
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ require (
4545 github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4646 github.com/modern-go/reflect2 v1.0.2 // indirect
4747 github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
48- github.com/prometheus/client_golang v1.20.4 // indirect
48+ github.com/prometheus/client_golang v1.20.5 // indirect
4949 github.com/prometheus/client_model v0.6.1 // indirect
5050 github.com/prometheus/common v0.58.0 // indirect
5151 github.com/prometheus/procfs v0.15.1 // indirect
Original file line number Diff line number Diff line change @@ -148,8 +148,8 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
148148github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
149149github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
150150github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 h1:o4JXh1EVt9k/+g42oCprj/FisM4qX9L3sZB3upGN2ZU =
151- github.com/prometheus/client_golang v1.20.4 h1:Tgh3Yr67PaOv/uTqloMsCEdeuFTatm5zIq5+qNN23vI =
152- github.com/prometheus/client_golang v1.20.4 /go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE =
151+ github.com/prometheus/client_golang v1.20.5 h1:cxppBPuYhUnsO6yo/aoRol4L7q7UFfdm+bR9r+8l63Y =
152+ github.com/prometheus/client_golang v1.20.5 /go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE =
153153github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 /go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA =
154154github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E =
155155github.com/prometheus/client_model v0.6.1 /go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY =
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ require (
1717 github.com/google/uuid v1.6.0
1818 github.com/json-iterator/go v1.1.12
1919 github.com/mhmtszr/concurrent-swiss-map v1.0.8
20- github.com/prometheus/client_golang v1.20.4
20+ github.com/prometheus/client_golang v1.20.5
2121 github.com/sirupsen/logrus v1.9.3
2222 github.com/testcontainers/testcontainers-go v0.33.0
2323 github.com/valyala/fasthttp v1.56.0
Original file line number Diff line number Diff line change @@ -145,8 +145,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
145145github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
146146github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 h1:o4JXh1EVt9k/+g42oCprj/FisM4qX9L3sZB3upGN2ZU =
147147github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 /go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE =
148- github.com/prometheus/client_golang v1.20.4 h1:Tgh3Yr67PaOv/uTqloMsCEdeuFTatm5zIq5+qNN23vI =
149- github.com/prometheus/client_golang v1.20.4 /go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE =
148+ github.com/prometheus/client_golang v1.20.5 h1:cxppBPuYhUnsO6yo/aoRol4L7q7UFfdm+bR9r+8l63Y =
149+ github.com/prometheus/client_golang v1.20.5 /go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE =
150150github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E =
151151github.com/prometheus/client_model v0.6.1 /go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY =
152152github.com/prometheus/common v0.58.0 h1:N+N8vY4/23r6iYfD3UQZUoJPnUYAo7v6LG5XZxjZTXo =
Original file line number Diff line number Diff line change @@ -80,7 +80,17 @@ type stream struct {
8080func (s * stream ) setOffset (vbID uint16 , offset * models.Offset , dirty bool ) {
8181 if _ , ok := s .vbIds .Load (vbID ); ok {
8282 s .offsets .Store (vbID , offset )
83- s .dirtyOffsets .Store (vbID , dirty )
83+ if ! dirty {
84+ return
85+ }
86+
87+ s .dirtyOffsets .StoreIf (vbID , func (p bool , f bool ) (v bool , s bool ) {
88+ if ! f || (f && ! p ) {
89+ return true , true
90+ }
91+
92+ return p , false
93+ })
8494 } else {
8595 logger .Log .Warn ("vbID: %v not belong our vbId range" , vbID )
8696 }
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ require (
3737 github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
3838 github.com/modern-go/reflect2 v1.0.2 // indirect
3939 github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
40- github.com/prometheus/client_golang v1.20.4 // indirect
40+ github.com/prometheus/client_golang v1.20.5 // indirect
4141 github.com/prometheus/client_model v0.6.1 // indirect
4242 github.com/prometheus/common v0.58.0 // indirect
4343 github.com/prometheus/procfs v0.15.1 // indirect
Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
113113github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
114114github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
115115github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 h1:o4JXh1EVt9k/+g42oCprj/FisM4qX9L3sZB3upGN2ZU =
116- github.com/prometheus/client_golang v1.20.4 h1:Tgh3Yr67PaOv/uTqloMsCEdeuFTatm5zIq5+qNN23vI =
117- github.com/prometheus/client_golang v1.20.4 /go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE =
116+ github.com/prometheus/client_golang v1.20.5 h1:cxppBPuYhUnsO6yo/aoRol4L7q7UFfdm+bR9r+8l63Y =
117+ github.com/prometheus/client_golang v1.20.5 /go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE =
118118github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E =
119119github.com/prometheus/client_model v0.6.1 /go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY =
120120github.com/prometheus/common v0.58.0 h1:N+N8vY4/23r6iYfD3UQZUoJPnUYAo7v6LG5XZxjZTXo =
You can’t perform that action at this time.
0 commit comments