You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/03/14 11:46:23 UTC

[GitHub] [airflow] shivanshs9 opened a new issue #14770: [Smart sensor] Runtime error: dictionary changed size during iteration

shivanshs9 opened a new issue #14770:
URL: https://github.com/apache/airflow/issues/14770


   <!--
   
   Welcome to Apache Airflow!  For a smooth issue process, try to answer the following questions.
   Don't worry if they're not all applicable; just try to include what you can :-)
   
   If you need to include code snippets or logs, please put them in fenced code
   blocks.  If they're super-long, please use the details tag like
   <details><summary>super-long log</summary> lots of stuff </details>
   
   Please delete these comment blocks before submitting the issue.
   
   -->
   
   <!--
   
   IMPORTANT!!!
   
   PLEASE CHECK "SIMILAR TO X EXISTING ISSUES" OPTION IF VISIBLE
   NEXT TO "SUBMIT NEW ISSUE" BUTTON!!!
   
   PLEASE CHECK IF THIS ISSUE HAS BEEN REPORTED PREVIOUSLY USING SEARCH!!!
   
   Please complete the next sections or the issue will be closed.
   These questions are the first thing we need to know to understand the context.
   
   -->
   
   
   **What happened**:
   
   <!-- (please include exact error messages if you can) -->
   Smart Sensor TI crashes with a Runtime error. Here's the logs:
   ```
   RuntimeError: dictionary changed size during iteration
     File "airflow/sentry.py", line 159, in wrapper
       return func(task_instance, *args, session=session, **kwargs)
     File "airflow/models/taskinstance.py", line 1112, in _run_raw_task
       self._prepare_and_execute_task_with_callbacks(context, task)
     File "airflow/models/taskinstance.py", line 1285, in _prepare_and_execute_task_with_callbacks
       result = self._execute_task(context, task_copy)
     File "airflow/models/taskinstance.py", line 1315, in _execute_task
       result = task_copy.execute(context=context)
     File "airflow/sensors/smart_sensor.py", line 736, in execute
       self.flush_cached_sensor_poke_results()
     File "airflow/sensors/smart_sensor.py", line 681, in flush_cached_sensor_poke_results
       for ti_key, sensor_exception in self.cached_sensor_exceptions.items():
   ```
   
   
   **What you expected to happen**:
   
   <!-- What do you think went wrong? -->
   Smart sensor should always execute without any runtime error.
   
   **How to reproduce it**:
   I haven't been able to reproduce it consistently since it sometimes works and sometimes errors.
   
   **Anything else we need to know**:
   It's a really noisy error in Sentry. In just 4 days, 3.8k events were reported in Sentry.
   <!--
   
   How often does this problem occur? Once? Every time etc?
   
   Any relevant logs to include? Put them here in side a detail tag:
   <details><summary>x.log</summary> lots of stuff </details>
   
   -->
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] kaxil closed issue #14770: [Smart sensor] Runtime error: dictionary changed size during iteration

Posted by GitBox <gi...@apache.org>.
kaxil closed issue #14770:
URL: https://github.com/apache/airflow/issues/14770


   


-- 
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:
users@infra.apache.org