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

   ## Description
   
   SonarCloud's quality gate currently fails for every pull request with 
`new_reliability_rating` = 3 (C, the limit is 1). The rating comes from two 
bugs in recently merged code, not from the pull requests themselves (e.g. 
#19104, #19107, #19108):
   
   | File | Rule | Fix |
   |------|------|-----|
   | `PipeTaskInfo` (#19056) | `pipeMetaExceptionPersistencePending \|= 
hasException` on a `volatile boolean` is not atomic | `AtomicBoolean`, set only 
when there is an exception |
   | `PipeResourceMetrics` (#19106) | a `Map` published through a `volatile` 
field is not thread-safe | `AtomicReference` holding an unmodifiable map; 
`bindTo`/`unbindFrom` replace it as a whole |
   
   Behavior is unchanged: the flag is still set on a recorded exception and 
cleared after persistence, and the reject counters are still looked up by 
reason with a no-op default.
   
   ## Tests
   
   `PipeResourceMetricsTest`, `PipeMemoryManagerTest`, 
`PipeMemoryManagerResizeTest`, `PipeTaskInfoAutoRestartTest`, 
`PipeTaskInfoConsensusPipeTest`, `PipeMetaSyncProcedureTest`, 
`AbstractOperatePipeProcedureV2Test`: 67 tests pass; `spotless:check` passes.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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