Caideyipi opened a new pull request, #18036:
URL: https://github.com/apache/iotdb/pull/18036

   ## Description
   
   Internal procedures are scheduled through the timeout executor. Adding the 
same internal procedure more than once could reset its state to 
`WAITING_TIMEOUT` even after it had already completed, allowing it to be 
executed again.
   
   This patch lets `TimeoutExecutorThread` track registered internal procedures 
and ignore duplicate registrations until the procedure is removed. Removal also 
unregisters the procedure and clears any queued delay task so the same instance 
can be registered again after an explicit remove.
   
   ## Tests
   
   - `MAVEN_OPTS=-Xmx512m mvn test -pl iotdb-core/confignode 
-Dtest=TestProcedureExecutor#testInternalProcedureCanBeDeduplicatedAndRemoved 
-DfailIfNoTests=false`
   - `MAVEN_OPTS=-Xmx512m mvn test -pl iotdb-core/confignode 
-Dtest=TestProcedureExecutor -DfailIfNoTests=false`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to