Skip to content

Commit

Permalink
Fix clear transaction buffer snapshot flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
Demogorgon314 committed Mar 31, 2022
1 parent 902ed07 commit a62fadd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ private void testTopicTransactionBufferDeleteAbort() throws Exception {
public void clearTransactionBufferSnapshotTest() throws Exception {
String topic = NAMESPACE1 + "/tb-snapshot-delete-" + RandomUtils.nextInt();

@Cleanup
Producer<byte[]> producer = pulsarClient
.newProducer()
.topic(topic)
Expand All @@ -404,6 +403,7 @@ public void clearTransactionBufferSnapshotTest() throws Exception {
producer.newMessage(txn).value("test".getBytes()).sendAsync();
producer.newMessage(txn).value("test".getBytes()).sendAsync();
txn.commit().get();
producer.close();

// take snapshot
PersistentTopic originalTopic = (PersistentTopic) getPulsarServiceList().get(0)
Expand Down

0 comments on commit a62fadd

Please sign in to comment.