Giter Club home page Giter Club logo

Comments (4)

hczhu-db avatar hczhu-db commented on September 23, 2024 1

@hczhu-db What version of Thanos are you running? I think we used to see this issue. However, I think after several rounds of fixes around some race conditions when fetching chunks, I haven't seen this issue for a while.

We are running 0.34.1 with our own changes on top of it. Those changes are mainly for observability (like new metrics and logs) and Compactor skipping overlapping block files.

@jnyi

from thanos.

hczhu-db avatar hczhu-db commented on September 23, 2024

I encountered the same panic and found that the chunk pool returns a slice shorter than required.
image

panic: runtime error: slice bounds out of range [:2297] with capacity 2129

goroutine 4034779 [running]:
github.com/thanos-io/thanos/pkg/store.(*bucketChunkReader).loadChunks(0xc0914ad920, {0x35f4b28, 0xc091ff2a00}, {0xc093280000, 0x317, 0x317?}, {0xc0914b5968, 0x2, 0x2}, 0x29, ...)
        /thanos/thanos/pkg/store/bucket.go:3542 +0x1118
github.com/thanos-io/thanos/pkg/store.(*bucketChunkReader).load.func4()
        /thanos/thanos/pkg/store/bucket.go:3476 +0x11b
golang.org/x/sync/errgroup.(*Group).Go.func1()
        /go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 4034046
        /go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:72 +0x96

from thanos.

yeya24 avatar yeya24 commented on September 23, 2024

@hczhu-db What version of Thanos are you running?
I think we used to see this issue. However, I think after several rounds of fixes around some race conditions when fetching chunks, I haven't seen this issue for a while.

from thanos.

hczhu-db avatar hczhu-db commented on September 23, 2024

I also got the following error interleaving with slice bounds out of range error. More weirdly, the same range query can work or trigger either error if it's run multiple times.

MinTime: 1708874139848 MaxTime: 1711214139848: rpc error: code = Unknown desc = receive series from 01HSED6EP817R1VPXQCS73ZGDA: load chunks: populate chunk: allocate chunk bytes: pool exhausted

from thanos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.