Arnaud Cogoluègnes
1bcca0745e
Increase timeout in stream test
...
Some CI environment may need a bit more time.
2021-12-10 12:08:02 +01:00
Arnaud Cogoluègnes
4c397c54fa
Use AssertJ conditions in Java stream test suite
2021-12-10 11:52:54 +01:00
Arnaud Cogoluègnes
bd4771addb
Return appropriate response when stream leader not available
...
Fixes #3874
2021-12-10 10:58:48 +01:00
Arnaud Cogoluègnes
8f40e534ed
Bump Java test dependencies in stream test suites
2021-12-10 09:18:22 +01:00
Arnaud Cogoluègnes
17d0ba9317
Return "no offset" (19) code when stored offset is undefined
...
Fixes #3783
2021-12-01 17:59:14 +01:00
Philip Kuryloski
e4505bea3d
Use unique group names in rabbit_stream_SUITE
...
Technically duplicate names is supported by common test, but we have
seen it contribute to flakiness in our suite in practice
(cherry picked from commit 513446b6d1
)
2021-11-09 13:52:41 +01:00
Arnaud Cogoluègnes
ba5cfb1bae
Use version range for stream client Maven dependency
...
In test suite. Note a snapshot for 1.0-SNAPSHOT has been
pushed by mistake a while ago, so this one must be
excluded. It's unlikely it will be erased, as the snapshots
for the first stable version should be 1.0.0-SNAPSHOT.
2021-11-03 14:05:23 +01:00
Arnaud Cogoluègnes
c0f1e23b17
Disable stream test in mixed versions mode
...
Not worth testing in this mode, as the stream plugin
does not start without the stream_queue feature flag.
2021-10-20 15:16:45 +02:00
Arnaud Cogoluègnes
030a08fa54
Enable stream_queue flag with env variable in test suite
...
For mixed version mode, where feature flags are
not explictely enabled.
2021-10-20 15:08:05 +02:00
Arnaud Cogoluègnes
d87fa91a52
Enable stream_queue flag in test suite
...
For mixed version mode, where feature flags are
not explictely enabled.
2021-10-20 14:55:54 +02:00
Arnaud Cogoluègnes
6b9589bae4
Handle stream arguments in add_super_stream command
...
max-age, leader-locator, etc.
2021-10-11 16:50:03 +02:00
Arnaud Cogoluègnes
ecbd969834
Embed RPC call function in test
2021-10-11 16:50:02 +02:00
Arnaud Cogoluègnes
8ae60bef73
Fix group spec in test
2021-10-11 16:50:02 +02:00
Arnaud Cogoluègnes
b0bd5f8a00
Add delete_super_stream CLI command
2021-10-11 16:50:02 +02:00
Arnaud Cogoluègnes
a73b1a3d0d
Add add_super_stream CLI command
2021-10-11 16:50:01 +02:00
Arnaud Cogoluègnes
147659093f
Add functions to create/delete super stream in manager
2021-10-11 16:50:01 +02:00
Arnaud Cogoluègnes
e8d0d380a2
Bump dependencies in stream Java tests
2021-09-28 14:02:10 +02:00
Carl Hörberg
52791c677b
Support for advertising different hostname for TLS stream connections
...
Use case: Allow plain connections over one (internal IP), and TLS
connections over another IP (eg. internet routable IP). Without this
patch a cluster can only support access over one or the other IP, not
both.
(cherry picked from commit b9e6aad035
)
2021-09-28 13:47:22 +02:00
Arnaud Cogoluègnes
ab2c565b49
Merge pull request #3423 from rabbitmq/streams-sort-partitions
...
Sort stream partitions using binding parameter
2021-09-15 14:56:17 +02:00
Arnaud Cogoluègnes
faee72552a
Polish test
2021-09-15 11:56:53 +02:00
Arnaud Cogoluègnes
b140395864
Fall back to HOSTNAME(1) in stream Java test suite
...
In case the Java way fails (only on new CI).
2021-09-15 10:36:27 +02:00
Arnaud Cogoluègnes
04a0653571
Sort stream partitions using binding parameter
...
If present. To make the partition order stable.
2021-09-14 18:02:22 +02:00
Arnaud Cogoluègnes
8f207e3c5f
Make stream protocol route command return several streams
...
We expect to have 1 stream for each routing key, but
as binding can return several queues for a given key we
let that possibility open in the stream protocol.
2021-09-13 17:53:25 +02:00
Karl Nilsson
3513fa0ea8
rabbitmq_stream formatting
2021-09-09 09:45:13 +01:00
Arnaud Cogoluègnes
902fa429dd
Use awaitMatch to check global counters
...
Assertion fails on CI environment.
2021-09-01 09:51:06 +02:00
Gerhard Lazu
6c0ba03d61
Test that we start from 0 publishers & consumers
...
Pair: @kjnilsson
Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-08-31 15:29:16 +01:00
Gerhard Lazu
0ecf3d4eeb
Test stream publisher & consumer counters
...
Pair: @kjnilsson
Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
2021-08-31 15:29:16 +01:00
Arnaud Cogoluègnes
8dc024089c
Bump dependencies in Java stream tests
2021-08-31 08:32:53 +02:00
Michael Klishin
ace3ee9cd9
Bump Java stream client used in tests
2021-08-10 11:32:57 +03:00
David Ansari
863b899079
Remove TEST macro
...
since it fails with Bazel.
As discussed with @pjk25, let's set this value via application env,
make it configurable to the test, but not configurable to the user.
2021-07-19 16:42:54 +02:00
David Ansari
13b03b8530
Remove unused variable warning
2021-07-19 14:36:22 +02:00
David Ansari
3964da37b4
Close TCP connection when stream reader times out
...
Add state timeouts.
If the client takes more than 10s for a single step in the authentication
protocol, make the server close the TCP connection.
Also close the TCP connection if the server times out in state
close_sent. That's the case when the client sends an invalid command
(after successful authentication), the server requests the client to
close the connection, but the client doesn't respond anymore.
2021-07-15 19:29:24 +02:00
dcorbacho
b636ad2565
Rename protocol error counters to _total
2021-06-30 12:46:41 +02:00
dcorbacho
58e36b6417
Add specific stream protocol counters to track protocol errors
2021-06-29 12:50:00 +02:00
Philip Kuryloski
a3c97d491f
Update additional test skipping for 3.8/3.9 mixed versions
2021-06-25 11:17:46 +02:00
Philip Kuryloski
bb75157fc1
Mark deps/rabbitmq_stream:commands_SUITE as flaky
2021-06-24 12:56:20 +02:00
dcorbacho
38f474688f
Stream common library
2021-06-11 17:24:00 +02:00
Michael Klishin
0d84dc1e48
Merge pull request #3098 from rabbitmq/unexpected-socket-input
...
Close stream socket if client doesn't follow authentication protocol
2021-06-11 03:25:45 +03:00
David Ansari
fcc8dbeab6
Close client connections that don't follow authentication protocol
...
Before this commit sending garbarge data to the server stream port
caused the RabbitMQ node to eat more and more memory.
In this commit, we fix it by expecting the client to go through the
proper authentication sequence. Otherwise, the server closes the socket.
Co-authored-by: Michal Kuratczyk <mkuratczyk@pivotal.io>
2021-06-10 15:44:51 +02:00
Arnaud Cogoluègnes
dcd65572a0
Remove correlation ID from commit_offset
...
In stream protocol. commit_offset is asynchronous and does
not expect a response, so the correlation ID is not required.
2021-06-10 15:21:38 +02:00
Arnaud Cogoluègnes
7d5c8f402a
Merge pull request #3071 from rabbitmq/subscribe-props
...
Fix properties binary construction
2021-06-03 18:09:52 +02:00
Arnaud Cogoluègnes
761af0a7a0
Extract publishing IDs from batch publishing
...
In stream plugin, to e.g. send publish errors in case the stream
does not exist. Batches were not taken into account.
2021-05-31 15:35:10 +02:00
dcorbacho
65c9dae53f
Fix properties binary construction
2021-05-28 15:45:19 +02:00
Karl Nilsson
f36751aa6d
make rabbit_stream_SUITE more reliable
...
By having rabbit_stream_core cache it's incoming command internally.
2021-05-27 13:15:55 +01:00
Philip Kuryloski
f251815002
Replace rabbitmq_stream test helper with common version
...
from rabbitmq_ct_helpers
and update default app env for bazel, to match Makefile
2021-05-27 12:26:51 +02:00
Arnaud Cogoluègnes
2ab5cb22ca
Expose TLS info for stream connections (CLI, REST API)
2021-05-27 10:43:33 +02:00
Arnaud Cogoluègnes
69ad6969e6
Add stream.advertised_tls_port setting
2021-05-26 11:08:43 +02:00
dcorbacho
05bd6dd838
Test multiple chunks
2021-05-25 14:25:38 +02:00
Karl Nilsson
4a9d8115f8
rebase fixes
...
post rebase test fixes
Make socket initialisation more lenient
correct return types
fix
remove commented code
2021-05-24 15:53:10 +01:00
dcorbacho
3fefa8e8d4
Use ssl option when initialising data reader
2021-05-21 17:13:15 +01:00