-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when logging slow process in aiokafka with python 3.9 #153
Comments
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
The issue seems to be there for a while: |
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 |
Fixes crash in #153 Co-authored-by: Vikram Patki <[email protected]>
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
The text was updated successfully, but these errors were encountered: