Nifi Kafka Cluster Test Cases
Topology
Due to environment limitation, the test environment are two Linux servers creating an Ambari cluster with,
- A zookeeper cluster shared by nifi and Kafka cluster,
- A nifi cluster with two nodes,
- A Kafka cluster
Message Sequencing Tests
Message Sequencing Test – topic without partition
Test0, Basic scenario, Subscribe & Process Kafka messages from Nifi Cluster (Single Threading)
- Pre-Step, put sequentially 10000 messages in TopicA and 10000 messages in TopicB
- both topic with 2 replicas, no partition
- messages are putting into the queue with sequence, (like Msg1, Msg2…)
- Test Step, Start Nifi Flows
- one flow subscribe TopicA and put subscribed message into TopicA.D
- one flow subscribe TopicB and put subscribed message into TopicB.D
- all nifi processors running on Nifi cluster and configured as “Concurrent Tasks =1” and Execution = "Primary node"
- subscribe processor is set to consume from “earliest” and with unique client Id.
- After the step, read messages from TopicA.D and TopicB.D, verify that messages are in sequence.
Conclusion: messages still remained the sequence, although the Nifi have 2 instances.