Skip to content

Conversation

@Elbehery
Copy link
Member

@Elbehery Elbehery commented Jan 17, 2026

This PR adds TestDB_Open_InitialMmapSize_Windows_NoReader to isolate the root cause of write commit delays on Windows with large InitialMmapSize values.

Steps

  1. Opening a DB with InitialMmapSize = 1GB on all platforms
  2. Creating a write transaction
  3. Writing 134MB of data
  4. Committing the write with a 5-second timeout
  5. Measuring and logging the actual commit time

cc @ahrtr @ivanvc

TestDB_Open_InitialMmapSize_Windows_NoReader verifies whether large InitialMmapSize
values (1GB) cause write commit delays even without concurrent read transactions.
This isolates whether the delays observed in TestDB_Open_InitialMmapSize are caused
by the large InitialMmapSize itself or by reader-writer interaction.

Signed-off-by: Mustafa Elbehery <[email protected]>
@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Elbehery
Once this PR has been reviewed and has the lgtm label, please assign ahrtr for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

// InitialMmapSize values when there is NO concurrent read transaction.
// This test helps isolate whether delays in TestDB_Open_InitialMmapSize are caused
// by the large InitialMmapSize itself or by reader-writer interaction.
func TestDB_Open_InitialMmapSize_Windows_NoReader(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

This test is very similar to TestDB_Open_InitialMmapSize, please just update that case to include table driven sub tests

Copy link
Member

Choose a reason for hiding this comment

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

Let's leave it as it's for now, this case is already good enough to verify the thought #1136 (comment).

Once it's verified, we can merge it into TestDB_Open_InitialMmapSize.

Copy link
Member Author

Choose a reason for hiding this comment

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

lgtm 👍🏽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants