You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/05/21 07:52:26 UTC

[GitHub] sijie closed pull request #1617: (WIP) Fixing PersistentFailoverE2ETest

sijie closed pull request #1617: (WIP) Fixing PersistentFailoverE2ETest 
URL: https://github.com/apache/incubator-pulsar/pull/1617
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/PersistentFailoverE2ETest.java b/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/PersistentFailoverE2ETest.java
index bc5c210b20..dfdc95fb3d 100644
--- a/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/PersistentFailoverE2ETest.java
+++ b/pulsar-broker/src/test/java/org/apache/pulsar/broker/service/PersistentFailoverE2ETest.java
@@ -31,6 +31,7 @@
 import java.util.concurrent.LinkedBlockingQueue;
 import java.util.concurrent.TimeUnit;
 
+import lombok.extern.slf4j.Slf4j;
 import org.apache.pulsar.broker.service.persistent.PersistentDispatcherSingleActiveConsumer;
 import org.apache.pulsar.broker.service.persistent.PersistentSubscription;
 import org.apache.pulsar.broker.service.persistent.PersistentTopic;
@@ -56,6 +57,7 @@
 import com.google.common.collect.Lists;
 import com.google.common.collect.Sets;
 
+@Slf4j
 public class PersistentFailoverE2ETest extends BrokerTestBase {
 
     @BeforeClass
@@ -79,6 +81,7 @@ protected void cleanup() throws Exception {
 
         @Override
         public void becameActive(Consumer<?> consumer, int partitionId) {
+            log.info("Consumer {} becomes active in partition {}", consumer, partitionId);
             try {
                 activeQueue.put(partitionId);
             } catch (InterruptedException e) {
@@ -87,6 +90,7 @@ public void becameActive(Consumer<?> consumer, int partitionId) {
 
         @Override
         public void becameInactive(Consumer<?> consumer, int partitionId) {
+            log.info("Consumer {} becomes inactive in partition {}", consumer, partitionId);
             try {
                 inActiveQueue.put(partitionId);
             } catch (InterruptedException e) {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services