Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge panic #491

Open
xiongguangjie opened this issue Nov 22, 2023 · 5 comments
Open

merge panic #491

xiongguangjie opened this issue Nov 22, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@xiongguangjie
Copy link

Describe the bug
panic when merge operation

To Reproduce
Steps to reproduce the behavior(Be specific!):

  1. write some data to a bucket
  2. do merge
  3. crash occur

Give sample code if you can.

Expected behavior
no panic normal process

What actually happens
crash panic

Screenshots

please complete the following information :

  • OS: centos7
  • NutsDB Version 0.14.3

Additional context
i think is no cache fd result in reduce cache using throw panic

@bigboss2063
Copy link
Member

测试代码麻烦贴一下

@bigboss2063 bigboss2063 assigned bigboss2063 and unassigned xujiajun Nov 22, 2023
@xiongguangjie
Copy link
Author

测试代码麻烦贴一下

这个是程序出现的,不是必现,我现在是这样做了修改,然后再看看是否会出现
fix

@bigboss2063
Copy link
Member

在 Merge 之前是否调用了 nutsdb.Close 方法

@xiongguangjie
Copy link
Author

在 Merge 之前是否调用了 nutsdb.Close 方法

没有,好像是有新的segment 出现(中间有几次写操作),同时初始化时,MaxFdNumsInCache 设置为2,CleanFdsCacheThreshold 为0.01

@elliotchenzichang
Copy link
Member

在 Merge 之前是否调用了 nutsdb.Close 方法

没有,好像是有新的segment 出现(中间有几次写操作),同时初始化时,MaxFdNumsInCache 设置为2,CleanFdsCacheThreshold 为0.01

这个我来处理一下~应该是这段逻辑有点bug

@elliotchenzichang elliotchenzichang self-assigned this Nov 25, 2023
@bigboss2063 bigboss2063 removed their assignment Nov 26, 2023
@bigboss2063 bigboss2063 added the bug Something isn't working label Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants