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

Batch exception fix when unwrapping exception #619

Merged
merged 4 commits into from
Jan 29, 2021
Merged

Batch exception fix when unwrapping exception #619

merged 4 commits into from
Jan 29, 2021

Conversation

phillip-kruger
Copy link
Member

@phillip-kruger phillip-kruger commented Jan 26, 2021

Fix #590

Signed-off-by:Phillip Kruger [email protected]

@phillip-kruger phillip-kruger requested a review from t1 January 26, 2021 19:03
@phillip-kruger phillip-kruger added this to the 1.1.1 milestone Jan 26, 2021
@phillip-kruger
Copy link
Member Author

@t1 - added a test and now also a fix ! I'll do a back port for 1.0.x

@phillip-kruger phillip-kruger changed the title Added test app for (upcoming) batch exception fix. (master) Batch exception fix when unwrapping exception Jan 27, 2021
@phillip-kruger
Copy link
Member Author

@t1 this PR is waiting for you .... please review :)

t1
t1 previously approved these changes Jan 29, 2021
Copy link
Collaborator

@t1 t1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With some minor remarks, LGTM, but I don't understand a lot of the context (Uni, etc.)

@@ -48,10 +43,6 @@ public AbstractDataFetcher(Operation operation, Config config) {
this.argumentHelper = new ArgumentHelper(operation.getArguments());
this.partialResultHelper = new PartialResultHelper();
this.batchLoaderHelper = new BatchLoaderHelper();
if (config != null && config.getUnwrapExceptions().isPresent()) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would do this with an ifPresent block, but that's just a matter of taste, I guess.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is being deleted :)

@phillip-kruger phillip-kruger merged commit 8ddfef0 into smallrye:master Jan 29, 2021
@phillip-kruger phillip-kruger mentioned this pull request Feb 2, 2021
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.

Batch: CompletionException can not be unpacked
2 participants