Skip to content

[Fix] Initialize procedure worker list eagerly - #18368

Open
Caideyipi wants to merge 1 commit into
apache:masterfrom
Caideyipi:fix/procedure-worker-list-initialization
Open

[Fix] Initialize procedure worker list eagerly#18368
Caideyipi wants to merge 1 commit into
apache:masterfrom
Caideyipi:fix/procedure-worker-list-initialization

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Description

Follow-up to #18338.

  • Initialize workerThreads once as a final CopyOnWriteArrayList instead of publishing a mutable collection through a volatile reference.
  • Clear and repopulate the list during initialization.
  • Keep procedure metrics safe before and during ConfigNode leader initialization.

Tests

  • mvn -pl iotdb-core/confignode -Dtest=TestProcedureExecutor -Ddevelocity.off=true test (9 tests)
  • Checkstyle and Spotless checks included in the Maven run
  • git diff --check

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