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

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


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

commit 94e6870ec0e92f694e76904bb893368fae7f54af
Author: V_Galaxy <[email protected]>
AuthorDate: Fri Sep 6 10:53:54 2024 +0800

    Pipe: avoid logging warn when clearing event ref after releasing the event 
& minor improve for javadoc (#13371) (#13422)
---
 .../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