You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
已修复,可验证。
卡住的原因是
当pipeline为 A -> B 且由B(接收方)结束了pipeline时,清理B的过程中会尝试继续从A收取数据,直到收到nil(结束的标记)。
由于A的上下文继承于B,会同步结束,导致A不一定会发出nil数据(select case done : case send走了第一个case)。因此卡死(与协程的调度有关,因此偶现)。
已修复,可验证。 卡住的原因是 当pipeline为 A -> B 且由B(接收方)结束了pipeline时,清理B的过程中会尝试继续从A收取数据,直到收到nil(结束的标记)。 由于A的上下文继承于B,会同步结束,导致A不一定会发出nil数据(select case done : case send走了第一个case)。因此卡死(与协程的调度有关,因此偶现)。
已修复,可验证。 卡住的原因是 当pipeline为 A -> B 且由B(接收方)结束了pipeline时,清理B的过程中会尝试继续从A收取数据,直到收到nil(结束的标记)。 由于A的上下文继承于B,会同步结束,导致A不一定会发出nil数据(select case done : case send走了第一个case)。因此卡死(与协程的调度有关,因此偶现)。
pr 11099和这个没有关系,后续会单独提。
Activity
zhangxu19830126 commentedon Jul 30, 2023
悲观事务的bvt,极大概率在ci上失败,检查都是hung在2个地方,分析过后,主要是ctx被cancel了,从channel里面取值就永远等到不到了,被卡死。
[-][Bug]: pessimistic mode:run bvt on ci wating for lock[/-][+][Bug]: pessimistic mode:pipeline hung[/+]m-schen commentedon Jul 31, 2023
还在处理其他s-1,让qx帮忙先处理一下试试。暂不用换owner.
17 remaining items
m-schen commentedon Aug 10, 2023
已修复,可验证。
卡住的原因是
当pipeline为 A -> B 且由B(接收方)结束了pipeline时,清理B的过程中会尝试继续从A收取数据,直到收到nil(结束的标记)。
由于A的上下文继承于B,会同步结束,导致A不一定会发出nil数据(select case done : case send走了第一个case)。因此卡死(与协程的调度有关,因此偶现)。
pr 11099和这个没有关系,后续会单独提。
sukki37 commentedon Aug 10, 2023
repro:

https://github.com/matrixorigin/matrixone/actions/runs/5818682422/job/15775588094
@m-schen, please continue to fix this one.
dongdongyang33 commentedon Aug 10, 2023
应该不是这个原因?
虽然会不小心走到没有发送 nil 的路径(设计上这是出错关闭的路径)但是最终一定会关闭 channel。清理的过程是收到 nil 或者发现 channel 关闭都可以退出,所以不应该会卡住。
不过可能会收到很多误报的
children pipeline closed unexpectedlym-schen commentedon Aug 11, 2023
m-schen commentedon Aug 11, 2023
我实际定位出卡死的地方是这里。卡死时只剩下接收方在等待数据,发送方的pipeline的协程已经全部结束了。可能用close去控制漏掉了些什么东西,也可能是之前clean pipeline前没有全部的地方调用cancel去防止产生新数据导致的。这个我还不能十分肯定。用close控制逻辑上是没有问题的,感觉是具体代码实现上有问题。need check.
sukki37 commentedon Aug 11, 2023
my mistake, this bug hasn't been reproduced after #11137, so this issue can be downgraded and continue to be observed for a while.