This repo is test cases for pulsar, you may run this test cases for survey purpose. Main code is copied from apache/pulsar.
- clone this repo
git clone https://github.com/xiaozongyang/pulsar-tests - build runnable jar
cd pulsar-tests && ./gradlew fatJar - run test command which produces 10k messages with 100B body filled with 0-9
java -jar build/libs/pulsar-tests-0.0.1-all.jar produce -t test-topic
produce: produce messages to pulsar, delayed message supportedproduce-alternately: produce two kinds of messages, e.g.a, b, a, b, a,b, ...consume: consume messages from specified topic,readCompactedoption supportedack:acknowledgeinstead ofconsumemessage by message id fields, i.e.,ledgerId,entryIdandpatitionIndex