MJY-HUST commented on PR #2768: URL: https://github.com/apache/brpc/pull/2768#issuecomment-2374790415
> 补充一些单测吧,感觉现有的单测没有覆盖到新增的代码 补充了两个单测: 场景一:启动多个bthread,获取keytable后bthread_usleep,模拟issue中的场景 场景二:启动多个bthread,一组bthread直接调用borrow_keytable获取keytable并存放到全局链表,另一组从全局链表中获取keytable并return_keytable,这些bthread理论上都不会发生切换,来模拟keytable不均衡的场景。 两个场景均检查thread local list的长度小于bthread::FLAGS_key_table_list_size -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org