Skip to content

v1 backport pr 1798 v1#1834

Merged
badrishc merged 2 commits into
release/v1from
copilot/release-v1-backport-pr-1798-v1
May 28, 2026
Merged

v1 backport pr 1798 v1#1834
badrishc merged 2 commits into
release/v1from
copilot/release-v1-backport-pr-1798-v1

Conversation

@badrishc

@badrishc badrishc commented May 28, 2026

Copy link
Copy Markdown
Collaborator

Backport of #1798

Copilot AI and others added 2 commits May 28, 2026 15:55
* Initial plan

* Add AofSegmentSize option and apply it to TsavoriteLogSettings

Agent-Logs-Url: https://github.com/microsoft/garnet/sessions/cc0abf6b-ee36-45e2-8578-3c89663bdc1b

Co-authored-by: badrishc <[email protected]>

* Validate AOF sizes before allocating devices to avoid handle leak

Agent-Logs-Url: https://github.com/microsoft/garnet/sessions/172f9b38-65ea-4ef5-acee-e348757c9259

Co-authored-by: badrishc <[email protected]>

* Dispose LogCommitManager + use try/finally in AOF segment-size test

Agent-Logs-Url: https://github.com/microsoft/garnet/sessions/ffdda9db-bb9a-4574-a510-c52b3647caf3

Co-authored-by: badrishc <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: badrishc <[email protected]>
Co-authored-by: Badrish Chandramouli <[email protected]>
(cherry picked from commit 4cc403f)
Copilot AI review requested due to automatic review settings May 28, 2026 17:06

Copilot AI left a comment

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.

Pull request overview

Backport of PR #1798 to ensure AOF truncation honors the configured Tsavorite log segment size by introducing and plumbing a new AofSegmentSize configuration option through to TsavoriteLogSettings.SegmentSizeBits.

Changes:

  • Add AofSegmentSize config option (CLI + defaults) and flow it into TsavoriteLogSettings.SegmentSizeBits.
  • Validate AOF page/memory/segment size relationships before allocating AOF devices/commit managers.
  • Update docs and add a config test to cover default/override/validation behavior.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
website/docs/getting-started/configuration.md Documents the new --aof-segment-size option in the configuration table.
Version.props Bumps VersionPrefix to 1.1.10.
test/Garnet.test/GarnetServerConfigTests.cs Adds coverage to ensure AofSegmentSize propagates to Tsavorite settings and validates page > segment.
libs/server/Servers/GarnetServerOptions.cs Introduces AofSegmentSize, plumbs segment size bits into AOF log settings, and adds upfront validation.
libs/host/defaults.conf Adds default "AofSegmentSize": "1g" to ensure a stable default.
libs/host/Configuration/Options.cs Adds CLI option wiring for --aof-segment-size and maps it into GarnetServerOptions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread libs/server/Servers/GarnetServerOptions.cs
@badrishc badrishc merged commit 3986e6e into release/v1 May 28, 2026
47 of 50 checks passed
@badrishc badrishc deleted the copilot/release-v1-backport-pr-1798-v1 branch May 28, 2026 21:11
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.

4 participants