Pros:
- Language-independent
- Works with unpickleable exceptions (eg. cimpl.KafkaException, and RLock objects in exceptions raised by tenacity)
Con:
- Shows a less nice error on the client side (if the client is in Python)
Resolves T2239.
Paths
| Differential D2627 Authored by vlorentz on Feb 5 2020, 5:12 PM.
Details Summary Pros:
Con:
Resolves T2239. Test Plan tox passes this repo, but I'm going to try tests with RPC servers that use it.
Diff Detail
Event TimelineHerald added a reviewer: Reviewers. · View Herald TranscriptFeb 5 2020, 5:12 PM2020-02-05 17:12:59 (UTC+1) Comment Actions Build is green Harbormaster completed remote builds in B10453: Diff 9393.Feb 5 2020, 5:14 PM2020-02-05 17:14:41 (UTC+1) This revision is now accepted and ready to land.Feb 6 2020, 12:07 PM2020-02-06 12:07:47 (UTC+1) Comment Actions Note: this diff will stay open for a little while, @ardumont and I have other changes to make before it can be merged Comment Actions Build is green Harbormaster completed remote builds in B10540: Diff 9477.Feb 11 2020, 3:48 PM2020-02-11 15:48:37 (UTC+1) This revision was landed with ongoing or failed builds.Feb 14 2020, 12:22 PM2020-02-14 12:22:02 (UTC+1) Closed by commit rDCORE08289ce5c33e: In case of errors, return a simple dictionary instead of pickled exception. (authored by vlorentz). · Explain Why This revision was automatically updated to reflect the committed changes. Comment Actions Build is green Harbormaster completed remote builds in B10588: Diff 9527.Feb 14 2020, 12:22 PM2020-02-14 12:22:49 (UTC+1)
Revision Contents
Diff 9527 swh/core/api/__init__.py
swh/core/api/tests/test_rpc_client_server.py
|