Closed taybin closed 3 years ago
Actually it happens with python 3.8 as well. Downgrading back to faust-streaming 0.6.4 to see if that makes it go away. It didn't show up until I switched to 0.6.5.
https://docs.python.org/3/library/logging.html#logging.Logger.debug
There are four keyword arguments in kwargs which are inspected: exc_info, stack_info, stacklevel and extra.
The issue seems to be there for a while: https://github.com/faust-streaming/faust/blame/master/faust/transport/drivers/aiokafka.py#L872-L877
Actually it happens with python 3.8 as well. Downgrading back to faust-streaming 0.6.4 to see if that makes it go away. It didn't show up until I switched to 0.6.5.
Hey @taybin Did this solve your issue. Im facing the same issue when running it against Python 3.6 as well.
@jerynmathew It did, although I don't consider it a true "fix". At least, it hasn't reoccurred with 0.6.4.
Also hitting this on 0.6.5, and it seems reverting to 0.6.4 made it disappear.
Such an irony when a warning for slow processing makes the whole process die making it even slower.
As noted above, the bug seems to have been there for quite some while, but it's very interesting that 0.6.5 seems to trigger it - some kind of performance regression?
@forsberg I see a couple possibilities. 0.6.5 allows orjson>=3.0, so there could be a slowdown there. It also adds replication of the leader topic, but we don't write to that topic so I'm not sure how that would cause an actual slowdown.
I'll do a test with 0.6.5, but with an older version of orjson and see if that still replicates the problem.
@taybin As far as I know, I'm not doing any json serialization/deserialization in my code, so orjson seems an unlikely suspect in my case. I have a table, but using avro for serde of table values.
Leader topic is disabled in my code as I have no use for it.
I had the same problem with faust 0.6.5 and python 3.8
This issue has been fixed by #156, although there seems to be a performance regression or at least detection of a performance issue is either switched back on or the threshold was lowered somehow.
After upgrading to python 3.9, I started getting these crashes in the worker. They appear to happen when trying to log a warning about a slow commit to Kafka.
Checklist
master
branch of Faust.Full traceback
Versions