Skip to content

Commit 78a9e35

Browse files
authored
Upgrade thanos version to fix store gateway buf reuse issue (#6346)
* upgrade thanos version to fix store gateway buf reuse issue Signed-off-by: Ben Ye <[email protected]> * change to always flush old when resolving DNS records Signed-off-by: Ben Ye <[email protected]> --------- Signed-off-by: Ben Ye <[email protected]>
1 parent 098a22a commit 78a9e35

File tree

21 files changed

+132
-66
lines changed

21 files changed

+132
-66
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ require (
5353
github.com/stretchr/testify v1.9.0
5454
github.com/thanos-io/objstore v0.0.0-20241028150459-cfdd0e50390d
5555
github.com/thanos-io/promql-engine v0.0.0-20240921092401-37747eddbd31
56-
github.com/thanos-io/thanos v0.35.2-0.20241029125830-62038110b1bc
56+
github.com/thanos-io/thanos v0.35.2-0.20241118113652-f998fc59c171
5757
github.com/uber/jaeger-client-go v2.30.0+incompatible
5858
github.com/weaveworks/common v0.0.0-20230728070032-dd9e68f319d5
5959
go.etcd.io/etcd/api/v3 v3.5.17

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,8 +1687,8 @@ github.com/thanos-io/objstore v0.0.0-20241028150459-cfdd0e50390d h1:k+SLTP1mjNqX
16871687
github.com/thanos-io/objstore v0.0.0-20241028150459-cfdd0e50390d/go.mod h1:/ZMUxFcp/nT6oYV5WslH9k07NU/+86+aibgZRmMMr/4=
16881688
github.com/thanos-io/promql-engine v0.0.0-20240921092401-37747eddbd31 h1:xPaP58g+3EPohdw4cv+6jv5+LcX6LynhHvQcYwTAMxQ=
16891689
github.com/thanos-io/promql-engine v0.0.0-20240921092401-37747eddbd31/go.mod h1:wx0JlRZtsB2S10JYUgeg5GqLfMxw31SzArP+28yyE00=
1690-
github.com/thanos-io/thanos v0.35.2-0.20241029125830-62038110b1bc h1:AoIDFFb3xjED+mmf5g6bnULDgNJWeXtKyjAQ1CKtqfk=
1691-
github.com/thanos-io/thanos v0.35.2-0.20241029125830-62038110b1bc/go.mod h1:6Q6xfe4mUYCYbrixod2dNZqKCK4J9pGRKqF29/cUr/A=
1690+
github.com/thanos-io/thanos v0.35.2-0.20241118113652-f998fc59c171 h1:khQQmo9VMMphKm10NS22iI8bAIf4DNRFvLoP4IR7kK4=
1691+
github.com/thanos-io/thanos v0.35.2-0.20241118113652-f998fc59c171/go.mod h1:v2AUVRd44iuv/PY0iwzKzgosLusUg7/dnnw5KEe1Has=
16921692
github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM=
16931693
github.com/uber/jaeger-client-go v2.28.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk=
16941694
github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o=

pkg/chunk/cache/memcached_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ func (c *memcachedClient) updateMemcacheServers() error {
243243
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
244244
defer cancel()
245245

246-
if err := c.provider.Resolve(ctx, c.addresses); err != nil {
246+
if err := c.provider.Resolve(ctx, c.addresses, true); err != nil {
247247
return err
248248
}
249249
servers = c.provider.Addresses()

pkg/compactor/compactor.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,7 @@ func (c *Compactor) compactUser(ctx context.Context, userID string) error {
918918
fetcher,
919919
deduplicateBlocksFilter,
920920
ignoreDeletionMarkFilter,
921+
c.compactorCfg.CompactionInterval,
921922
)
922923
if err != nil {
923924
return errors.Wrap(err, "failed to create syncer")

pkg/querier/blocks_store_balanced_set.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (s *blocksStoreBalancedSet) starting(ctx context.Context) error {
5454
}
5555

5656
func (s *blocksStoreBalancedSet) resolve(ctx context.Context) error {
57-
if err := s.dnsProvider.Resolve(ctx, s.serviceAddresses); err != nil {
57+
if err := s.dnsProvider.Resolve(ctx, s.serviceAddresses, true); err != nil {
5858
level.Error(s.logger).Log("msg", "failed to resolve store-gateway addresses", "err", err, "addresses", s.serviceAddresses)
5959
}
6060
return nil

pkg/ring/bench/ring_memberlist_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type dnsProviderMock struct {
2121
resolved []string
2222
}
2323

24-
func (p *dnsProviderMock) Resolve(ctx context.Context, addrs []string) error {
24+
func (p *dnsProviderMock) Resolve(ctx context.Context, addrs []string, flushOld bool) error {
2525
p.resolved = addrs
2626
return nil
2727
}

pkg/ring/kv/memberlist/dnsprovider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
type DNSProvider interface {
99
// Resolve stores a list of provided addresses or their DNS records if requested.
1010
// Implementations may have specific ways of interpreting addresses.
11-
Resolve(ctx context.Context, addrs []string) error
11+
Resolve(ctx context.Context, addrs []string, flushOld bool) error
1212

1313
// Addresses returns the latest addresses present in the DNSProvider.
1414
Addresses() []string

pkg/ring/kv/memberlist/memberlist_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ func (m *KV) discoverMembers(ctx context.Context, members []string) []string {
596596
}
597597
}
598598

599-
err := m.provider.Resolve(ctx, resolve)
599+
err := m.provider.Resolve(ctx, resolve, true)
600600
if err != nil {
601601
level.Error(m.logger).Log("msg", "failed to resolve members", "addrs", strings.Join(resolve, ","))
602602
}

pkg/ring/kv/memberlist/memberlist_client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ type dnsProviderMock struct {
13501350
resolved []string
13511351
}
13521352

1353-
func (p *dnsProviderMock) Resolve(ctx context.Context, addrs []string) error {
1353+
func (p *dnsProviderMock) Resolve(ctx context.Context, addrs []string, flushOld bool) error {
13541354
p.resolved = addrs
13551355
return nil
13561356
}

vendor/github.com/thanos-io/thanos/pkg/cache/groupcache.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)