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
secrets_masker RecursionError with nested TriggerDagRunOperators #16473
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
We should implement some kind of cycle detection in the redaction logic. |
Maybe simple max depth of recursion. Somewhat arbitrary but trying to solve it 'properly' might be first - unnecessary and secondly - quite a bit too costly for the logging case. Setting like 2 max depth of recursion should cover the most common cases (dict of lists for example). |
(however this particular problem should be fixed by just merged #16424 so it is more of a 'in case' protection. UPDATE: or maybe not - seems that it is iterating over tuple that causes this particular problem. |
any idea for temporary workaround waiting for 2.1.1? |
Disable debug logging. |
Fix apache#16473 (cherry picked from commit 7453d3e) (cherry picked from commit 6a5e676)
Fix apache#16473 (cherry picked from commit 7453d3e) (cherry picked from commit 6a5e676) (cherry picked from commit 5398eb5)
Fix apache#16473 (cherry picked from commit 7453d3e) (cherry picked from commit 6a5e676) (cherry picked from commit 5398eb5) (cherry picked from commit de563e3)
Apache Airflow version: 2.1.0
Environment: tested on Windows docker-compose envirnoment and on k8s (both with celery executor).
What happened:
What you expected to happen:
I think new masker is not able to handle TriggerDagRunOperator running dag with TriggerDagRunOperator
How to reproduce it:
Anything else we need to know:
How often does this problem occur? Every time
I have tried hide_sensitive_var_conn_fields=False but error still occurs.
The text was updated successfully, but these errors were encountered: