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

vanus-store can't recover from panic #311

Open
wenfengwang opened this issue Nov 21, 2022 · 0 comments
Open

vanus-store can't recover from panic #311

wenfengwang opened this issue Nov 21, 2022 · 0 comments
Assignees
Labels
bug Something isn't working co/store relating to store
Milestone

Comments

@wenfengwang
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. internal/store/io.file_linux
func CreateFile(path string, size int64, wronly bool, sync bool) (*os.File, error) {
	flag := makeFlag(os.O_CREATE|os.O_EXCL|syscall.O_NOATIME, wronly, sync)
	f, err := directio.OpenFile(path, flag, defaultFilePerm)
	if err != nil {
		return nil, err
	}
	// Resize file.
	//if err = syscall.Fallocate(int(f.Fd()), FALLOC_FL_ZERO_RANGE, 0, size); err != nil {
	//	if err2 := f.Close(); err2 != nil {
	//		return f, errutil.Chain(err, err2)
	//	}
	//	return nil, err
	//}
	return nil, errors.New("for reproduce issue")
        //	return f, nil
}
  1. create a new eventbus
  2. server will be panic, and restart failed
    img_v2_41b9bc48-d0db-45b7-8aa5-a8f966b7bceg

2. What did you expect to see? (Required)

Vanus Store works after panic

3. What did you see instead (Required)

img_v2_41b9bc48-d0db-45b7-8aa5-a8f966b7bceg

4. What is your Vanus version? (Required)

v0.4.1

@ifplusor ifplusor self-assigned this Nov 21, 2022
@wenfengwang wenfengwang added this to the v0.6 milestone Nov 28, 2022
@wenfengwang wenfengwang added bug Something isn't working co/store relating to store labels Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working co/store relating to store
Projects
None yet
Development

No branches or pull requests

2 participants