Skip to content

Commit db65727

Browse files
author
Matthew Sackman
committed
Rip out ancient and erroneous calls to persister snapshot. Interestingly, the failing erl_call seemed to provide a sufficient delay to allow the restarting broker to come back up.
1 parent 564b2b5 commit db65727

File tree

7 files changed

+4
-12
lines changed

7 files changed

+4
-12
lines changed

test/src/com/rabbitmq/client/test/server/PersisterRestart1.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ public void testRestart()
9595
{
9696
declareDurableQueue(Q);
9797
exercisePersister();
98-
forceSnapshot();
9998
closeChannel();
10099
openChannel();
101100
exercisePersister();

test/src/com/rabbitmq/client/test/server/PersisterRestart2.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public void testRestart()
5353
declareDurableQueue(Q2);
5454
exercisePersister(Q1);
5555
exercisePersister(Q2);
56-
forceSnapshot();
5756
// Those will be in the incremental snapshot then
5857
exercisePersister(Q1);
5958
exercisePersister(Q2);

test/src/com/rabbitmq/client/test/server/PersisterRestart3.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public void testRestart()
5454
channel.txSelect();
5555
exercisePersister(Q1);
5656
exercisePersister(Q2);
57-
forceSnapshot();
5857
// removing messages which are in the snapshot
5958
channel.txRollback();
6059
// Those will be in the incremental snapshot then

test/src/com/rabbitmq/client/test/server/PersisterRestart4.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ public void testRestart()
5858
exercisePersister();
5959
channel.txCommit();
6060
exercisePersister();
61-
forceSnapshot();
6261
// delivering messages which are in the snapshot
6362
channel.txCommit();
6463
// Those will be in the incremental snapshot then

test/src/com/rabbitmq/client/test/server/PersisterRestart5.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ public void testRestart()
5858
exercisePersister();
5959
channel.txCommit();
6060
exercisePersister();
61-
forceSnapshot();
6261
// Delivering messages which are in the snapshot
6362
channel.txCommit();
6463
// Those will be in the incremental snapshot then

test/src/com/rabbitmq/client/test/server/PersisterRestart6.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ public void testRestart() throws IOException, InterruptedException {
1111
basicPublishPersistent("a".getBytes(), q);
1212
basicPublishPersistent("b".getBytes(), q);
1313
basicPublishPersistent("c".getBytes(), q);
14-
forceSnapshot();
1514
restart();
1615
assertTrue(new String(basicGet(q).getBody()).equals("a"));
17-
forceSnapshot();
1816
restart();
1917
restart();
2018
assertTrue(new String(basicGet(q).getBody()).equals("b"));

test/src/com/rabbitmq/client/test/server/RestartBase.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ protected void restart()
4444
{
4545
tearDown();
4646
Host.executeCommand("cd ../rabbitmq-test; make restart-app");
47+
try {
48+
Thread.sleep(3000);
49+
} catch (InterruptedException e) {
50+
}
4751
setUp();
4852
}
4953

50-
protected void forceSnapshot()
51-
throws IOException, InterruptedException
52-
{
53-
Host.executeCommand("cd ../rabbitmq-test; make force-snapshot");
54-
}
5554
}

0 commit comments

Comments
 (0)