File tree Expand file tree Collapse file tree 3 files changed +20
-35
lines changed
test/src/com/rabbitmq/client/test/functional Expand file tree Collapse file tree 3 files changed +20
-35
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ public static TestSuite suite() {
4646 suite .addTestSuite (BindingLifecycle .class );
4747 suite .addTestSuite (Recover .class );
4848 suite .addTestSuite (Reject .class );
49- suite .addTestSuite (TransactionalRecover .class );
5049 suite .addTestSuite (Transactions .class );
5150 suite .addTestSuite (PersistentTransactions .class );
5251 suite .addTestSuite (RequeueOnConnectionClose .class );
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -331,4 +331,24 @@ public void testNonTransactedRollback()
331331 checkShutdownSignal (AMQP .PRECONDITION_FAILED , e );
332332 }
333333 }
334+
335+ public void testRedeliverAckedUncommitted ()
336+ throws IOException , InterruptedException
337+ {
338+ openChannel ();
339+ txSelect ();
340+ basicPublish ();
341+ txCommit ();
342+ basicGet ();
343+ // Ack the message but do not commit the channel. The message
344+ // should not get redelivered (see
345+ // https://bugzilla.rabbitmq.com/show_bug.cgi?id=21845#c3)
346+ basicAck ();
347+ channel .basicRecover (true );
348+
349+ assertNull ("Acked uncommitted message redelivered" ,
350+ basicGet (true ));
351+ closeChannel ();
352+ }
353+
334354}
You can’t perform that action at this time.
0 commit comments