Closed Gsantomaggio closed 1 year ago
Patch coverage: 66.66%
and project coverage change: -0.08%
:warning:
Comparison is base (
6bb73ea
) 92.93% compared to head (d6577ec
) 92.86%. Report is 1 commits behind head on main.:exclamation: Current head d6577ec differs from pull request most recent head a04e8a2. Consider uploading reports for the commit a04e8a2 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@aeb-dev
Do you have a chance to test the PR?
it adds more debug information to understand what's going on.
Please enable the logs in debug mode. Thank you
Sorry, I could not allocate time yet to test it. I will let you know as soon as possible
@aeb-dev Ok no problem. I tried to reproduce the issue with the configuration you provided and it works.
conf:
var config = new StreamSystemConfig()
{
UserName = "test",
Password = "test",
VirtualHost = "test",
AddressResolver = new AddressResolver(new DnsEndPoint("localhost", 30552)),
Endpoints = new List<EndPoint> { new DnsEndPoint("localhost", 30552) },
};
var system = await StreamSystem.Create(config, streamLogger).ConfigureAwait(false);
Logs:
dbug: RabbitMQ.Stream.Client.StreamSystem[0]
Server properties: [cluster_name, main-rabbitmq], [copyright, Copyright (c) 2007-2023 VMware, Inc. or its affiliates.], [information, Licensed under the MPL 2.0. Website: https://rabbitmq.com], [platform, Erlang/OTP 26.0.2], [product, RabbitMQ], [version, 3.13.0-beta.6]
dbug: RabbitMQ.Stream.Client.StreamSystem[0]
Sasl mechanism: AMQPLAIN, PLAIN
dbug: RabbitMQ.Stream.Client.StreamSystem[0]
Open: ConnectionProperties: [advertised_port, 5552], [advertised_host, main-rabbitmq-server-0.main-rabbitmq-nodes.default]
dbug: RabbitMQ.Stream.Client.StreamSystem[0]
Extracted BrokerVersion version: 3.13.0
dbug: RabbitMQ.Stream.Client.StreamSystem[0]
Client connected to Unspecified/localhost:30552
info: Filter.FilterConsumer[0]
I'll be looking forward to your feedback since I can't reproduce it.
I get this log: Extracted BrokerVersion version: 3.13.0
Okay, I found the problem.
Before testing for consumer filters I had another rabbitmq installed so I had updated that to test it. So after update, the new rabbitmq was using the old data of old rabbitmq.
You can produce the error with the following approach but I think this might not be a client problem:
First deploy rabbitmq with:
image: docker.io/rabbitmq:3.11.5
then update
image: docker.io/rabbitmq:3.13-rc-management
Then re-run the code from the issue.
Note: If I do a clean install everything works fine
You have to enable the feature flags. Coming from an old version, the filter is disabled.
After enabling, everything works as expected thanks
I added the feature flag info in case of problem. That would help in the same situation
Releated to https://github.com/rabbitmq/rabbitmq-stream-dotnet-client/issues/299