Skip to content

Avoid re-entrant transactions - #561

Merged
mhutchinson merged 3 commits into
transparency-dev:mainfrom
mhutchinson:performance/sqlite
Jun 17, 2026
Merged

Avoid re-entrant transactions#561
mhutchinson merged 3 commits into
transparency-dev:mainfrom
mhutchinson:performance/sqlite

Conversation

@mhutchinson

Copy link
Copy Markdown
Contributor

The previous implementation would read the log verifier key in the middle of an Update transaction. This could cause a new DB connection to be needed, which would deadlock if none were available.

Considering that the storage layer is in the TCB, skipping verification of this signature is a safe and pragmatic choice. In addition to resolving this minor performance issue, it makes it easier to support log key rotations in the future.

The previous implementation would read the log verifier key in the middle of an Update transaction. This could cause a new DB connection to be needed, which would deadlock if none were available.

Considering that the storage layer is in the TCB, skipping verification of this signature is a safe and pragmatic choice. In addition to resolving this minor performance issue, it makes it easier to support log key rotations in the future.
@codecov-commenter

codecov-commenter commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 57.50000% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 24.98%. Comparing base (4d16f34) to head (85ebac4).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
witness/witness.go 57.50% 9 Missing and 8 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #561      +/-   ##
==========================================
+ Coverage   24.83%   24.98%   +0.14%     
==========================================
  Files          27       27              
  Lines        2009     2025      +16     
==========================================
+ Hits          499      506       +7     
- Misses       1404     1409       +5     
- Partials      106      110       +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mhutchinson
mhutchinson merged commit d94ec97 into transparency-dev:main Jun 17, 2026
13 checks passed
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.

3 participants