Skip to content

Restore size-based remote translog flushes - #2

Closed
shourya035 wants to merge 1 commit into
remote-translog-byte-trackerfrom
remote-translog-byte-tracking-flow
Closed

Restore size-based remote translog flushes#2
shourya035 wants to merge 1 commit into
remote-translog-byte-trackerfrom
remote-translog-byte-tracking-flow

Conversation

@shourya035

@shourya035 shourya035 commented Aug 21, 2026

Copy link
Copy Markdown
Owner

Description

Wires byte-based remote-translog flush accounting into the Lucene-based InternalEngine.

  • Adds the dynamic, node-scoped cluster.remote_store.translog.track_bytes_since_last_commit.enabled setting.
  • Defaults the setting to false for an opt-in rollout.
  • Preserves the original writer.commit() path and does not mutate the tracker while the setting is disabled.
  • Prevents non-Lucene engines from activating the byte-tracking flow.
  • Counts bytes only after successful remote-translog appends.
  • Clears only the bytes captured by a successful index commit.
  • Keeps cluster.remote_store.translog.max_readers as an independent flush trigger.

Related issue

Tracks opensearch-project#22802.

Stack

  1. Track translog bytes across commits聽#1 Byte tracking abstraction
  2. Restore size-based remote translog flushes聽#2 Remote translog flow and opt-in setting (this PR)
  3. Verify remote translog size-based flushing聽#3 Remote-store integration coverage

Depends on #1.

Testing

  • ./gradlew :server:test --tests "org.opensearch.index.translog.InternalTranslogManagerTests" --tests "org.opensearch.indices.RemoteStoreSettingsDynamicUpdateTests"
  • ./gradlew :server:precommit

Checklist

  • Functionality includes unit tests.
  • Commits are signed off.

Track remote translog bytes independently of retained generations.

Add a dynamic, disabled-by-default cluster setting for opt-in rollout.

Limit tracking to Lucene-based engines and bypass the new machinery
while disabled.

Reset tracking only after successful index commits.

Signed-off-by: Shourya Dutta Biswas <114977491+shourya035@users.noreply.github.com>
@shourya035 shourya035 closed this Aug 21, 2026
@shourya035
shourya035 deleted the remote-translog-byte-tracking-flow branch August 21, 2026 10:46
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.

1 participant