Open PrometheusTheHarbinger opened 2 years ago
Could you please prepare two cProfile
files, on good version and broken?
Like this python -m cProfile -o profile-$variant.cprof script.py
I would gladly do so, but broken one never finishes. I have to kill it specifically with SIGINT. In some cases, no messages are sent and it exits with code zero. But this is something I can't reproduce, it just happens sometimes.
I can attach profiling of 6.8.2, which works alright, if that can be of any help. Or I can also profile 7.1.2, but I'll have to kill it mid-way.
I got lucky and catched the case where no messages were sent on profiling. Link, I also noticed that in the case where I kill the script, some messages are delivered pretty fast, usually around eleven of them, and then they just stop.
I was testing performance of a side project using aio-pika and encountered this bug. Previously when I sent a lot of messages one after another it worked fine. However, after switching to 7.1.2 messages either were sent very slowly or only part of them reached RabbitMQ. I wrote a script to exclude influence of that project's code and the problem persists. It is enough just to switch versions of aio-pika to reproduce this behavior. Script works just fine on 6.8.2, and fails on 7.0.0b2, 7.0.0, 7.1.2. Did not check on other releases.