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

cache service: Do not perform re-indexing within a transaction #3566

Merged
merged 1 commit into from
Nov 20, 2020

Conversation

Martchus
Copy link
Contributor

* Otherwise the re-indexing seems not visible and we run into the die.
* I've tested this with a broken SQLite file from o3 worker openqaworker4
  and only with this change 'Unable to fix errors… Purging cache directory…'
  is prevented and instead 'Database integrity check passed' shown.
* Note that unlinking the SQLite file (log message 'Purging cache
  directory…') is actually problematic:
  https://www.sqlite.org/howtocorrupt.html#_unlinking_or_renaming_a_database_file_while_in_use
* See https://progress.opensuse.org/issues/67000
@codecov
Copy link

codecov bot commented Nov 20, 2020

Codecov Report

Merging #3566 (7cbddb2) into master (9ece32f) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3566      +/-   ##
==========================================
- Coverage   95.69%   95.69%   -0.01%     
==========================================
  Files         366      366              
  Lines       31882    31881       -1     
==========================================
- Hits        30509    30507       -2     
- Misses       1373     1374       +1     
Impacted Files Coverage Δ
lib/OpenQA/CacheService/Model/Cache.pm 95.18% <100.00%> (-0.03%) ⬇️
t/lib/OpenQA/Test/Utils.pm 68.94% <0.00%> (-0.29%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9ece32f...7cbddb2. Read the comment docs.

@Martchus Martchus merged commit 66acd13 into os-autoinst:master Nov 20, 2020
@Martchus Martchus deleted the cache-service branch November 20, 2020 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants