You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ondrej Holecek (JIRA)" <ji...@apache.org> on 2019/04/25 14:28:00 UTC

[jira] [Created] (AIRFLOW-4412) PodLauncher drops log lines printed by the pod

Ondrej Holecek created AIRFLOW-4412:
---------------------------------------

             Summary: PodLauncher drops log lines printed by the pod
                 Key: AIRFLOW-4412
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4412
             Project: Apache Airflow
          Issue Type: Bug
          Components: kubernetes
    Affects Versions: 1.10.3
            Reporter: Ondrej Holecek


When PodLauncher starts a pod, it is checking the pod status by
pooling read_pod() method in 1s intervals until the pod state != QUEUE.
 After the pod starts, it tails the pod logs until the pod finishes. Due
 to the 1s pooling interval, there could be up to 1s delay between the
 real pod startup and the log tailing, and due to "tail_lines=10" all the
 lines above those last 10 logged within the 1s interval would be lost.
 
The lines read from the stream returned by read_namespaced_pod_log()
 should be converted to string and right-stripped, since they contain
 '\n' character at the end.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)