Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loki: handle faults when opening boltdb files #2988

Merged
merged 4 commits into from
Nov 25, 2020
Merged

Conversation

slim-bean
Copy link
Collaborator

A recent PR handled panics, however we also get faults when opening boltdb files.

This PR launches the opening of the file in a new goroutine so we can enable debug.SetPanicOnFault for just this operation and catch these faults to recover from them.

@codecov-io
Copy link

Codecov Report

Merging #2988 (1e756c2) into master (ec725db) will decrease coverage by 0.15%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2988      +/-   ##
==========================================
- Coverage   62.07%   61.92%   -0.16%     
==========================================
  Files         182      182              
  Lines       14881    14890       +9     
==========================================
- Hits         9237     9220      -17     
- Misses       4796     4824      +28     
+ Partials      848      846       -2     
Impacted Files Coverage Δ
pkg/storage/stores/shipper/util/util.go 34.37% <0.00%> (-5.63%) ⬇️
pkg/promtail/positions/positions.go 46.80% <0.00%> (-11.71%) ⬇️
pkg/canary/comparator/comparator.go 76.36% <0.00%> (-1.82%) ⬇️
pkg/logql/evaluator.go 91.24% <0.00%> (-0.41%) ⬇️

Co-authored-by: Cyril Tovena <cyril.tovena@gmail.com>
@slim-bean slim-bean merged commit 9ba5753 into master Nov 25, 2020
@slim-bean slim-bean deleted the boltdb-fault branch November 25, 2020 13:32
cyriltovena pushed a commit to cyriltovena/loki that referenced this pull request Jun 11, 2021
)

* Support azure storage of azurechina,azuregerman,azureusgov

Signed-off-by: Binbin Zou <binbin.zou@BinbinZous-MacBook-Pro.local>

* change pr number

Signed-off-by: Binbin Zou <binbin.zou@BinbinZous-MacBook-Pro.local>

* Optimize the code

Signed-off-by: Binbin Zou <binbin.zou@BinbinZous-MacBook-Pro.local>

Co-authored-by: Binbin Zou <binbin.zou@BinbinZous-MacBook-Pro.local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants