refactor(qwp): rename sf_max_bytes to sf_max_segment_bytes#70
Open
mtopolnik wants to merge 2 commits into
Open
refactor(qwp): rename sf_max_bytes to sf_max_segment_bytes#70mtopolnik wants to merge 2 commits into
mtopolnik wants to merge 2 commits into
Conversation
The connect-string key caps a single SF segment, and the new name says so; it also pairs cleanly with sf_max_total_bytes. The builder method follows: storeAndForwardMaxBytes() is now storeAndForwardMaxSegmentBytes(). Internal identifiers and error messages rename in step so the old spelling is gone entirely. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Jul 20, 2026
Open
Open
Contributor
Author
Review: PR #70Verdict: Approve. This is a clean, complete, behavior-preserving rename. No Critical or Moderate findings. What I verified
Minor
Summary
|
Merge main (PR #67, keep SF slot locked until manager worker quiesces, plus its periodic-durability work) into the branch that renames sf_max_bytes to sf_max_segment_bytes. The merge base is one commit behind on each side, so every conflict is this branch's rename landing on top of #67's edits; each was resolved by keeping main's semantic change and re-applying the rename. Conflict resolutions: - Sender.java (3 spots): kept main's reworded comment and its new actualSfSyncIntervalNanos argument threaded into the CursorSendEngine constructor and startOrphanDrainers, with the identifiers renamed to actualSfMaxSegmentBytes / sfMaxSegmentBytes. - SegmentRing.java: took main's version wholesale. The only line this branch changed here was a comment that #67's recover() rewrite deleted, so main's file already reflects the intended state. - SfFromConfigTest.java: kept main's four new testSfSyncInterval* methods and renamed the trailing method to testSfMaxSegmentBytesAcceptsSizeSuffixes. - SegmentRingTest.java: kept main's Javadoc wording (it matches the deterministic comparison-count assertion) and applied the rename. Verified no conflict markers or stale sf_max_bytes spellings remain, and that the merged call sites resolve against the five-argument CursorSendEngine constructor and startOrphanDrainers overload. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
bluestreak01
approved these changes
Jul 23, 2026
Contributor
Author
[PR Coverage check]😍 pass : 10 / 14 (71.43%) file detail
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Renames the store-and-forward connect-string key
sf_max_bytestosf_max_segment_bytes: the key caps a single SF segment, and the new name says so; it also pairs cleanly withsf_max_total_bytes. The builder method follows:storeAndForwardMaxBytes()is nowstoreAndForwardMaxSegmentBytes(). Internal identifiers, error messages, and test assertions rename in step, sogit grep -iE 'sf[_-]?max[_-]?bytes|storeandforwardmaxbytes'returns zero.The key shipped only in beta-state releases (1.2.2–1.3.4, not on Maven Central), so this is a hard rename — no alias, no deprecation path.
Part of the cross-repo rename of this key (server, c/rust, go, .NET, python, enterprise, docs land in the same window). This repo sets the naming precedent; the QuestDB server PR bumps its submodule to this branch's commit and should merge right after this one.
Full core test suite is green locally, including the five affected test classes.
Note
The red "Build, test & javadoc (JDK 8)" check is the known
MmapSegmentRecoveryFaultTestInternalErrorflake tracked by #69 — pre-existing #64 code, where C2-inlined async unsafe-fault delivery escapes the converting catch. It reproduced twice on this PR with a different failing test each time, and this diff only touches that code path in one comment line, so it is unrelated to the rename. The fix is #71, which reads the recovery scan viapreadinstead of the mapping so there is no fault to catch at all — merge #71 first, then rebase/merge this PR to clear the check for good.🤖 Generated with Claude Code