QinZuoyan
QinZuoyan
#### Problem Now the **_mutation_2pc_min_replica_count**_ is set in config file, and all replicas use the same one, then the problem is: if there are different replicas of different tables which...
it is important to collect space usage info of all replicas
There is a bug in io_looper: ``` E03:50:47.941 (1452743447941392892 0de8) replica.io-thrd.03560: (s = 33) connect failed (in epoll), err = Connection refused E03:50:47.941 (1452743447941403737 0de9) replica.io-thrd.03561: (s = 33) connect...
## block_wrappers.cc:155 ``` if (uncompressed_size > _output_buffer_size) { delete[] _output_buffer; _output_buffer = new char[_output_buffer_size]; } ``` --- ## May be: ``` if (uncompressed_size > _output_buffer_size) { delete[] _output_buffer; _output_buffer_size =...
# 背景 这里说的Cancel是指Client可以主动取消request的执行,包括在request还没有通过网络发送时取消发送,或者将Cancel命令通过网络传递到server端以提前终止服务的执行(在server端的服务实现支持Cancel功能的情况下),其目的都是避免不必要的资源消耗,无论是网络资源还是计算资源。 protobuf的RPC框架中定义了Cancel功能的接口和语义,具体在RpcController类中进行了定义: ``` // Client-side methods --------------------------------------------- // Advises the RPC system that the caller desires that the RPC call be // canceled. The RPC system may cancel...
代码重构与化简
### 完成 * layer2 app model: https://github.com/XiaoMi/rdsn/commit/d1df52f16b88de1c0989a8d0243f234dfedfabc1 * c api of perf counter: https://github.com/XiaoMi/rdsn/commit/a55bdcae9ee7fa94599ff53ae2e1b381d45134bf * c api of CLI: https://github.com/XiaoMi/rdsn/commit/87194db30065c09c06c358238451b38b0f6cf012 * c api of layer1/global checker; dmodule: https://github.com/XiaoMi/rdsn/commit/d8ac3cfa87e0a5e0edf7c7140779d8409a9281f8 * thread...
* consider balance of placing replicas on ssd: do not place too many replicas of one table on one ssd * consider balance of dispatching replication thread: do not dispatch...
like: - https://jepsen.io/
and also, rpc_address::ipv4_from_network_interface() returns 0 if no proper IP address found. so that, rpc_address::assign_ipv4() and rpc_address::assign_ipv4_local_address() may assign unexpected ip(0.0.0.0), which may cause tricky problems. need fix it.