Skip to content

Decompress query for logline#2682

Open
tylerkaraszewski wants to merge 1 commit into
mainfrom
tyler-decompress-rollback-logline
Open

Decompress query for logline#2682
tylerkaraszewski wants to merge 1 commit into
mainfrom
tyler-decompress-rollback-logline

Conversation

@tylerkaraszewski

Copy link
Copy Markdown
Contributor

Details

Fixed Issues

Fixes GH_LINK

Tests


Internal Testing Reminder: when changing bedrock, please compile auth against your new changes

@tylerkaraszewski tylerkaraszewski self-assigned this Jul 16, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9f8e4457d8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sqlitecluster/SQLite.cpp
} else {
if (_uncommittedQuery.size()) {
SINFO("Rolling back transaction: " << _uncommittedQuery.substr(0, 100));
SINFO("Rolling back transaction: " << BedrockPlugin_Compression::decompress(_uncommittedQuery).substr(0, 100));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Bound work when logging the rollback prefix

For transactions containing large expanded SQL or many statements, this computes an entire copy of an uncompressed _uncommittedQuery, or fully decompresses a prepared query, before discarding everything after 100 bytes. A rollback after prepare() performs this allocation while still holding commitLock, so memory pressure can throw before the SQLite rollback and mutex release, while ordinary large rollbacks unnecessarily block other commits. Preserve a bounded plaintext prefix before compression or use a decompression path that stops after the log limit.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Preserve a bounded plaintext prefix before compression

Can we do this?

@tylerkaraszewski
tylerkaraszewski requested a review from flodnv July 16, 2026 16:30
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.

2 participants