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 14:39:45 UTC

[GitHub] [airflow] potiuk opened a new issue #14778: [QUARANTINED] The test_scheduler_verify_pool_full occasionally fails

potiuk opened a new issue #14778:
URL: https://github.com/apache/airflow/issues/14778


   Probably same root cause as in #14773 and #14772 but there is another test that fails occassionally:
   
   https://github.com/apache/airflow/runs/2106723579?check_suite_focus=true#step:6:10811
   
   ```
   _______________ TestSchedulerJob.test_scheduler_verify_pool_full _______________
     
     self = <tests.jobs.test_scheduler_job.TestSchedulerJob testMethod=test_scheduler_verify_pool_full>
     
         def test_scheduler_verify_pool_full(self):
             """
             Test task instances not queued when pool is full
             """
             dag = DAG(dag_id='test_scheduler_verify_pool_full', start_date=DEFAULT_DATE)
         
             BashOperator(
                 task_id='dummy',
                 dag=dag,
                 owner='airflow',
                 pool='test_scheduler_verify_pool_full',
                 bash_command='echo hi',
             )
         
             dagbag = DagBag(
                 dag_folder=os.path.join(settings.DAGS_FOLDER, "no_dags.py"),
                 include_examples=False,
                 read_dags_from_db=True,
             )
             dagbag.bag_dag(dag=dag, root_dag=dag)
             dagbag.sync_to_db()
         
             session = settings.Session()
             pool = Pool(pool='test_scheduler_verify_pool_full', slots=1)
             session.add(pool)
             session.flush()
         
             dag = SerializedDAG.from_dict(SerializedDAG.to_dict(dag))
         
             scheduler = SchedulerJob(executor=self.null_exec)
             scheduler.processor_agent = mock.MagicMock()
         
             # Create 2 dagruns, which will create 2 task instances.
             dr = dag.create_dagrun(
                 run_type=DagRunType.SCHEDULED,
                 execution_date=DEFAULT_DATE,
                 state=State.RUNNING,
             )
     >       scheduler._schedule_dag_run(dr, {}, session)
     
     tests/jobs/test_scheduler_job.py:2586: 
     _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
     airflow/jobs/scheduler_job.py:1688: in _schedule_dag_run
         dag = dag_run.dag = self.dagbag.get_dag(dag_run.dag_id, session=session)
     airflow/utils/session.py:62: in wrapper
         return func(*args, **kwargs)
     airflow/models/dagbag.py:178: in get_dag
         self._add_dag_from_db(dag_id=dag_id, session=session)
     _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
     
     self = <airflow.models.dagbag.DagBag object at 0x7f45f1959a90>
     dag_id = 'test_scheduler_verify_pool_full'
     session = <sqlalchemy.orm.session.Session object at 0x7f45f19eef70>
     
         def _add_dag_from_db(self, dag_id: str, session: Session):
             """Add DAG to DagBag from DB"""
             from airflow.models.serialized_dag import SerializedDagModel
         
             row = SerializedDagModel.get(dag_id, session)
             if not row:
     >           raise SerializedDagNotFound(f"DAG '{dag_id}' not found in serialized_dag table")
     E           airflow.exceptions.SerializedDagNotFound: DAG 'test_scheduler_verify_pool_full' not found in serialized_dag table
     
     airflow/models/dagbag.py:234: SerializedDagNotFound
   ```
   
   
   
   
   <!--
   
   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.
   
   -->
   
   **Apache Airflow version**:
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**:
   - **OS** (e.g. from /etc/os-release):
   - **Kernel** (e.g. `uname -a`):
   - **Install tools**:
   - **Others**:
   
   **What happened**:
   
   <!-- (please include exact error messages if you can) -->
   
   **What you expected to happen**:
   
   <!-- What do you think went wrong? -->
   
   **How to reproduce it**:
   <!---
   
   As minimally and precisely as possible. Keep in mind we do not have access to your cluster or dags.
   
   If you are using kubernetes, please attempt to recreate the issue using minikube or kind.
   
   ## Install minikube/kind
   
   - Minikube https://minikube.sigs.k8s.io/docs/start/
   - Kind https://kind.sigs.k8s.io/docs/user/quick-start/
   
   If this is a UI bug, please provide a screenshot of the bug or a link to a youtube video of the bug in action
   
   You can include images using the .md style of
   ![alt text](http://url/to/img.png)
   
   To record a screencast, mac users can use QuickTime and then create an unlisted youtube video with the resulting .mov file.
   
   --->
   
   
   **Anything else we need to know**:
   
   <!--
   
   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] potiuk closed issue #14778: [QUARANTINED] The test_scheduler_verify_pool_full occasionally fails

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


   


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