Files
nats-server/server
Ivan Kozlovic a744cb8cd2 Fixed delivery of retained messages after transfer.
I was running a manual test moving from dev to this branch and
noticed that the consumer would receive only 1 message of the 10
messages sent as retained. So I modified the test to verify that
we receive them all and we did not.

The reason was that after the transfer we need to refresh the state
of the stream (stream info) since we attempt to load all messages
based on the state's sequences.

I have also modified a bit the code to update the MaxMsgsPer once
all messages have been transferred.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2023-06-01 10:00:18 +01:00
..
2023-02-10 10:29:26 +00:00
2023-01-27 08:35:59 -08:00
2022-07-05 09:33:12 +01:00
2023-05-16 14:15:22 -06:00
2022-09-08 11:28:23 -06:00
2023-05-17 16:48:47 -07:00
2022-07-05 09:28:00 +01:00
2023-04-07 05:32:05 -07:00
2023-05-15 15:44:38 -07:00
2023-04-26 18:42:31 -07:00
2022-11-14 08:28:19 -08:00
2023-04-03 09:32:28 -06:00
2023-05-12 12:38:20 -07:00
2023-05-16 14:01:57 -07:00
2023-05-15 15:44:38 -07:00
2023-05-17 16:48:47 -07:00
2023-05-15 15:44:38 -07:00
2023-02-10 10:29:26 +00:00
2023-02-10 10:29:26 +00:00
2023-05-15 15:44:38 -07:00
2023-05-09 20:11:53 -07:00
2023-04-12 11:48:22 -07:00
2023-04-12 11:48:22 -07:00
2023-05-17 19:27:58 -07:00
2023-05-19 12:16:24 -06:00
2023-04-29 19:52:57 -07:00
2023-01-17 17:40:39 -08:00
2022-12-27 09:41:39 +01:00
2023-02-10 10:29:26 +00:00
2022-07-05 09:33:12 +01:00
2022-07-05 09:28:00 +01:00
2023-05-03 19:51:24 -07:00
2022-03-25 12:11:55 -06:00

Tests

Tests that run on Travis have been split into jobs that run in their own VM in parallel. This reduces the overall running time but also is allowing recycling of a job when we get a flapper as opposed to have to recycle the whole test suite.

JetStream Tests

For JetStream tests, we need to observe a naming convention so that no tests are omitted when running on Travis.

The script runTestsOnTravis.sh will run a given job based on the definition found in ".travis.yml".

As for the naming convention:

  • All JetStream tests name should start with TestJetStream
  • Cluster tests should go into jetstream_cluster_test.go and start with TestJetStreamCluster
  • Super-cluster tests should go into jetstream_super_cluster_test.go and start with TestJetStreamSuperCluster

Not following this convention means that some tests may not be executed on Travis.