rahulgoyal2987 opened a new issue, #23396:
URL: https://github.com/apache/airflow/issues/23396

   ### Apache Airflow version
   
   2.3.0 (latest released)
   
   ### What happened
   
   Airflow kubernetes pod operator fetch logs fails
   if self.get_logs:
                   self.pod_manager.fetch_container_logs(
                       pod=self.pod,
                       container_name=self.BASE_CONTAINER_NAME,
                       follow=True,
                   )
               else:
                   self.pod_manager.await_container_completion(
                       pod=self.pod, container_name=self.BASE_CONTAINER_NAME
                   )
   
               if self.do_xcom_push:
                   result = self.extract_xcom(pod=self.pod)
               remote_pod = self.pod_manager.await_pod_completion(self.pod)
   
   If self. get_logs is true. Then airflow will fetch logs and skips await 
container completion. Then it pull xcom. if container is not complete it loads 
fetch partially incomplete json file.This json file is loaded using json. loads 
which causes system break with error "unterminated string" 
   
   ### What you think should happen instead
   
   It should not read partial file
   
   ### How to reproduce
   
   When json size is larger
   
   ### Operating System
   
   Linux
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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]

Reply via email to