I think it's caused by the ClientTest.testConnectTimeout. The resources seem not cleaned well in this test so it affected the tests later. Could you try the following command that ignores this test?
```bash ./pulsar-tests --gtest_filter='-ClientTest.testConnectTimeout' ``` If the rest of the tests pass, you can open an issue to track this flaky test. And I see the local host is "198.18.0.1", did you use any proxy when running the tests? > Is it possible to install the CPP client without building from the source > code? Currently there is no "true" way to avoid building from source. You can edit the libpulsar ruby file to install the 3.4.0-candidate-2 (See https://github.com/Homebrew/homebrew-core/blob/master/CONTRIBUTING.md#to-contribute-a-fix-to-the-foo-formula) but it still builds from source. The only advantage is that all 3rd party dependencies are guaranteed to be installed from homebrew.. Maybe we can add a workflow to upload the pre-built libraries for macOS in future. ---- BTW, I ran the `pulsar-tests` locally and it failed with two tests: ``` [ FAILED ] 2 tests, listed below: [ FAILED ] CustomLoggerTest.testCustomLogger [ FAILED ] LookupServiceTest.testMultiAddresses ``` These tests seem flaky so I reran them individually by: ``` ./tests/pulsar-tests --gtest_filter='CustomLoggerTest.*' ./tests/pulsar-tests --gtest_filter='*testMultiAddresses' ``` `LookupServiceTest.testMultiAddresses` still failed. I will take a look soon. Thanks, Yunze On Wed, Nov 8, 2023 at 11:07 PM PengHui Li <peng...@apache.org> wrote: > > Hi Yunze, > > I got an error when running the pulsar-tests (I tried multiple times, same > error) > > ``` > 2023-11-08 22:56:43.676 INFO [0x16db63000] ProducerImpl:216 | > [persistent://public/default/testPartitionedConsumerUnexpectedAckTimeout1699455403-partition-1, > ] Created producer on broker [[::1]:58479 -> [::1]:6650] > 2023-11-08 22:56:43.693 INFO [0x1f086e080] ProducerImpl:791 | > [persistent://public/default/testPartitionedConsumerUnexpectedAckTimeout1699455403-partition-0, > standalone-0-635] Closing producer for topic > persistent://public/default/testPartitionedConsumerUnexpectedAckTimeout1699455403-partition-0 > 2023-11-08 22:56:43.693 INFO [0x1f086e080] ProducerImpl:791 | > [persistent://public/default/testPartitionedConsumerUnexpectedAckTimeout1699455403-partition-1, > standalone-0-636] Closing producer for topic > persistent://public/default/testPartitionedConsumerUnexpectedAckTimeout1699455403-partition-1 > 2023-11-08 22:56:43.693 INFO [0x16db63000] ProducerImpl:755 | > [persistent://public/default/testPartitionedConsumerUnexpectedAckTimeout1699455403-partition-0, > standalone-0-635] Closed producer 0 > 2023-11-08 22:56:43.693 INFO [0x16db63000] ProducerImpl:755 | > [persistent://public/default/testPartitionedConsumerUnexpectedAckTimeout1699455403-partition-1, > standalone-0-636] Closed producer 1 > 2023-11-08 22:56:44.773 WARN [0x16ba07000] ConnectionPool:91 | Deleting > stale connection from pool for pulsar://192.0.2.1:1234-0 use_count: 1 @ > 0x13000ea00 > 2023-11-08 22:56:44.773 INFO [0x16ba07000] ClientConnection:268 | [ > 198.18.0.1:58467 -> 192.0.2.1:1234] Destroyed connection to pulsar:// > 192.0.2.1:1234 > 2023-11-08 22:56:44.773 INFO [0x16ba07000] ClientConnection:188 | [<none> > -> pulsar://192.0.2.1:1234] Create ClientConnection, timeout=1000 > 2023-11-08 22:56:44.773 INFO [0x16ba07000] ConnectionPool:109 | Created > connection for pulsar://192.0.2.1:1234 > 2023-11-08 22:56:44.775 INFO [0x16ba07000] ClientConnection:398 | [ > 198.18.0.1:58482 -> 192.0.2.1:1234] Connected to broker > 2023-11-08 22:56:45.774 ERROR [0x16ba07000] ClientConnection:612 | [ > 198.18.0.1:58482 -> 192.0.2.1:1234] Connection was not established in 1000 > ms, close the socket > 2023-11-08 22:56:45.775 INFO [0x16ba07000] ClientConnection:1319 | [ > 198.18.0.1:58482 -> 192.0.2.1:1234] Connection disconnected (refCnt: 2) > 2023-11-08 22:56:45.775 ERROR [0x16ba07000] ClientImpl:199 | Error > Checking/Getting Partition Metadata while creating producer on > persistent://public/default/test-connect-timeout -- TimeOut > zsh: segmentation fault ./pulsar-tests > ``` > > Reproduce steps: > > - Build from downloaded source code (passed) > - Start pulsar service (./pulsar-test-service-start.sh) > - Run the test(./pulsar-tests) > > Then, I got the above errors after a few minutes. > I'm not sure it's just a test issue or not. > > One more question: > > Is it possible to install the CPP client without building from the source > code? > From > https://dist.apache.org/repos/dist/dev/pulsar/pulsar-client-cpp/pulsar-client-cpp-3.4.0-candidate-2/ > I can find the package for Linux and Windows. But no package for macOS. > > Regards, > Penghui > > On Wed, Nov 8, 2023 at 10:45 PM Yubiao Feng > <yubiao.f...@streamnative.io.invalid> wrote: > > > Hi all > > > > Sorry, I'll send another email explaining what tests were done. > > > > Please ignore the previous email. > > > > Thanks > > Yubiao Feng > > > > > > On Wed, Nov 8, 2023 at 11:48 AM Yubiao Feng <yubiao.f...@streamnative.io> > > wrote: > > > > > +1 (no-binding) > > > > > > Thanks > > > Yubiao Feng > > > > > > On Tue, Nov 7, 2023 at 3:03 PM Yunze Xu <x...@apache.org> wrote: > > > > > >> This is the second release candidate for Apache Pulsar Client C++, > > >> version 3.4.0. > > >> > > >> It fixes the following issues: > > >> https://github.com/apache/pulsar-client-cpp/milestone/5?closed=1 > > >> > > >> *** Please download, test and vote on this release. This vote will stay > > >> open > > >> for at least 72 hours *** > > >> > > >> Note that we are voting upon the source (tag), binaries are provided for > > >> convenience. > > >> > > >> Source and binary files: > > >> > > >> > > https://dist.apache.org/repos/dist/dev/pulsar/pulsar-client-cpp/pulsar-client-cpp-3.4.0-candidate-2/ > > >> > > >> SHA-512 checksums: > > >> > > >> > > >> > > 10517590a2e4296d6767a044e58dd32c79e404a5136cf41126f4cb2416ed0ef8fb1ad7aa7da54c37c12ed71b05a527ed08bfac9d50d3550fa5d475c1e8c00950 > > >> apache-pulsar-client-cpp-3.4.0.tar.gz > > >> > > >> > > >> The tag to be voted upon: > > >> v3.4.0-candidate-2 (f337eff7caae93730ec1260810655cbb5a345e70) > > >> > > >> > > https://github.com/apache/pulsar-client-cpp/releases/tag/v3.4.0-candidate-2 > > >> > > >> Pulsar's KEYS file containing PGP keys you use to sign the release: > > >> https://downloads.apache.org/pulsar/KEYS > > >> > > >> Please download the source package, and follow the README to compile and > > >> test. > > >> > > > > >