Skip to content

ParallelQuery not handling error in some situations #238

Closed

Description

@luisremis

When db returns an error:

{
  'info': 'Failed opening file for writing :db/objects/0000/1742/0000-1742-000000-109980.png', 
  'status': -1
}

Python package fails to capture the error.

2023-06-07 21:21:11,982 : ERROR : aperturedb.ParallelQuery : 139992848397888 : 226 : 'returned'
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/aperturedb/ParallelQuery.py", line 224, in worker
    self.do_batch(db, generator[batch_start:batch_end])
  File "/usr/local/lib/python3.10/dist-packages/aperturedb/ParallelQuery.py", line 179, in do_batch
    result, r, b = execute_batch(
  File "/usr/local/lib/python3.10/dist-packages/aperturedb/ParallelQuery.py", line 56, in execute_batch
    count = resp[k]["returned"]
KeyError: 'returned'

Here is the complete log file.

Activity

  1. added
    bug
    on Jun 7, 2023
  2. gsaluja9 commented on Sep 22, 2023

    @gsaluja9
    Contributor

    @luisremis can you verify and close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions