I have built the cpp library successfully under Ubuntu 18.04.  I am trying to run the test suite:

./pulsar-test-service-start.sh
main/tests

but it fails here:


[       OK ] BasicEndToEndTest.testHandlerReconnectionLogic (63567 ms)
[ RUN      ] BasicEndToEndTest.testRSAEncryption
2019-11-03 21:57:27.048 INFO  ConnectionPool:85 | Created connection for pulsar://localhost:6650 2019-11-03 21:57:27.049 INFO  ClientConnection:324 | [127.0.0.1:59872 -> 127.0.0.1:6650] Connected to broker 2019-11-03 21:57:27.053 INFO  BatchMessageContainer:43 | { BatchContainer [size = 0] [batchSizeInBytes_ = 0] [maxAllowedMessageBatchSizeInBytes_ = 131072] [maxAllowedNumMessagesInBatch_ = 1000] [topicName = persistent://public/default/my-rsaenctopic] [producerName_ = ] [batchSizeInBytes_ = 0] [numberOfBatchesSent = 0] [averageBatchSize = 0]} BatchMessageContainer constructed 2019-11-03 21:57:27.053 ERROR MessageCrypto:61 | [persistent://public/default/my-rsaenctopic, , 0] Failed to load public key 2019-11-03 21:57:27.053 ERROR MessageCrypto:183 | [persistent://public/default/my-rsaenctopic, , 0]Failed to load public key client-rsa.pem 2019-11-03 21:57:27.053 INFO  HandlerBase:53 | [persistent://public/default/my-rsaenctopic, ] Getting connection from pool 2019-11-03 21:57:27.054 INFO  ProducerImpl:151 | [persistent://public/default/my-rsaenctopic, ] Created producer on broker [127.0.0.1:59872 -> 127.0.0.1:6650] 2019-11-03 21:57:27.054 INFO  Client:88 | Subscribing on Topic :my-rsaenctopic 2019-11-03 21:57:27.055 INFO  HandlerBase:53 | [persistent://public/default/my-rsaenctopic, my-sub-name, 0] Getting connection from pool 2019-11-03 21:57:27.056 INFO  ConsumerImpl:170 | [persistent://public/default/my-rsaenctopic, my-sub-name, 0] Created consumer on broker [127.0.0.1:59872 -> 127.0.0.1:6650] 2019-11-03 21:57:27.057 INFO  BasicEndToEndTest:1277 | Publishing 1000 messages synchronously 2019-11-03 21:57:27.057 ERROR MessageCrypto:61 | [persistent://public/default/my-rsaenctopic, , 0] Failed to load public key 2019-11-03 21:57:27.057 ERROR MessageCrypto:183 | [persistent://public/default/my-rsaenctopic, , 0]Failed to load public key client-rsa.pem
Segmentation fault (core dumped)

I don't have a client-rsa.pem in the tree.  I do have these:

$ find /tmp/pulsar-test-data -name '*.pem'
/tmp/pulsar-test-data/certs/client-cert.pem
/tmp/pulsar-test-data/certs/cacert.pem
/tmp/pulsar-test-data/certs/broker-cert.pem
/tmp/pulsar-test-data/certs/broker-key.pem
/tmp/pulsar-test-data/certs/client-key.pem

$ find /tmp/pulsar-test-data -name '*.key'
/tmp/pulsar-test-data/tokens/secret.key

I thought perhaps client-rsa.pem might be generated as a side-effect of running the Java test suite - but I have run that and still don't have it. To be more accurate: I ran as much as I could with "mvn test --fail-at-end -e", as a couple of tests are failing.

$ mvn test --fail-at-end -e
...
[INFO] Apache Pulsar :: Tiered Storage :: JCloud .......... FAILURE [  3.893 s]
...
[INFO] Pulsar Client Java ................................. FAILURE [ 11.926 s]
... (plus a bunch of SKIPPED tests)

Clues please?

Thanks,

Brian Candler.

Reply via email to