Skip to content

Fixed write rejection when wal size exceeds threshold#10993

Merged
xingtanzjr merged 1 commit intoapache:masterfrom
caozj1011:fix_wal_throttle
Aug 31, 2023
Merged

Fixed write rejection when wal size exceeds threshold#10993
xingtanzjr merged 1 commit intoapache:masterfrom
caozj1011:fix_wal_throttle

Conversation

@caozj1011
Copy link
Contributor

When the wal file disk size exceeds 50G x 0.8, the flush or snapshot logic will be triggered. However, when the active memtable is large enough, the snapshot or flush speed will always be lower than the new generation speed, so the write is always refused. The fix determines that if the threshold is exceeded, the snapshot or flush operation continues until the disk size is below the threshold. In addition, also changed the judgment conditions, the return from trySnapshotOrFlushMemTable return after failure to success

@xingtanzjr xingtanzjr merged commit 155c181 into apache:master Aug 31, 2023
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