-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Modify interface #684
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
Modify interface #684
Conversation
morningman
commented
Mar 4, 2019
- Add batch submit interface
- Add Kafka Event callback to catch Kafka events
1. Add batch submit interface 2. Add Kafka Event callback to catch kafka events
| status.to_thrift(&t_status); | ||
| TStatus& t_status, const std::vector<TRoutineLoadTask>& tasks) { | ||
|
|
||
| for (auto& task : tasks) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some tasks may be successful submitted, and some may be fail.
Is this OK?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First, it is very unlikely to submit failed. And just make is simple here. Let FE handle the error now.(may be timeout).
It will be changed later if this is a big deal.
| if (t_info.__isset.max_interval_s) { | ||
| max_interval_s = t_info.max_interval_s; | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you drop this empty line?
I think this is harmful to read code.
If there is no complex logic block, please don't add empty line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will put it to one line
1. Add batch submit interface 2. Add Kafka Event callback to catch Kafka events
1. Add batch submit interface 2. Add Kafka Event callback to catch Kafka events
1. Add batch submit interface 2. Add Kafka Event callback to catch Kafka events
1. Add batch submit interface 2. Add Kafka Event callback to catch Kafka events
1. Add batch submit interface 2. Add Kafka Event callback to catch Kafka events
1. Add batch submit interface 2. Add Kafka Event callback to catch Kafka events
1. Add batch submit interface 2. Add Kafka Event callback to catch Kafka events
1. Add batch submit interface 2. Add Kafka Event callback to catch Kafka events