Skip to content

Fix stale deletion resource manager reuse#18057

Merged
jt2594838 merged 1 commit into
apache:masterfrom
Caideyipi:fix-deletion-recover-master
Jun 30, 2026
Merged

Fix stale deletion resource manager reuse#18057
jt2594838 merged 1 commit into
apache:masterfrom
Caideyipi:fix-deletion-recover-master

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Description

DeletionResourceManager instances are cached by data region id. Closing a manager only closed its buffer and cleared in-memory resources, but left the closed instance in the singleton map. Later tests or callers using the same region id could retrieve the closed manager, fail to persist new deletions, and recover zero deletion resources.

This removes the closed manager from the singleton map and adds a regression test that verifies getInstance returns a fresh manager after close.

Tests

  • mvn -pl iotdb-core/datanode '-Dtest=DeletionResourceTest#testGetInstanceAfterCloseReturnsFreshManager,DeletionRecoverTest' -DfailIfNoTests=false '-Dcheckstyle.skip=true' '-Dspotless.skip=true' test
  • mvn -pl iotdb-core/datanode '-Dcheckstyle.skip=true' spotless:apply

@jt2594838 jt2594838 merged commit b4c4e54 into apache:master Jun 30, 2026
39 of 41 checks passed
@jt2594838 jt2594838 deleted the fix-deletion-recover-master branch June 30, 2026 03:18
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