Bright Chen
Bright Chen
### What problem does this PR solve? Issue Number: resolve #2285 Problem Summary: ### What is changed and the side effects? Changed: Side effects: - Performance effects(性能影响): - Breaking backward...
**Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)** 目前brpc框架不支持bRPC网关服务高效地转发baidu协议的请求——只反序列化meta部分,直接转发payload,无需反序列化payload。 **Describe the solution you'd like (描述你期望的解决方法)** 1. baidu协议实现类似http_master_service的功能,接管所有baidu协议流量。同时,http_master_service可用于多语言接入bRPC服务场景。 2. baidu协议meta中支持用户自定义字段(kv),用于传递upstream信息、路由信息等。 3. 支持baidu协议泛化调用,payload支持pb序列化数据,网关服务可以不受服务端pb的限制(#1385 中有相关咨询)。同时,扩展payload以支持其他序列化数据(例如json),网关具备了多语言接入brpc服务的能力了。 **Describe alternatives you've considered (描述你想到的折衷方案)** **Additional context/screenshots...
### What problem does this PR solve? Issue Number: Problem Summary: 有用户反馈Socket被熔断后无法恢复,需要加上日志确定健康检查失败的原因。 ### What is changed and the side effects? Changed: Side effects: - Performance effects(性能影响): - Breaking backward compatibility(向后兼容性):...
### What problem does this PR solve? Issue Number: Problem Summary: ### What is changed and the side effects? Changed: Side effects: - Performance effects(性能影响): - Breaking backward compatibility(向后兼容性): ---...
### What problem does this PR solve? Issue Number: Problem Summary: 目前FlatMap是两阶段初始化:构造函数+init函数。这种初始化方式很容易用错,甚至出core,所以使用上必须小心翼翼,体验不好。 ### What is changed and the side effects? Changed: FlatMap构造完成即完成初始化。使用sso、IOBuf::SmallView的策略,初始化_buckets和_thumbnail使用类内的内存块,没有init函数中Alloc失败的顾虑。 Side effects: - Performance effects(性能影响): - Breaking backward...
### What problem does this PR solve? Issue Number: Problem Summary: 1. Multi模式下,插入数据发生hash冲突的时候,size没有加一。另一方面,插入数据不能自动扩容。 2. m1 = m2,m1扩容后m1._nbucket不等于m2._nbucket的时候,m1的_buckets上除了插入数据的位置,其他位置没有set_invalid,后续使用会出现内存问题。 3. 扩容时,_buckets和_thumbnail都是先释放再申请新的内存。如果申请失败了,FlatMap就完全不可用了。 ### What is changed and the side effects? Changed: 1. size++。另外,当FlatMap负载超过阈值,则遍历Bucket链表,当存在不同的key的时候,则扩容。否则,不扩容直接插入。因为key一样,扩容后这些数据还是在同一个链表上。...
### What problem does this PR solve? Issue Number: Problem Summary: tcp_connect被中断之后,返回结果是有问题的: 1. `bthread_timed_connect / bthread_connect`:`butex_wait`返回0,errno等于`EWOULDBLOCK`或者`EINTR`,最后tcp_connect返回一个未连接成功的socket fd。 2. `pthread_timed_connect `:返回-1,errno等于`EINTR`。 ### What is changed and the side effects? Changed: 当errno等于`EWOULDBLOCK`或者`EINTR`,`pthread_fd_wait...
### What problem does this PR solve? Issue Number: resolve #2588 Problem Summary: ### What is changed and the side effects? Changed: Side effects: - Performance effects(性能影响): - Breaking backward...
### What problem does this PR solve? Issue Number: Problem Summary: ### What is changed and the side effects? Changed: Side effects: - Performance effects(性能影响): - Breaking backward compatibility(向后兼容性): ---...
### What problem does this PR solve? Issue Number: Problem Summary: ### What is changed and the side effects? Changed: Butex object returned to the ObjectPool may be accessed, so...