potiuk commented on PR #25532:
URL: https://github.com/apache/airflow/pull/25532#issuecomment-1205204207
> Still failed. I moved the log after the other log that used the `run_id`.
That's this log: `self.log.info('Doing session rollback.')` before the
session.rollback but it still failed. I think the issue is that we access
`self` to get the log?
Just to clarify (cause I am not 100% sure). - did it also fail, when you
did that: ?
```
except IntegrityError:
self.log.info('Session rolled back.')
session.rollback()
self.log.info(
'Hit IntegrityError while creating the TIs for %s- %s',
dag_id,
self.run_id,
exc_info=True,
)
```
If that's the case, then I am afraid the root cause is somewhere deeper.
Probably we see some race condition manifesting tself. Accessing self.log
should not trigger it. Anothe option is that one of the logging handlers of
yours (do you have any?) Accesses the DB in some way,
--
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]