thoth-station / storages

Storage and database adapters for project Thoth
https://thoth-station.github.io/
GNU General Public License v3.0
14 stars 16 forks source link

sync_document function is not able to traverse documents #2750

Closed harshad16 closed 1 year ago

harshad16 commented 1 year ago

Bug description

The function sync_document in storages/sync.py is unable to traverse the document ids. Causing issues like ValueError No handler defined for document identifier /mnt/component/document/solver-rhel-8-py36-230111052532-e7dc96c907760295 https://sentry.io/organizations/red-hat-it/issues/3867414521/?alert_rule_id=529086&alert_timestamp=1673413911988&alert_type=email&environment=ocp4-test&project=1298083

Steps to Reproduce

Steps to reproduce the behavior:

  1. Create a solver for ingestion
  2. Wait for graph-sync workflow
  3. Scroll down in log
  4. See error

Expected behavior

Parse the document_id and sync the document to the appropriate handler.

Environment information

thoth-storages in v0.73.6