jonstacks opened a new pull request #10942: URL: https://github.com/apache/airflow/pull/10942
closes: #10292 When using the KubernetesExecutor, if the generated pod name is longer than 63 bytes, the host name inside the pod will be truncated to 63 bytes to comply with the DNS label RFC. This truncated pod name is saved in the database as the `ti.hostname`. Currently, when using the KubernetesExecutor, it assumes a pod with a `name==ti.hostname` exists and tries fetching the logs for it. In the case with long pod names, it fails. This patch, uses the Kubernetes client to resolve the full name of the pod from the partial host name in the database if the `ti.hostname` is long enough that it *may* be truncated and there is only 1 match for what is assumed to be a partial hostname. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
