RobertIndie commented on issue #14848: URL: https://github.com/apache/pulsar/issues/14848#issuecomment-1231353826
This issue still exists when I use the latest master branch code: https://github.com/apache/pulsar/runs/8086575635?check_suite_focus=true#step:11:256 ``` [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from ClientTest [ RUN ] ClientTest.testReferenceCount 2022-08-30 08:17:10.954 INFO [140089060101824] ClientConnection:189 | [<none> -> pulsar://localhost:6650] Create ClientConnection, timeout=10000 2022-08-30 08:17:10.954 INFO [140089060101824] ConnectionPool:96 | Created connection for pulsar://localhost:6650 2022-08-30 08:17:10.956 INFO [140089056999168] ClientConnection:375 | [127.0.0.1:41008 -> 127.0.0.1:6650] Connected to broker 2022-08-30 08:17:10.957 INFO [140089056999168] HandlerBase:61 | [persistent://public/default/client-test-reference-count-1661847430, ] Getting connection from pool 2022-08-30 08:17:10.960 INFO [140089056999168] ProducerImpl:186 | [persistent://public/default/client-test-reference-count-1661847430, ] Created producer on broker [127.0.0.1:41008 -> 127.0.0.1:6650] 2022-08-30 08:17:10.960 INFO [140089060101824] ClientTest:210 | Reference count of the producer: 7 2022-08-30 08:17:10.960 INFO [140089060101824] Client:88 | Subscribing on Topic :client-test-reference-count-1661847430 2022-08-30 08:17:10.961 INFO [140089056999168] HandlerBase:61 | [persistent://public/default/client-test-reference-count-1661847430, my-sub, 0] Getting connection from pool 2022-08-30 08:17:10.962 INFO [140089056999168] ConsumerImpl:220 | [persistent://public/default/client-test-reference-count-1661847430, my-sub, 0] Created consumer on broker [127.0.0.1:41008 -> 127.0.0.1:6650] 2022-08-30 08:17:10.962 INFO [140089060101824] ClientTest:216 | Reference count of the consumer: 7 2022-08-30 08:17:10.962 INFO [140089056999168] HandlerBase:61 | [persistent://public/default/client-test-reference-count-1661847430-reader, reader-a635288687, 1] Getting connection from pool 2022-08-30 08:17:10.964 INFO [140089056999168] ConsumerImpl:220 | [persistent://public/default/client-test-reference-count-1661847430-reader, reader-a635288687, 1] Created consumer on broker [127.0.0.1:41008 -> 127.0.0.1:6650] 2022-08-30 08:17:10.964 INFO [140089060101824] ClientTest:224 | Reference count of the reader's underlying consumer: 3 2022-08-30 08:17:10.964 INFO [140089060101824] ClientTest:228 | Reference count of the reader: 4 2022-08-30 08:17:10.964 WARN [140089060101824] ConsumerImpl:116 | [persistent://public/default/client-test-reference-count-1661847430, my-sub, 0] Destroyed consumer which was not properly closed 2022-08-30 08:17:10.964 INFO [140089060101824] ConsumerImpl:124 | [persistent://public/default/client-test-reference-count-1661847430, my-sub, 0] Closed consumer for race condition: 0 2022-08-30 08:17:10.964 INFO [140089060101824] ProducerImpl:619 | Producer - [persistent://public/default/client-test-reference-count-1661847430, standalone-0-213] , [batchMessageContainer = { BatchMessageContainer [size = 0] [bytes = 0] [maxSize = 1000] [maxBytes = 131072] [topicName = persistent://public/default/client-test-reference-count-1661847430] [numberOfBatchesSent_ = 0] [averageBatchSize_ = 0] }] 2022-08-30 08:17:10.964 WARN [140089060101824] ProducerImpl:114 | [persistent://public/default/client-test-reference-count-1661847430, standalone-0-213] Destroyed producer which was not properly closed /pulsar/pulsar-client-cpp/tests/ClientTest.cc:[235](https://github.com/apache/pulsar/runs/8086575635?check_suite_focus=true#step:11:236): Failure Expected equality of these values: consumers[1].use_count() Which is: 3 0 [ FAILED ] ClientTest.testReferenceCount (10 ms) [----------] 1 test from ClientTest (10 ms total) [----------] Global test environment tear-down [==========] 1 test from 1 test suite ran. (10 ms total) [ PASSED ] 0 tests. [ FAILED ] 1 test, listed below: [ FAILED ] ClientTest.testReferenceCount ``` -- 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]
