Skip to content

Fix WAL throttle threshold fallback on hot reload - #18514

Open
CRZbulabula wants to merge 1 commit into
apache:rc/2.0.11from
CRZbulabula:codex/rc-2.0.11-fix-wal-throttle
Open

Fix WAL throttle threshold fallback on hot reload#18514
CRZbulabula wants to merge 1 commit into
apache:rc/2.0.11from
CRZbulabula:codex/rc-2.0.11-fix-wal-throttle

Conversation

@CRZbulabula

Copy link
Copy Markdown
Contributor

Description

Cherry-pick the upstream fix from merge commit 23201f2 (TimechoDB source: 519946c1a0).

When wal_throttle_threshold_in_byte is hot-reloaded from a positive value to a negative value, resolve the negative value to the configured default before updating IoTConsensus. Also expose the effective threshold through SHOW CONFIGURATION.

The cherry-pick conflicted in PropertiesTest because rc/2.0.11 has a different test history. The conflict was resolved by retaining the branch existing tests and adding the WAL regression test, plus the required ConfigurationFileUtils import.

Tests

  • mvn spotless:apply -pl iotdb-core/datanode
  • mvn test -pl iotdb-core/datanode -am -Dtest=PropertiesTest -DfailIfNoTests=false -Dsurefire.failIfNoSpecifiedTests=false
    • Tests run: 4, Failures: 0, Errors: 0, Skipped: 0

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