This is an automated email from the ASF dual-hosted git repository.

rong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 37c58c82840 Pipe: avoid logging warn when clearing event ref after 
releasing the event & minor improve for javadoc (#13371)
37c58c82840 is described below

commit 37c58c8284054364f1e9a2740f8f3c310b8bff27
Author: V_Galaxy <[email protected]>
AuthorDate: Mon Sep 2 18:48:10 2024 +0800

    Pipe: avoid logging warn when clearing event ref after releasing the event 
& minor improve for javadoc (#13371)
---
 .../org/apache/iotdb/commons/pipe/event/EnrichedEvent.java     | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git 
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/event/EnrichedEvent.java
 
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/event/EnrichedEvent.java
index 57a2ee6a6eb..2dc88493c21 100644
--- 
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/event/EnrichedEvent.java
+++ 
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/event/EnrichedEvent.java
@@ -103,8 +103,7 @@ public abstract class EnrichedEvent implements Event {
    *
    * @param holderMessage the message of the invoker
    * @return {@code true} if the {@link EnrichedEvent#referenceCount} is 
increased successfully,
-   *     {@code false} otherwise; {@link EnrichedEvent#referenceCount} will be 
incremented
-   *     regardless of the circumstances
+   *     {@code false} otherwise
    */
   public synchronized boolean increaseReferenceCount(final String 
holderMessage) {
     boolean isSuccessful = true;
@@ -156,8 +155,7 @@ public abstract class EnrichedEvent implements Event {
    *
    * @param holderMessage the message of the invoker
    * @return {@code true} if the {@link EnrichedEvent#referenceCount} is 
decreased successfully,
-   *     {@code false} otherwise; {@link EnrichedEvent#referenceCount} will be 
decremented
-   *     regardless of the circumstances
+   *     {@code false} otherwise
    */
   public synchronized boolean decreaseReferenceCount(
       final String holderMessage, final boolean shouldReport) {
@@ -222,10 +220,6 @@ public abstract class EnrichedEvent implements Event {
    */
   public synchronized boolean clearReferenceCount(final String holderMessage) {
     if (isReleased.get()) {
-      LOGGER.warn(
-          "clear reference count to event that has already been released: {}, 
stack trace: {}",
-          coreReportMessage(),
-          Thread.currentThread().getStackTrace());
       return false;
     }
 

Reply via email to