Comments (3)
When using select
we should add a default condition or timeout in the part of the code below
select { case <-ctx.Done(): return ctx.Err() case metaChan <- id: }
from thanos.
@palamvmw In general that would help getting unstuck at the very least.
I am trying to wrap my head around what happened in the first place, and I believe this is caused by a large number of errors "clogging up" the work queue. Essentially any Exists call that throws an Error takes out one of the worker threads with it, and there is no check for all of them going away, so when we reach the 64th Exists Error all things just stop. No more workers picking up items, and no more items pushed to the channel. Since we are not on a timed Context, we also never get ctx.Done().
I would think that if we error out a worker, we should start a new one in its place. (Or just not stop it in the first place, and send errors to a different channel to be collected.)
I am also not quite sure that this line is correct:
https://github.com/thanos-io/thanos/blame/086a698b2195adb6f3463ebbd032e780f39d2050/pkg/block/fetcher.go#L252
An Exists call can be failing for a bunch of reasons some of which could be retried successfully.
We have had S3 503 Slow Down responses previously, so it is not at all unlikely that the reason we clogged the 64 workers is because all of a sudden all of them started getting 503 Slow Downs from AWS.
from thanos.
I think I am facing the same issue but on Azure Object store so I tend to agree with the comment on your draft PR.
we are not using any minio lib for azure :/
from thanos.
Related Issues (20)
- compactor: Fails cleaning blocks marked for deletion with Access Denied (solved)
- Caching Bucket File Unknown Flag HOT 2
- compactor: add series: symbol table size exceeds X bytes: X HOT 3
- Enhance Thanos Ruler UI with Deep Linking Capabilities for Specific Alerts
- Thanos Store Does Not Reflect S3 Storage Unavailability in Health Checks HOT 2
- fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?) HOT 1
- Compactor Warning: block has no labels left, creating one
- Problem with receiver and store HOT 1
- Compactor: Skip compaction block index verification if metadata file hash enabled
- Compactor: Context canceled HOT 2
- Ruler: Evaluations stop without errors or logs
- Receiver: Introduce max bucket limit for native histograms
- Enable OpenSSF Scorecard to enhance security practices across the project
- Compactor: UI shows `[object Object]`
- Check correct error when opening rule files in tools
- thanos-sidecar uploads OOO block before Prometheus compacts it, upsetting thanos-compact HOT 1
- Query: possible goroutine leak seen between queriers on v0.35.1 HOT 2
- Will already downsampled blocks be merged?When downsampled blocks are merged into new blocks, do the new blocks still need to be downsampled?
- Thanos doesn't show metrics older than ~38 hours after upgrade from 0.15 to 0.35.1 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thanos.