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

DB doesn't properly close if main process fails #16

Open
rebeccabilbro opened this issue Apr 10, 2020 · 0 comments
Open

DB doesn't properly close if main process fails #16

rebeccabilbro opened this issue Apr 10, 2020 · 0 comments

Comments

@rebeccabilbro
Copy link
Member

If the process fails or is interrupted, the leveldb database doesn't get closed properly and can cause and error on the next run.

2020/04/10 08:34:24 connected to s3
panic: Could not open manifest

goroutine 1 [running]:
github.com/kansaslabs/baleen/store.MustOpen(...)
	/Users/rebeccabilbro/Desktop/eudicot/goplaces/src/github.com/kansaslabs/baleen/store/manifest.go:12
main.run(0xc000246160, 0x0, 0x0)
	/Users/rebeccabilbro/Desktop/eudicot/goplaces/src/github.com/kansaslabs/baleen/cmd/baleen/main.go:107 +0x150a
github.com/kansaslabs/baleen/vendor/gopkg.in/urfave/cli%2ev1.HandleAction(0x1699560, 0x17d6108, 0xc000246160, 0xc000240000, 0x0)
	/Users/rebeccabilbro/Desktop/eudicot/goplaces/src/github.com/kansaslabs/baleen/vendor/gopkg.in/urfave/cli.v1/app.go:490 +0xc8
github.com/kansaslabs/baleen/vendor/gopkg.in/urfave/cli%2ev1.Command.Run(0x178483e, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x179b0fa, 0x20, 0x0, ...)
	/Users/rebeccabilbro/Desktop/eudicot/goplaces/src/github.com/kansaslabs/baleen/vendor/gopkg.in/urfave/cli.v1/command.go:210 +0x996
github.com/kansaslabs/baleen/vendor/gopkg.in/urfave/cli%2ev1.(*App).Run(0xc00022e000, 0xc00000e080, 0x2, 0x2, 0x0, 0x0)
	/Users/rebeccabilbro/Desktop/eudicot/goplaces/src/github.com/kansaslabs/baleen/vendor/gopkg.in/urfave/cli.v1/app.go:255 +0x6af
main.main()
	/Users/rebeccabilbro/Desktop/eudicot/goplaces/src/github.com/kansaslabs/baleen/cmd/baleen/main.go:46 +0x18c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant