fix go pipeline stop hang caused by improper component stop order #1914
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
背景:
原因:
当go往c++发送的时候,会先判断队列满不满,如果满了,再判断流水线是不是要stop,如果要stop那么就把待发送的数据暂时存起来。但是问题在于“流水线要stop”的标志是在停止了input、processor和aggregator之后才设置的,而aggregator已经卡住了,所以没有机会设置这个flag了,导致了卡死。
方案:
把设置“流水线要stop”flag的操作放到流水线停止的最开始