You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2025/01/17 12:04:53 UTC
(pulsar) branch branch-3.3 updated (3cdfa13216c -> 2c2d788aabf)
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a change to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/pulsar.git
from 3cdfa13216c [fix][broker] Fix possible mark delete NPE when batch index ack is enabled (#23833)
new 53a33e73f71 [fix][broker] PIP-399: Fix Metric Name for Delayed Queue (#23712)
new 7b66b3d33f5 [fix][test]Fix flaky test testTopicUnloadAfterSessionRebuild (#23852)
new 7d27f857321 [improve][ci] Publish build scans to develocity.apache.org (#23851)
new 1f62dbdb133 [fix][broker] Revert "[fix][broker] Cancel possible pending replay read in cancelPendingRead (#23384)" (#23855)
new ce591df04b8 [fix][client] Orphan producer when concurrently calling producer closing and reconnection (#23853)
new 2c2d788aabf [fix][test] Add reconsumeLater call in RetryTopicTest#testRetryTopicWithMultiTopic. (#23857)
The 6 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/workflows/ci-maven-cache-update.yaml | 2 +-
.github/workflows/ci-owasp-dependency-check.yaml | 2 +-
.github/workflows/pulsar-ci-flaky.yaml | 2 +-
.github/workflows/pulsar-ci.yaml | 20 ++--
.mvn/develocity.xml | 10 +-
.mvn/extensions.xml | 4 +-
.../AbstractDispatcherMultipleConsumers.java | 4 +
.../PersistentDispatcherMultipleConsumers.java | 3 +-
.../pulsar/broker/stats/prometheus/TopicStats.java | 2 +-
.../pulsar/broker/service/ZkSessionExpireTest.java | 19 ++-
.../service/persistent/PersistentTopicTest.java | 23 +++-
.../apache/pulsar/client/api/RetryTopicTest.java | 4 +-
.../pulsar/client/impl/ProducerCloseTest.java | 41 +++++++
.../client/impl/ProducerReconnectionTest.java | 130 +++++++++++++++++++++
.../pulsar/client/impl/ConnectionHandler.java | 7 +-
.../apache/pulsar/client/impl/ProducerImpl.java | 32 +++--
.../pulsar/client/impl/ProducerImplTest.java | 39 -------
17 files changed, 260 insertions(+), 84 deletions(-)
create mode 100644 pulsar-broker/src/test/java/org/apache/pulsar/client/impl/ProducerReconnectionTest.java
(pulsar) 05/06: [fix][client] Orphan producer when concurrently calling producer closing and reconnection (#23853)
Posted by lh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit ce591df04b8ff308bf02368b4b7c8ee4e5df9ebc
Author: fengyubiao <yu...@streamnative.io>
AuthorDate: Fri Jan 17 14:48:46 2025 +0800
[fix][client] Orphan producer when concurrently calling producer closing and reconnection (#23853)
(cherry picked from commit 56adefaf3a244514a7eacbee17ac31b1a8739391)
---
.../pulsar/client/impl/ProducerCloseTest.java | 41 +++++++
.../client/impl/ProducerReconnectionTest.java | 130 +++++++++++++++++++++
.../pulsar/client/impl/ConnectionHandler.java | 7 +-
.../apache/pulsar/client/impl/ProducerImpl.java | 32 +++--
.../pulsar/client/impl/ProducerImplTest.java | 39 -------
5 files changed, 197 insertions(+), 52 deletions(-)
diff --git a/pulsar-broker/src/test/java/org/apache/pulsar/client/impl/ProducerCloseTest.java b/pulsar-broker/src/test/java/org/apache/pulsar/client/impl/ProducerCloseTest.java
index 1141af88e72..623d8e7505e 100644
--- a/pulsar-broker/src/test/java/org/apache/pulsar/client/impl/ProducerCloseTest.java
+++ b/pulsar-broker/src/test/java/org/apache/pulsar/client/impl/ProducerCloseTest.java
@@ -18,6 +18,7 @@
*/
package org.apache.pulsar.client.impl;
+import java.time.Duration;
import lombok.Cleanup;
import org.apache.commons.lang3.RandomStringUtils;
import org.apache.pulsar.broker.service.Topic;
@@ -71,6 +72,46 @@ public class ProducerCloseTest extends ProducerConsumerBase {
};
}
+ /**
+ * Param1: Producer enableBatch or not
+ * Param2: Send in async way or not
+ */
+ @DataProvider(name = "brokenPipeline")
+ public Object[][] brokenPipeline() {
+ return new Object[][]{
+ {true},
+ {false}
+ };
+ }
+
+ @Test(dataProvider = "brokenPipeline")
+ public void testProducerCloseCallback2(boolean brokenPipeline) throws Exception {
+ initClient();
+ @Cleanup
+ ProducerImpl<byte[]> producer = (ProducerImpl<byte[]>) pulsarClient.newProducer()
+ .topic("testProducerClose")
+ .sendTimeout(5, TimeUnit.SECONDS)
+ .maxPendingMessages(0)
+ .enableBatching(false)
+ .create();
+ final TypedMessageBuilder<byte[]> messageBuilder = producer.newMessage();
+ final TypedMessageBuilder<byte[]> value = messageBuilder.value("test-msg".getBytes(StandardCharsets.UTF_8));
+ producer.getClientCnx().channel().config().setAutoRead(false);
+ final CompletableFuture<MessageId> completableFuture = value.sendAsync();
+ producer.closeAsync();
+ Thread.sleep(3000);
+ if (brokenPipeline) {
+ //producer.getClientCnx().channel().config().setAutoRead(true);
+ producer.getClientCnx().channel().close();
+ } else {
+ producer.getClientCnx().channel().config().setAutoRead(true);
+ }
+ Awaitility.await().atMost(Duration.ofSeconds(10)).untilAsserted(() -> {
+ System.out.println(1);
+ Assert.assertTrue(completableFuture.isDone());
+ });
+ }
+
@Test(timeOut = 10_000)
public void testProducerCloseCallback() throws Exception {
initClient();
diff --git a/pulsar-broker/src/test/java/org/apache/pulsar/client/impl/ProducerReconnectionTest.java b/pulsar-broker/src/test/java/org/apache/pulsar/client/impl/ProducerReconnectionTest.java
new file mode 100644
index 00000000000..e05e666d62e
--- /dev/null
+++ b/pulsar-broker/src/test/java/org/apache/pulsar/client/impl/ProducerReconnectionTest.java
@@ -0,0 +1,130 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.pulsar.client.impl;
+
+import static org.mockito.Mockito.doAnswer;
+import static org.mockito.Mockito.spy;
+import static org.testng.Assert.assertEquals;
+import static org.testng.Assert.assertNotEquals;
+import static org.testng.Assert.assertTrue;
+import java.nio.charset.StandardCharsets;
+import java.util.Optional;
+import java.util.concurrent.CompletableFuture;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicBoolean;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.pulsar.broker.BrokerTestUtil;
+import org.apache.pulsar.broker.service.ServerCnx;
+import org.apache.pulsar.client.api.Producer;
+import org.apache.pulsar.client.api.ProducerConsumerBase;
+import org.apache.pulsar.client.api.Schema;
+import org.awaitility.Awaitility;
+import org.testng.annotations.AfterClass;
+import org.testng.annotations.BeforeClass;
+import org.testng.annotations.Test;
+
+@Slf4j
+@Test(groups = "broker-api")
+public class ProducerReconnectionTest extends ProducerConsumerBase {
+
+ @BeforeClass(alwaysRun = true)
+ @Override
+ protected void setup() throws Exception {
+ super.internalSetup();
+ super.producerBaseSetup();
+ }
+
+ @AfterClass(alwaysRun = true)
+ @Override
+ protected void cleanup() throws Exception {
+ super.internalCleanup();
+ }
+
+ @Test
+ public void testConcurrencyReconnectAndClose() throws Exception {
+ final String topicName = BrokerTestUtil.newUniqueName("persistent://public/default/tp_");
+ admin.topics().createNonPartitionedTopic(topicName);
+ PulsarClientImpl client = (PulsarClientImpl) pulsarClient;
+
+ // Create producer which will run with special steps.
+ ProducerBuilderImpl<byte[]> producerBuilder = (ProducerBuilderImpl<byte[]>) client.newProducer()
+ .blockIfQueueFull(false).maxPendingMessages(1).producerName("p1")
+ .enableBatching(true).topic(topicName);
+ CompletableFuture<Producer<byte[]>> producerFuture = new CompletableFuture<>();
+ AtomicBoolean reconnectionStartTrigger = new AtomicBoolean();
+ CountDownLatch reconnectingSignal = new CountDownLatch(1);
+ CountDownLatch closedSignal = new CountDownLatch(1);
+ ProducerImpl<byte[]> producer = new ProducerImpl<>(client, topicName, producerBuilder.getConf(), producerFuture,
+ -1, Schema.BYTES, null, Optional.empty()) {
+ @Override
+ ConnectionHandler initConnectionHandler() {
+ ConnectionHandler connectionHandler = super.initConnectionHandler();
+ ConnectionHandler spyConnectionHandler = spy(connectionHandler);
+ doAnswer(invocation -> {
+ boolean result = (boolean) invocation.callRealMethod();
+ if (reconnectionStartTrigger.get()) {
+ log.info("[testConcurrencyReconnectAndClose] verified state for reconnection");
+ reconnectingSignal.countDown();
+ closedSignal.await();
+ log.info("[testConcurrencyReconnectAndClose] reconnected");
+ }
+ return result;
+ }).when(spyConnectionHandler).isValidStateForReconnection();
+ return spyConnectionHandler;
+ }
+ };
+ log.info("[testConcurrencyReconnectAndClose] producer created");
+ producerFuture.get(5, TimeUnit.SECONDS);
+
+ // Reconnect.
+ log.info("[testConcurrencyReconnectAndClose] trigger a reconnection");
+ ServerCnx serverCnx = (ServerCnx) pulsar.getBrokerService().getTopic(topicName, false).join()
+ .get().getProducers().values().iterator().next().getCnx();
+ reconnectionStartTrigger.set(true);
+ serverCnx.ctx().close();
+ producer.sendAsync("1".getBytes(StandardCharsets.UTF_8));
+ Awaitility.await().untilAsserted(() -> {
+ assertNotEquals(producer.getPendingQueueSize(), 0);
+ });
+
+ // Close producer when reconnecting.
+ reconnectingSignal.await();
+ log.info("[testConcurrencyReconnectAndClose] producer close");
+ producer.closeAsync();
+ Awaitility.await().untilAsserted(() -> {
+ HandlerState.State state1 = producer.getState();
+ assertTrue(state1 == HandlerState.State.Closed || state1 == HandlerState.State.Closing);
+ });
+ // give another thread time to call "signalToChangeStateToConnecting.await()".
+ closedSignal.countDown();
+
+ // Wait for reconnection.
+ Thread.sleep(3000);
+
+ HandlerState.State state2 = producer.getState();
+ log.info("producer state: {}", state2);
+ assertTrue(state2 == HandlerState.State.Closed || state2 == HandlerState.State.Closing);
+ assertEquals(producer.getPendingQueueSize(), 0);
+
+ // Verify: ref is expected.
+ producer.close();
+ admin.topics().delete(topicName);
+ }
+}
diff --git a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConnectionHandler.java b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConnectionHandler.java
index 93498594919..fb5b6788d08 100644
--- a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConnectionHandler.java
+++ b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConnectionHandler.java
@@ -18,6 +18,7 @@
*/
package org.apache.pulsar.client.impl;
+import com.google.common.annotations.VisibleForTesting;
import java.net.InetSocketAddress;
import java.net.URI;
import java.util.Optional;
@@ -192,13 +193,12 @@ public class ConnectionHandler {
duringConnect.set(false);
state.client.getCnxPool().releaseConnection(cnx);
if (CLIENT_CNX_UPDATER.compareAndSet(this, cnx, null)) {
- if (!isValidStateForReconnection()) {
+ if (!state.changeToConnecting()) {
log.info("[{}] [{}] Ignoring reconnection request (state: {})",
state.topic, state.getHandlerName(), state.getState());
return;
}
long delayMs = initialConnectionDelayMs.orElse(backoff.next());
- state.setState(State.Connecting);
log.info("[{}] [{}] Closed connection {} -- Will try again in {} s, hostUrl: {}",
state.topic, state.getHandlerName(), cnx.channel(), delayMs / 1000.0, hostUrl.orElse(null));
state.client.timer().newTimeout(timeout -> {
@@ -232,7 +232,8 @@ public class ConnectionHandler {
return EPOCH_UPDATER.incrementAndGet(this);
}
- private boolean isValidStateForReconnection() {
+ @VisibleForTesting
+ public boolean isValidStateForReconnection() {
State state = this.state.getState();
switch (state) {
case Uninitialized:
diff --git a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java
index 67218c1e868..d34902a7bda 100644
--- a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java
+++ b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java
@@ -304,16 +304,20 @@ public class ProducerImpl<T> extends ProducerBase<T> implements TimerTask, Conne
producersClosedCounter = ip.newCounter("pulsar.client.producer.closed", Unit.Sessions,
"The number of producer sessions closed", topic, Attributes.empty());
- this.connectionHandler = new ConnectionHandler(this,
+ this.connectionHandler = initConnectionHandler();
+ setChunkMaxMessageSize();
+ grabCnx();
+ producersOpenedCounter.increment();
+ }
+
+ ConnectionHandler initConnectionHandler() {
+ return new ConnectionHandler(this,
new BackoffBuilder()
.setInitialTime(client.getConfiguration().getInitialBackoffIntervalNanos(), TimeUnit.NANOSECONDS)
.setMax(client.getConfiguration().getMaxBackoffIntervalNanos(), TimeUnit.NANOSECONDS)
.setMandatoryStop(Math.max(100, conf.getSendTimeoutMs() - 100), TimeUnit.MILLISECONDS)
.create(),
- this);
- setChunkMaxMessageSize();
- grabCnx();
- producersOpenedCounter.increment();
+ this);
}
private void setChunkMaxMessageSize() {
@@ -1152,7 +1156,7 @@ public class ProducerImpl<T> extends ProducerBase<T> implements TimerTask, Conne
@Override
- public CompletableFuture<Void> closeAsync() {
+ public synchronized CompletableFuture<Void> closeAsync() {
final State currentState = getAndUpdateState(state -> {
if (state == State.Closed) {
return state;
@@ -1180,11 +1184,11 @@ public class ProducerImpl<T> extends ProducerBase<T> implements TimerTask, Conne
CompletableFuture<Void> closeFuture = new CompletableFuture<>();
cnx.sendRequestWithId(cmd, requestId).handle((v, exception) -> {
cnx.removeProducer(producerId);
- closeAndClearPendingMessages();
if (exception == null || !cnx.ctx().channel().isActive()) {
// Either we've received the success response for the close producer command from the broker, or the
// connection did break in the meantime. In any case, the producer is gone.
log.info("[{}] [{}] Closed Producer", topic, producerName);
+ closeAndClearPendingMessages();
closeFuture.complete(null);
} else {
closeFuture.completeExceptionally(exception);
@@ -1786,6 +1790,12 @@ public class ProducerImpl<T> extends ProducerBase<T> implements TimerTask, Conne
// Because the state could have been updated while retrieving the connection, we set it back to connecting,
// as long as the change from current state to connecting is a valid state change.
if (!changeToConnecting()) {
+ if (getState() == State.Closing || getState() == State.Closed) {
+ // Producer was closed while reconnecting, close the connection to make sure the broker
+ // drops the producer on its side
+ failPendingMessages(cnx,
+ new PulsarClientException.ProducerFencedException("producer has been closed"));
+ }
return CompletableFuture.completedFuture(null);
}
// We set the cnx reference before registering the producer on the cnx, so if the cnx breaks before creating
@@ -1846,6 +1856,8 @@ public class ProducerImpl<T> extends ProducerBase<T> implements TimerTask, Conne
// Producer was closed while reconnecting, close the connection to make sure the broker
// drops the producer on its side
cnx.removeProducer(producerId);
+ failPendingMessages(cnx,
+ new PulsarClientException.ProducerFencedException("producer has been closed"));
cnx.channel().close();
future.complete(null);
return;
@@ -2016,7 +2028,7 @@ public class ProducerImpl<T> extends ProducerBase<T> implements TimerTask, Conne
private void resendMessages(ClientCnx cnx, long expectedEpoch) {
cnx.ctx().channel().eventLoop().execute(() -> {
- synchronized (this) {
+ synchronized (ProducerImpl.this) {
if (getState() == State.Closing || getState() == State.Closed) {
// Producer was closed while reconnecting, close the connection to make sure the broker
// drops the producer on its side
@@ -2172,7 +2184,7 @@ public class ProducerImpl<T> extends ProducerBase<T> implements TimerTask, Conne
* This fails and clears the pending messages with the given exception. This method should be called from within the
* ProducerImpl object mutex.
*/
- private void failPendingMessages(ClientCnx cnx, PulsarClientException ex) {
+ private synchronized void failPendingMessages(ClientCnx cnx, PulsarClientException ex) {
if (cnx == null) {
final AtomicInteger releaseCount = new AtomicInteger();
final boolean batchMessagingEnabled = isBatchMessagingEnabled();
@@ -2324,7 +2336,7 @@ public class ProducerImpl<T> extends ProducerBase<T> implements TimerTask, Conne
}
}
- protected void processOpSendMsg(OpSendMsg op) {
+ protected synchronized void processOpSendMsg(OpSendMsg op) {
if (op == null) {
return;
}
diff --git a/pulsar-client/src/test/java/org/apache/pulsar/client/impl/ProducerImplTest.java b/pulsar-client/src/test/java/org/apache/pulsar/client/impl/ProducerImplTest.java
index 5f690ead6c5..ce5a94592fd 100644
--- a/pulsar-client/src/test/java/org/apache/pulsar/client/impl/ProducerImplTest.java
+++ b/pulsar-client/src/test/java/org/apache/pulsar/client/impl/ProducerImplTest.java
@@ -25,16 +25,8 @@ import static org.mockito.Mockito.withSettings;
import static org.testng.Assert.*;
import java.nio.ByteBuffer;
-import java.util.Optional;
-import java.util.concurrent.CompletableFuture;
-
-import io.netty.util.HashedWheelTimer;
-import org.apache.pulsar.client.api.PulsarClientException;
import org.apache.pulsar.client.api.Schema;
-import org.apache.pulsar.client.impl.conf.ClientConfigurationData;
-import org.apache.pulsar.client.impl.conf.ProducerConfigurationData;
import org.apache.pulsar.client.impl.metrics.LatencyHistogram;
-import org.apache.pulsar.client.impl.metrics.InstrumentProvider;
import org.apache.pulsar.common.api.proto.MessageMetadata;
import org.mockito.Mockito;
import org.testng.annotations.Test;
@@ -74,35 +66,4 @@ public class ProducerImplTest {
assertTrue(producer.populateMessageSchema(msg, null));
verify(msg).setSchemaState(MessageImpl.SchemaState.Ready);
}
-
- @Test
- public void testClearPendingMessageWhenCloseAsync() {
- PulsarClientImpl client = mock(PulsarClientImpl.class);
- Mockito.doReturn(1L).when(client).newProducerId();
- ClientConfigurationData clientConf = new ClientConfigurationData();
- clientConf.setStatsIntervalSeconds(-1);
- Mockito.doReturn(clientConf).when(client).getConfiguration();
- Mockito.doReturn(new InstrumentProvider(null)).when(client).instrumentProvider();
- ConnectionPool connectionPool = mock(ConnectionPool.class);
- Mockito.doReturn(1).when(connectionPool).genRandomKeyToSelectCon();
- Mockito.doReturn(connectionPool).when(client).getCnxPool();
- HashedWheelTimer timer = mock(HashedWheelTimer.class);
- Mockito.doReturn(null).when(timer).newTimeout(Mockito.any(), Mockito.anyLong(), Mockito.any());
- Mockito.doReturn(timer).when(client).timer();
- ProducerConfigurationData producerConf = new ProducerConfigurationData();
- producerConf.setSendTimeoutMs(-1);
- ProducerImpl<?> producer = Mockito.spy(new ProducerImpl<>(client, "topicName", producerConf, null, 0, null, null, Optional.empty()));
-
- // make sure throw exception when send request to broker
- ClientCnx clientCnx = mock(ClientCnx.class);
- CompletableFuture<ProducerResponse> tCompletableFuture = new CompletableFuture<>();
- tCompletableFuture.completeExceptionally(new PulsarClientException("error"));
- when(clientCnx.sendRequestWithId(Mockito.any(), Mockito.anyLong())).thenReturn(tCompletableFuture);
- Mockito.doReturn(clientCnx).when(producer).cnx();
-
- // run closeAsync and verify
- CompletableFuture<Void> voidCompletableFuture = producer.closeAsync();
- verify(producer).closeAndClearPendingMessages();
- }
-
}
(pulsar) 06/06: [fix][test] Add reconsumeLater call in RetryTopicTest#testRetryTopicWithMultiTopic. (#23857)
Posted by lh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit 2c2d788aabff66f2e698df31f2bf86c279530c85
Author: Wenzhi Feng <52...@users.noreply.github.com>
AuthorDate: Fri Jan 17 15:57:24 2025 +0800
[fix][test] Add reconsumeLater call in RetryTopicTest#testRetryTopicWithMultiTopic. (#23857)
(cherry picked from commit 80157955b69d97fa0568fad4127e34e30e9a2b85)
---
.../src/test/java/org/apache/pulsar/client/api/RetryTopicTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pulsar-broker/src/test/java/org/apache/pulsar/client/api/RetryTopicTest.java b/pulsar-broker/src/test/java/org/apache/pulsar/client/api/RetryTopicTest.java
index 91b97fa4758..d0e72deb87f 100644
--- a/pulsar-broker/src/test/java/org/apache/pulsar/client/api/RetryTopicTest.java
+++ b/pulsar-broker/src/test/java/org/apache/pulsar/client/api/RetryTopicTest.java
@@ -464,7 +464,7 @@ public class RetryTopicTest extends ProducerConsumerBase {
}
/**
- * The test is disabled {@link https://github.com/apache/pulsar/issues/2647}.
+ * Test retry topic with multiple topics
* @throws Exception
*/
@Test
@@ -482,7 +482,6 @@ public class RetryTopicTest extends ProducerConsumerBase {
.subscriptionName("my-subscription")
.subscriptionType(SubscriptionType.Shared)
.enableRetry(true)
- .ackTimeout(1, TimeUnit.SECONDS)
.deadLetterPolicy(DeadLetterPolicy.builder().maxRedeliverCount(maxRedeliveryCount).build())
.receiverQueueSize(100)
.subscriptionInitialPosition(SubscriptionInitialPosition.Earliest)
@@ -518,6 +517,7 @@ public class RetryTopicTest extends ProducerConsumerBase {
Message<byte[]> message = consumer.receive();
log.info("consumer received message : {} {} - total = {}",
message.getMessageId(), new String(message.getData()), ++totalReceived);
+ consumer.reconsumeLater(message, 1, TimeUnit.SECONDS);
} while (totalReceived < sendMessages * (maxRedeliveryCount + 1));
int totalInDeadLetter = 0;
(pulsar) 02/06: [fix][test]Fix flaky test testTopicUnloadAfterSessionRebuild (#23852)
Posted by lh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit 7b66b3d33f52fc056f751aab5444b82e503094c9
Author: fengyubiao <yu...@streamnative.io>
AuthorDate: Thu Jan 16 16:40:31 2025 +0800
[fix][test]Fix flaky test testTopicUnloadAfterSessionRebuild (#23852)
(cherry picked from commit b3641f068a862a738aacad14b0534cf012e4e584)
---
.../pulsar/broker/service/ZkSessionExpireTest.java | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/ZkSessionExpireTest.java b/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/ZkSessionExpireTest.java
index 143557b008b..609430db6df 100644
--- a/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/ZkSessionExpireTest.java
+++ b/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/ZkSessionExpireTest.java
@@ -26,6 +26,7 @@ import java.time.Duration;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
import lombok.extern.slf4j.Slf4j;
import org.apache.pulsar.broker.BrokerTestUtil;
import org.apache.pulsar.broker.ServiceConfiguration;
@@ -94,7 +95,7 @@ public class ZkSessionExpireTest extends NetworkErrorTestBase {
admin2.namespaces().unload(defaultNamespace);
// Confirm all brokers registered.
- Awaitility.await().untilAsserted(() -> {
+ Awaitility.await().atMost(Duration.ofSeconds(20)).untilAsserted(() -> {
assertEquals(getAvailableBrokers(pulsar1).size(), 2);
assertEquals(getAvailableBrokers(pulsar2).size(), 2);
});
@@ -160,7 +161,21 @@ public class ZkSessionExpireTest extends NetworkErrorTestBase {
// Verify: the topic on broker-2 is fine.
Awaitility.await().atMost(Duration.ofSeconds(10)).untilAsserted(() -> {
CompletableFuture<Optional<Topic>> future = pulsar1.getBrokerService().getTopic(topicName, false);
- assertTrue(future == null || future.isCompletedExceptionally());
+ log.info("broker 1 topics {}", pulsar1.getBrokerService().getTopics().keys());
+ log.info("broker 2 topics {}", pulsar2.getBrokerService().getTopics().keys());
+ log.info("broker 1 bundles {}", pulsar1.getNamespaceService().getOwnershipCache().getOwnedBundles()
+ .keySet().stream().map(k -> k.getNamespaceObject().toString() + "/" + k.getBundleRange())
+ .filter(s -> s.contains(defaultNamespace)).collect(Collectors.toList()));
+ log.info("broker 2 bundles {}", pulsar2.getNamespaceService().getOwnershipCache().getOwnedBundles()
+ .keySet().stream().map(k -> k.getNamespaceObject().toString() + "/" + k.getBundleRange())
+ .filter(s -> s.contains(defaultNamespace)).collect(Collectors.toList()));
+ log.info("future: {}, isDone: {}, isCompletedExceptionally: {}",
+ future, future == null ? "null" : future.isDone(),
+ future, future == null ? "null" : future.isCompletedExceptionally());
+ assertTrue(future == null
+ || !pulsar1.getBrokerService().getTopics().containsKey(topicName)
+ || (future.isDone() && !future.isCompletedExceptionally() && future.get().isEmpty())
+ || future.isCompletedExceptionally());
});
Topic broker2Topic3 = pulsar2.getBrokerService().getTopic(topicName, false).join().get();
assertNotNull(broker2Topic3);
(pulsar) 01/06: [fix][broker] PIP-399: Fix Metric Name for Delayed Queue (#23712)
Posted by lh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit 53a33e73f71dc592461b52872b4bd5d394a4c411
Author: Wenzhi Feng <52...@users.noreply.github.com>
AuthorDate: Tue Jan 14 17:40:15 2025 +0800
[fix][broker] PIP-399: Fix Metric Name for Delayed Queue (#23712)
(cherry picked from commit 5be922b3fd47fb01006bd14f7396321470ef40f2)
---
.../pulsar/broker/stats/prometheus/TopicStats.java | 2 +-
.../service/persistent/PersistentTopicTest.java | 23 +++++++++++++++++-----
2 files changed, 19 insertions(+), 6 deletions(-)
diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/TopicStats.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/TopicStats.java
index 5d9e21113e6..86d478593d9 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/TopicStats.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/prometheus/TopicStats.java
@@ -360,7 +360,7 @@ class TopicStats {
writeSubscriptionMetric(stream, "pulsar_subscription_filter_rescheduled_msg_count",
subsStats.filterRescheduledMsgCount, cluster, namespace, topic, sub,
splitTopicAndPartitionIndexLabel);
- writeSubscriptionMetric(stream, "pulsar_delayed_message_index_size_bytes",
+ writeSubscriptionMetric(stream, "pulsar_subscription_delayed_message_index_size_bytes",
subsStats.delayedMessageIndexSizeInBytes, cluster, namespace, topic, sub,
splitTopicAndPartitionIndexLabel);
diff --git a/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/persistent/PersistentTopicTest.java b/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/persistent/PersistentTopicTest.java
index 5b750a0b9c2..243a5ccadb3 100644
--- a/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/persistent/PersistentTopicTest.java
+++ b/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/persistent/PersistentTopicTest.java
@@ -423,10 +423,11 @@ public class PersistentTopicTest extends BrokerTestBase {
@Cleanup
Producer<String> producer = client.newProducer(Schema.STRING).topic(topic).enableBatching(false).create();
+ String subName = "test_sub";
@Cleanup
Consumer<String> consumer = client.newConsumer(Schema.STRING)
.topic(topic)
- .subscriptionName("test_sub")
+ .subscriptionName(subName)
.subscriptionType(SubscriptionType.Shared)
.messageListener((MessageListener<String>) (consumer1, msg) -> {
try {
@@ -452,7 +453,13 @@ public class PersistentTopicTest extends BrokerTestBase {
Multimap<String, Metric> metricsMap = parseMetrics(metricsStr);
Collection<Metric> metrics = metricsMap.get("pulsar_delayed_message_index_size_bytes");
- Assert.assertTrue(metrics.size() > 0);
+ Collection<Metric> subMetrics = metricsMap.get("pulsar_subscription_delayed_message_index_size_bytes");
+ assertFalse(metrics.isEmpty());
+ if (exposeTopicLevelMetrics) {
+ assertFalse(subMetrics.isEmpty());
+ } else {
+ assertTrue(subMetrics.isEmpty());
+ }
int topicLevelNum = 0;
int namespaceLevelNum = 0;
@@ -461,14 +468,20 @@ public class PersistentTopicTest extends BrokerTestBase {
if (exposeTopicLevelMetrics && metric.tags.get("topic").equals(topic)) {
Assert.assertTrue(metric.value > 0);
topicLevelNum++;
- if ("test_sub".equals(metric.tags.get("subscription"))) {
- subscriptionLevelNum++;
- }
} else if (!exposeTopicLevelMetrics && metric.tags.get("namespace").equals(namespace)) {
Assert.assertTrue(metric.value > 0);
namespaceLevelNum++;
}
}
+ if (exposeTopicLevelMetrics) {
+ for (Metric metric : subMetrics) {
+ if (metric.tags.get("topic").equals(topic) &&
+ subName.equals(metric.tags.get("subscription"))) {
+ Assert.assertTrue(metric.value > 0);
+ subscriptionLevelNum++;
+ }
+ }
+ }
if (exposeTopicLevelMetrics) {
Assert.assertTrue(topicLevelNum > 0);
(pulsar) 03/06: [improve][ci] Publish build scans to develocity.apache.org (#23851)
Posted by lh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit 7d27f8573213cbaa24cccecde66adf0781cc9b66
Author: Clay Johnson <cj...@gradle.com>
AuthorDate: Thu Jan 16 05:41:11 2025 -0600
[improve][ci] Publish build scans to develocity.apache.org (#23851)
(cherry picked from commit b55cd3e754e3bf7d8975ba3a3663eb9e64e139d6)
---
.github/workflows/ci-maven-cache-update.yaml | 2 +-
.github/workflows/ci-owasp-dependency-check.yaml | 2 +-
.github/workflows/pulsar-ci-flaky.yaml | 2 +-
.github/workflows/pulsar-ci.yaml | 20 ++++++++++----------
.mvn/develocity.xml | 10 +++++-----
.mvn/extensions.xml | 4 ++--
6 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/.github/workflows/ci-maven-cache-update.yaml b/.github/workflows/ci-maven-cache-update.yaml
index a673a308434..6b0310e4871 100644
--- a/.github/workflows/ci-maven-cache-update.yaml
+++ b/.github/workflows/ci-maven-cache-update.yaml
@@ -50,7 +50,7 @@ jobs:
name: Update Maven dependency cache for ${{ matrix.name }}
env:
JOB_NAME: Update Maven dependency cache for ${{ matrix.name }}
- DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
runs-on: ${{ matrix.runs-on }}
timeout-minutes: 45
diff --git a/.github/workflows/ci-owasp-dependency-check.yaml b/.github/workflows/ci-owasp-dependency-check.yaml
index a1c6dd594d3..6e60065b07b 100644
--- a/.github/workflows/ci-owasp-dependency-check.yaml
+++ b/.github/workflows/ci-owasp-dependency-check.yaml
@@ -34,7 +34,7 @@ jobs:
name: Check ${{ matrix.branch }}
env:
JOB_NAME: Check ${{ matrix.branch }}
- DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
runs-on: ubuntu-22.04
timeout-minutes: 75
strategy:
diff --git a/.github/workflows/pulsar-ci-flaky.yaml b/.github/workflows/pulsar-ci-flaky.yaml
index bfc51409431..514334d123c 100644
--- a/.github/workflows/pulsar-ci-flaky.yaml
+++ b/.github/workflows/pulsar-ci-flaky.yaml
@@ -148,7 +148,7 @@ jobs:
env:
JOB_NAME: Flaky tests suite
COLLECT_COVERAGE: "${{ needs.preconditions.outputs.collect_coverage }}"
- DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
CI_JDK_MAJOR_VERSION: ${{ needs.preconditions.outputs.jdk_major_version }}
TRACE_TEST_RESOURCE_CLEANUP: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.trace_test_resource_cleanup || 'off' }}
TRACE_TEST_RESOURCE_CLEANUP_DIR: ${{ github.workspace }}/target/trace-test-resource-cleanup
diff --git a/.github/workflows/pulsar-ci.yaml b/.github/workflows/pulsar-ci.yaml
index 0b27c6963ed..bad04fdca89 100644
--- a/.github/workflows/pulsar-ci.yaml
+++ b/.github/workflows/pulsar-ci.yaml
@@ -147,7 +147,7 @@ jobs:
name: Build and License check
env:
JOB_NAME: Build and License check
- DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
CI_JDK_MAJOR_VERSION: ${{ needs.preconditions.outputs.jdk_major_version }}
runs-on: ubuntu-22.04
timeout-minutes: 60
@@ -224,7 +224,7 @@ jobs:
env:
JOB_NAME: CI - Unit - ${{ matrix.name }}
COLLECT_COVERAGE: "${{ needs.preconditions.outputs.collect_coverage }}"
- DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
CI_JDK_MAJOR_VERSION: ${{ needs.preconditions.outputs.jdk_major_version }}
TRACE_TEST_RESOURCE_CLEANUP: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.trace_test_resource_cleanup || 'off' }}
TRACE_TEST_RESOURCE_CLEANUP_DIR: ${{ github.workspace }}/target/trace-test-resource-cleanup
@@ -472,7 +472,7 @@ jobs:
- linux/amd64
- linux/arm64
env:
- DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
CI_JDK_MAJOR_VERSION: ${{ needs.preconditions.outputs.jdk_major_version }}
IMAGE_JDK_MAJOR_VERSION: ${{ needs.preconditions.outputs.jdk_major_version }}
steps:
@@ -550,7 +550,7 @@ jobs:
env:
JOB_NAME: CI - Integration - ${{ matrix.name }}
PULSAR_TEST_IMAGE_NAME: apachepulsar/java-test-image:latest
- DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
CI_JDK_MAJOR_VERSION: ${{ needs.preconditions.outputs.jdk_major_version }}
strategy:
fail-fast: false
@@ -828,7 +828,7 @@ jobs:
needs: ['preconditions', 'build-and-license-check']
if: ${{ needs.preconditions.outputs.docs_only != 'true' }}
env:
- DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
CI_JDK_MAJOR_VERSION: ${{ needs.preconditions.outputs.jdk_major_version }}
IMAGE_JDK_MAJOR_VERSION: ${{ needs.preconditions.outputs.jdk_major_version }}
steps:
@@ -954,7 +954,7 @@ jobs:
env:
JOB_NAME: CI - System - ${{ matrix.name }}
PULSAR_TEST_IMAGE_NAME: apachepulsar/pulsar-test-latest-version:latest
- DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
CI_JDK_MAJOR_VERSION: ${{ needs.preconditions.outputs.jdk_major_version }}
strategy:
fail-fast: false
@@ -1184,7 +1184,7 @@ jobs:
env:
JOB_NAME: CI Flaky - System - ${{ matrix.name }}
PULSAR_TEST_IMAGE_NAME: apachepulsar/pulsar-test-latest-version:latest
- DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
CI_JDK_MAJOR_VERSION: ${{ needs.preconditions.outputs.jdk_major_version }}
strategy:
fail-fast: false
@@ -1327,7 +1327,7 @@ jobs:
needs: ['preconditions', 'integration-tests']
if: ${{ needs.preconditions.outputs.docs_only != 'true' }}
env:
- DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
CI_JDK_MAJOR_VERSION: ${{ needs.preconditions.outputs.jdk_major_version }}
steps:
- name: checkout
@@ -1367,7 +1367,7 @@ jobs:
contents: read
security-events: write
env:
- DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
CI_JDK_MAJOR_VERSION: ${{ needs.preconditions.outputs.jdk_major_version }}
CODEQL_LANGUAGE: java-kotlin
steps:
@@ -1428,7 +1428,7 @@ jobs:
needs: [ 'preconditions', 'integration-tests' ]
if: ${{ needs.preconditions.outputs.need_owasp == 'true' }}
env:
- DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
CI_JDK_MAJOR_VERSION: ${{ needs.preconditions.outputs.jdk_major_version }}
NIST_NVD_API_KEY: ${{ secrets.NIST_NVD_API_KEY }}
steps:
diff --git a/.mvn/develocity.xml b/.mvn/develocity.xml
index 5c0fbb47c72..399b3789998 100644
--- a/.mvn/develocity.xml
+++ b/.mvn/develocity.xml
@@ -24,16 +24,16 @@
<!-- Enable Gradle Develocity extension when GRADLE_ENTERPRISE_ACCESS_KEY/DEVELOCITY_ACCESS_KEY is set and the build isn't
a pull request from a branch or forked repository with a name that indicates it's a work in progress. -->
<enabled>#{(env['GRADLE_ENTERPRISE_ACCESS_KEY']?.trim() > '' or env['DEVELOCITY_ACCESS_KEY']?.trim() > '') and !(env['GITHUB_HEAD_REF']?.matches('(?i).*(experiment|wip|private).*') or env['GITHUB_REPOSITORY']?.matches('(?i).*(experiment|wip|private).*'))}</enabled>
+ <projectId>pulsar</projectId>
<server>
- <url>https://ge.apache.org</url>
+ <url>https://develocity.apache.org</url>
<allowUntrusted>false</allowUntrusted>
</server>
<buildScan>
- <capture>
- <buildLogging>true</buildLogging>
- <testLogging>true</testLogging>
- </capture>
<backgroundBuildScanUpload>#{isFalse(env['GITHUB_ACTIONS'])}</backgroundBuildScanUpload>
+ <publishing>
+ <onlyIf>authenticated</onlyIf>
+ </publishing>
<obfuscation>
<ipAddresses>#{{'0.0.0.0'}}</ipAddresses>
</obfuscation>
diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml
index eb998dc3471..8ceede33b9c 100644
--- a/.mvn/extensions.xml
+++ b/.mvn/extensions.xml
@@ -24,11 +24,11 @@
<extension>
<groupId>com.gradle</groupId>
<artifactId>develocity-maven-extension</artifactId>
- <version>1.21.6</version>
+ <version>1.22.2</version>
</extension>
<extension>
<groupId>com.gradle</groupId>
<artifactId>common-custom-user-data-maven-extension</artifactId>
- <version>2.0</version>
+ <version>2.0.1</version>
</extension>
</extensions>
(pulsar) 04/06: [fix][broker] Revert "[fix][broker] Cancel possible pending replay read in cancelPendingRead (#23384)" (#23855)
Posted by lh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit 1f62dbdb133b6e7a2e4df6982354cdcd92e5c7ce
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Thu Jan 16 22:08:44 2025 -0800
[fix][broker] Revert "[fix][broker] Cancel possible pending replay read in cancelPendingRead (#23384)" (#23855)
(cherry picked from commit ea56ada4f3985c93b93c64d1361b3111cd98a37f)
---
.../pulsar/broker/service/AbstractDispatcherMultipleConsumers.java | 4 ++++
.../service/persistent/PersistentDispatcherMultipleConsumers.java | 3 +--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/AbstractDispatcherMultipleConsumers.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/AbstractDispatcherMultipleConsumers.java
index 9fc6b9581a3..60908a013c1 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/AbstractDispatcherMultipleConsumers.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/AbstractDispatcherMultipleConsumers.java
@@ -71,6 +71,10 @@ public abstract class AbstractDispatcherMultipleConsumers extends AbstractBaseDi
public abstract boolean isConsumerAvailable(Consumer consumer);
+ /**
+ * Cancel a possible pending read that is a Managed Cursor waiting to be notified for more entries.
+ * This won't cancel any other pending reads that are currently in progress.
+ */
protected void cancelPendingRead() {}
/**
diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentDispatcherMultipleConsumers.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentDispatcherMultipleConsumers.java
index 07178cd9612..2983639c76a 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentDispatcherMultipleConsumers.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentDispatcherMultipleConsumers.java
@@ -600,9 +600,8 @@ public class PersistentDispatcherMultipleConsumers extends AbstractDispatcherMul
@Override
protected void cancelPendingRead() {
- if ((havePendingRead || havePendingReplayRead) && cursor.cancelPendingReadRequest()) {
+ if (havePendingRead && cursor.cancelPendingReadRequest()) {
havePendingRead = false;
- havePendingReplayRead = false;
}
}