Files
nats-server/server
Ivan Kozlovic 2f48ad5150 Fixed subscription close
I noticed that TestNoRaceRoutedQueueAutoUnsubscribe started to
fail a lot on Travis. Running locally I could see a 45 to 50%
failures. After investigation I realized that the issue was that
we have wrongly re-used `subscription.nm` and set to -1 on unsubscribe
however, I believe that it was possible that when subscription was
closed, the server may have already picked that consumer for a delivery
which then causes nm==-1 to be bumped to 0, which was wrong.
Commenting out the subscription.close() that sets nm to -1, I could
not get the test to fail on macOS but would still get 7% failure on
Linux VM. Adding the check to see if sub is closed in deliverMsg()
completely erase the failures, even on Linux VM.

We could still use `nm` set to -1 but check on deliverMsg(), the
same way I use the closed int32 now.

Fixed some flappers.
Updated .travis.yml to failfast if one of the command in the
`script` fails. User `set -e` and `set +e` as recommended in
https://github.com/travis-ci/travis-ci/issues/1066

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2019-08-20 14:39:23 -06:00
..
2019-08-13 19:59:28 -07:00
2019-05-06 15:41:38 -07:00
2019-08-20 14:39:23 -06:00
2019-08-13 19:59:28 -07:00
2019-08-20 14:39:23 -06:00
2019-05-10 15:11:30 -07:00
2019-08-13 19:59:28 -07:00
2019-07-11 17:37:07 -07:00
2019-08-20 14:39:23 -06:00
2019-08-14 23:52:49 -07:00
2019-05-06 15:41:38 -07:00
2018-12-06 15:09:14 -08:00
2019-08-20 14:39:23 -06:00
2019-08-13 19:59:28 -07:00
2019-02-04 17:07:49 -08:00
2019-05-10 15:11:30 -07:00
2019-05-29 13:19:58 -07:00
2019-08-06 18:43:06 -07:00
2018-10-06 14:06:14 -07:00
2018-10-06 14:04:14 -07:00
2018-03-15 22:31:07 -07:00
2018-03-15 22:31:07 -07:00
2019-01-18 10:54:04 +08:00