Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DocketEntry.DoesNotExist: Removing a RECAPDocument from ES. #4030

Open
sentry-io bot opened this issue May 7, 2024 · 0 comments
Open

DocketEntry.DoesNotExist: Removing a RECAPDocument from ES. #4030

sentry-io bot opened this issue May 7, 2024 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented May 7, 2024

This has happened once so far. The problem seems to be that the RECAPDocument was deleted from the database, and then the "handle_delete" method in "es_signal_processor" couldn't retrieve its routing ID.

Sentry Issue: COURTLISTENER-76Q

CancelledError: 
DocketEntry.DoesNotExist: DocketEntry matching query does not exist.
(22 additional frame(s) were not displayed)
...
  File "cl/recap/mergers.py", line 730, in get_or_make_docket_entry
    de = await merge_unnumbered_docket_entries(des, docket_entry)
  File "cl/recap/mergers.py", line 595, in merge_unnumbered_docket_entries
    await matched_entries_queryset.exclude(pk=winner.pk).adelete()
  File "cl/lib/elasticsearch_utils.py", line 95, in wrapper_func
    func(*args, **kwargs)
  File "cl/lib/es_signal_processor.py", line 791, in handle_delete
    doc_id, routing_id = get_es_doc_id_and_parent_id(
  File "cl/search/tasks.py", line 559, in get_es_doc_id_and_parent_id
    parent_id = getattr(instance.docket_entry, "docket_id", None)

Filed by: @albertisfu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants