Re: [PR] 解决客户端收到Goaway的问题 (brpc)

2024-01-17 Thread via GitHub
jiangdongzi commented on PR #2512: URL: https://github.com/apache/brpc/pull/2512#issuecomment-1897896527 @wwbmmm @chenBright 麻烦帮忙review下 -- 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 specif

[PR] 解决客户端收到Goaway的问题 (brpc)

2024-01-17 Thread via GitHub
jiangdongzi opened a new pull request, #2512: URL: https://github.com/apache/brpc/pull/2512 ### What problem does this PR solve? Issue Number: #2510 Problem Summary: 客户端收到goawaay应该抛弃原来的tmp_socket, 选择新的socket重试, 并且也不需要做健康检查 ### What is changed and the side effects? none

Re: [I] Span::CreateClientSpan是否有线程安全问题 (brpc)

2024-01-17 Thread via GitHub
fausturs commented on issue #2315: URL: https://github.com/apache/brpc/issues/2315#issuecomment-1897863838 > 优势在于,创建span仍然是能够完全规避了线程竞争,所以对性能应该很友好。 这个修改没有想象中那么简单,至少还涉及了rpcz相关的代码。这里会出现多个trace id,span id一样的span对象。 那么存入leveldb时,可能要考虑是否合并到一起。 如果不合并则要考虑rpcz的展示需要做一些修改。 所以,加一个锁,或者

Re: [I] bthread可以只在特定的pthread_worker吗上执行吗? (brpc)

2024-01-17 Thread via GitHub
MJY-HUST commented on issue #2507: URL: https://github.com/apache/brpc/issues/2507#issuecomment-1897706695 > > 场景是:server中会处理一些io任务。每个pthread worker维护一个thread local IO_uring实例用于提交和收割IO,使用server收到rpc请求后直接基于bthread来处理,此时,对于每个pthread worker想维护一个定时任务,用于提交请求。 如果可以直接在server 处理逻辑对应的pthread上执行绑定的bt

[PR] Fix bthread_usleep return unexpected error (brpc)

2024-01-17 Thread via GitHub
chenBright opened a new pull request, #2511: URL: https://github.com/apache/brpc/pull/2511 ### What problem does this PR solve? Issue Number: Problem Summary: #2435 的改动可能会导致bthread_usleep实际上成功执行,但是返回ESTOP失败。 `_add_sleep_event`函数中,定时器添加成功后,`e.meta->current_sleep =

Re: [I] bthread可以只在特定的pthread_worker吗上执行吗? (brpc)

2024-01-17 Thread via GitHub
yanglimingcn commented on issue #2507: URL: https://github.com/apache/brpc/issues/2507#issuecomment-1895942738 > 场景是:server中会处理一些io任务。每个pthread worker维护一个thread local IO_uring实例用于提交和收割IO,使用server收到rpc请求后直接基于bthread来处理,此时,对于每个pthread worker想维护一个定时任务,用于提交请求。 如果可以直接在server 处理逻辑对应的pthread上执行绑定的

Re: [I] RDMA build失败 (brpc)

2024-01-17 Thread via GitHub
yanglimingcn commented on issue #2478: URL: https://github.com/apache/brpc/issues/2478#issuecomment-1895596634 我修改一下 -- 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 unsu

Re: [PR] bthread task group add tag (brpc)

2024-01-17 Thread via GitHub
yanglimingcn commented on PR #2358: URL: https://github.com/apache/brpc/pull/2358#issuecomment-1895586701 > @yanglimingcn 大佬请教个问题,我在你代码基础上修改了一下,一个server内部分service,然后每个service绑定一个bthread group tag,收到消息后根据tag进行分发。现在有一个问题,发现bthread_count监控数值不对,比如3个tag,总和是对的,但是有些group tag不对,看起来应该是task原来在group1