raphaelauv opened a new pull request, #76497:
URL: https://github.com/apache/airflow/pull/76497
KPO reads the XCom sidecar's output over a pod exec websocket. In text mode,
the Kubernetes client decodes each websocket frame separately with
`errors="replace"`. When a large XCom value has a multi-byte UTF-8 character
that falls across two frames, both halves turn into `U+FFFD`. The JSON still
parses, so the corrupted value is pushed as the XCom and nothing fails.
This affects `KubernetesPodOperator` and `KubernetesJobOperator` whenever
`do_xcom_push=True`.
The fix :
- opens the exec stream with `binary=True` and decodes the full output once.
The new test sends `{"a": "été"}` ( summer in french ) as two stdout frames
split inside the first `é`
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes — Claude Code (Opus 5.5)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]