BewareMyPower opened a new issue #14719:
URL: https://github.com/apache/pulsar/issues/14719


   ReaderTest.testReferenceLeak is flaky. It fails sporadically.
   
   [example 
failure](https://github.com/apache/pulsar/runs/5567332966?check_suite_focus=true#step:11:568)
   
   ```
   [ RUN      ] ReaderTest.testReferenceLeak
   2022-03-16 10:03:01.669 INFO  [140180921047808] ClientConnection:189 | 
[<none> -> pulsar://localhost:6650] Create ClientConnection, timeout=10000
   2022-03-16 10:03:01.669 INFO  [140180921047808] ConnectionPool:96 | Created 
connection for pulsar://localhost:6650
   2022-03-16 10:03:01.670 INFO  [140180798908160] ClientConnection:375 | 
[127.0.0.1:57130 -> 127.0.0.1:6650] Connected to broker
   2022-03-16 10:03:01.676 INFO  [140180798908160] HandlerBase:64 | 
[persistent://public/default/testReferenceLeak, ] Getting connection from pool
   2022-03-16 10:03:01.711 INFO  [140180798908160] ProducerImpl:189 | 
[persistent://public/default/testReferenceLeak, ] Created producer on broker 
[127.0.0.1:57130 -> 127.0.0.1:6650]
   2022-03-16 10:03:01.746 INFO  [140180798908160] HandlerBase:64 | 
[persistent://public/default/testReferenceLeak, reader-ef351ebab8, 0] Getting 
connection from pool
   2022-03-16 10:03:01.748 INFO  [140180798908160] ConsumerImpl:224 | 
[persistent://public/default/testReferenceLeak, reader-ef351ebab8, 0] Created 
consumer on broker [127.0.0.1:57130 -> 127.0.0.1:6650]
   2022-03-16 10:03:01.748 INFO  [140180921047808] ReaderTest:447 | 1 consumer 
use count 3
   2022-03-16 10:03:01.748 INFO  [140180921047808] ReaderTest:448 | 1 reader 
use count 0
   2022-03-16 10:03:01.752 INFO  [140180921047808] ProducerImpl:686 | 
[persistent://public/default/testReferenceLeak, standalone-0-387] Closing 
producer for topic persistent://public/default/testReferenceLeak
   2022-03-16 10:03:01.753 INFO  [140180798908160] ProducerImpl:729 | 
[persistent://public/default/testReferenceLeak, standalone-0-387] Closed 
producer
   2022-03-16 10:03:01.753 INFO  [140180921047808] ConsumerImpl:999 | 
[persistent://public/default/testReferenceLeak, reader-ef351ebab8, 0] Closing 
consumer for topic persistent://public/default/testReferenceLeak
   2022-03-16 10:03:01.753 INFO  [140180798908160] ConsumerImpl:1055 | 
[persistent://public/default/testReferenceLeak, reader-ef351ebab8, 0] Closed 
consumer 0
   /pulsar/pulsar-client-cpp/tests/ReaderTest.cc:463: Failure
   Value of: readerPtr.use_count()
     Actual: 0
   Expected: 1
   2022-03-16 10:03:01.753 INFO  [140180921047808] ProducerImpl:653 | Producer 
- [persistent://public/default/testReferenceLeak, standalone-0-387] , 
[batchMessageContainer = { BatchMessageContainer [size = 0] [bytes = 0] 
[maxSize = 1000] [maxBytes = 131072] [topicName = 
persistent://public/default/testReferenceLeak] [numberOfBatchesSent_ = 11] 
[averageBatchSize_ = 0.909091] }]
   2022-03-16 10:03:01.754 INFO  [140180921047808] ClientConnection:1560 | 
[127.0.0.1:57130 -> 127.0.0.1:6650] Connection closed
   [  FAILED  ] ReaderTest.testReferenceLeak (86 ms)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to