jhgoebbert commented on PR #53821:
URL: https://github.com/apache/airflow/pull/53821#issuecomment-3369021062
While testing your great(!) code it was very helpful to also dump the exact
`bie.errors` details
```python
try:
_ = helpers.bulk(self.client, bulk_actions)
return True
except helpers.BulkIndexError as bie:
self.log.exception(f"Bulk upload failed for {len(bie.errors)} log(s)")
for error in bie.errors:
self.log.exception(error)
except Exception as e:
self.log.exception("Unable to insert logs into Elasticsearch. Reason:
%s", str(e))
return False
```
It showed me for example `'error': {'type': 'unavailable_shards_exception',
'reason': '[airflow-logs][0] primary shard is not active` which was extremely
helpful. Perhaps you want to add this, too.
--
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]