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

Avoid 'No more data to read' error when handling stream load RPC #354

Merged
merged 2 commits into from
Nov 27, 2018

Conversation

morningman
Copy link
Contributor

  1. Catch throwable of all stream load rpc.
  2. Avoid setting null string as error msg of rpc result status.

1. Catch throwable of all stream load rpc.
2. Avoid setting null string as error msg of rpc result status.
} catch (Throwable e) {
LOG.warn("catch unknown result.", e);
status.setStatus_code(TStatusCode.INTERNAL_ERROR);
status.setError_msgs(Lists.newArrayList(Strings.nullToEmpty(e.getMessage())));
Copy link
Contributor

Choose a reason for hiding this comment

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

call status.addToError_msgs instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed

@imay imay merged commit cddd864 into apache:master Nov 27, 2018
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.

2 participants