OpenAtomFoundation / pikiwidb

a high-performance, large-capacity, multi-tenant, data-persistent, strong data consistency based on raft, Redis-compatible elastic KV data storage system based on RocksDB
BSD 3-Clause "New" or "Revised" License
195 stars 62 forks source link

Startup segment error #389

Closed panlei-coder closed 1 month ago

panlei-coder commented 1 month ago

程序启动直接段错误了: 1722125154456 原因是下面 pikiwidb.cc 文件中这段代码: 1722102790127

在 main 函数中把 InitLimit() 注释掉就没问题。

AlexStocks commented 1 month ago

那就看看 initLimit() 问题出在了哪里,别急着把这个功能干掉

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically.


Then take a look at the problem with initLimit() and don’t rush to get rid of this function.

panlei-coder commented 1 month ago

6801a648c7b3fe62e7d25b463e90888

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically.


6801a648c7b3fe62e7d25b463e90888

panlei-coder commented 1 month ago

那就看看 initLimit() 问题出在了哪里,别急着把这个功能干掉

我后续找个时间定位一下这个问题

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically.


Then take a look at the problem with initLimit() and don’t rush to kill this function.

I'll find some time to figure this out later.

AlexStocks commented 1 month ago

image

InitLimit 里面失败后输出了日志,而这时 log 对象还不存在。已经在 PR https://github.com/OpenAtomFoundation/pikiwidb/pull/381 中修复这个问题。