-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
V1Pod no longer pickleable with some logging configs #1304
Comments
This behaviour came about when b4d11b0 introduced |
/assign @palnabarun |
It looks to me that the change in OpenAPI Generator brought in regression to older Python versions. I can reproduce the above error with Python 3.6.10 but not with Python 3.7.7 or Python 3.8.6. IMHO, it needs further investigation as to why this may be happening.
Python 3.6.10
Python 3.7.7
Python 3.8.6
I am not very sure if two logger objects are creating the issue since the bug does not surface in Python 3.7 and Python 3.8. @jedcunningham @ashb -- is it a hard requirement to use Python 3.6 considering Python 3.6 went into security patch only part of it's lifecycle? In that case, the solution needs to be found in the OpenAPI Generator for this regression. |
Afraid so - as long as 3.6 is not EoL Airflow supports it. |
Python 3.6.8
Python 3.7.2
(no problem) |
This could be addressed by adding I think not logging the logger objects make sense. I'll try and find a time to attempt a pr for this. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
not stale |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle rotten You abusive bot. Auto closing issues is terrible. |
@ashb -- please give the bot some slack. :) It is trying to help to clear out inactive issues. /lifecycle frozen |
/unassign (since I'm not working on this and @ashb mentioned that they will be looking at a patch) |
I'm not quite sure how to fix this inside this module, particular as the class I might want to edit says "Do Not edit -- autogenreted". The fix I have added to Airflow to "workaround" this is to backport the pickle support to Logger objects from 3.7 via the |
And 3.6 is now EOL. |
What happened (please include outputs or screenshots):
Starting with
12.0.0
, V1Pod now is no longer pickleable depending on how logging is configured.What you expected to happen:
V1Pod is pickleable.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
I believe it is unrelated, but this was initially found in apache/airflow, as it pickles V1Pods.
Environment:
The text was updated successfully, but these errors were encountered: