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

Make BulkIndexError and ScanError serializable #2669

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

seagrine
Copy link

@seagrine seagrine commented Oct 17, 2024

I encountered an issue with pickling/unpickling BulkindexError.

unpickle_exception\n inst = func(*args)\n ^^^^^^^^^^^\nTypeError: BulkIndexError.**init**() missing 1 required positional argument: 'errors

I'm adding an implementation of __reduce__ to this (and ScanError) so they can be pickled and unpickled correctly. Added tests for it as well.

Copy link

cla-checker-service bot commented Oct 17, 2024

💚 CLA has been signed

Copy link

A documentation preview will be available soon.

Request a new doc build by commenting
  • Rebuild this PR: run docs-build
  • Rebuild this PR and all Elastic docs: run docs-build rebuild

run docs-build is much faster than run docs-build rebuild. A rebuild should only be needed in rare situations.

If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here.

@seagrine seagrine marked this pull request as draft October 17, 2024 18:00
@seagrine seagrine closed this Oct 17, 2024
@seagrine seagrine deleted the serializable-errors branch October 17, 2024 18:15
@seagrine seagrine restored the serializable-errors branch October 17, 2024 18:16
@seagrine seagrine reopened this Oct 17, 2024
@seagrine seagrine marked this pull request as ready for review October 17, 2024 18:20
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

Successfully merging this pull request may close these issues.

1 participant