You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by te...@apache.org on 2024/05/30 00:06:02 UTC
(pulsar) branch branch-3.0 updated: [improve][broker] Clear thread local BrokerEntryMetadata instance before reuse (#22752)
This is an automated email from the ASF dual-hosted git repository.
technoboy pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 18db799297d [improve][broker] Clear thread local BrokerEntryMetadata instance before reuse (#22752)
18db799297d is described below
commit 18db799297d6c6980100d9367231b3aa42db838e
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Wed May 22 05:56:14 2024 +0300
[improve][broker] Clear thread local BrokerEntryMetadata instance before reuse (#22752)
---
.../src/main/java/org/apache/pulsar/common/protocol/Commands.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/pulsar-common/src/main/java/org/apache/pulsar/common/protocol/Commands.java b/pulsar-common/src/main/java/org/apache/pulsar/common/protocol/Commands.java
index 39829000418..faa5fbcd301 100644
--- a/pulsar-common/src/main/java/org/apache/pulsar/common/protocol/Commands.java
+++ b/pulsar-common/src/main/java/org/apache/pulsar/common/protocol/Commands.java
@@ -1675,6 +1675,7 @@ public class Commands {
// | 2 bytes | 4 bytes | BROKER_ENTRY_METADATA_SIZE bytes |
BrokerEntryMetadata brokerEntryMetadata = BROKER_ENTRY_METADATA.get();
+ brokerEntryMetadata.clear();
for (BrokerEntryMetadataInterceptor interceptor : brokerInterceptors) {
interceptor.intercept(brokerEntryMetadata);
if (numberOfMessages >= 0) {