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

Panic during message expiration #1097

Closed
kozlovic opened this issue Oct 6, 2020 · 0 comments · Fixed by #1096
Closed

Panic during message expiration #1097

kozlovic opened this issue Oct 6, 2020 · 0 comments · Fixed by #1096
Assignees
Labels

Comments

@kozlovic
Copy link
Member

kozlovic commented Oct 6, 2020

Here is the stack from an user:

panic: failed to switch state from fileInUse to fileOpened for file "<dir>/msgs.52.dat", state=4
goroutine 6462 [running]:
github.com/nats-io/nats-streaming-server/stores.(*filesManager).unlockFile(...)
        /home/travis/gopath/src/github.com/nats-io/nats-streaming-server/stores/filestore.go:1108
github.com/nats-io/nats-streaming-server/stores.(*FileMsgStore).doLockFiles(0xc001e54a80, 0xc000514b90, 0xc000514b01, 0x0, 0x700000000000000)
        /home/travis/gopath/src/github.com/nats-io/nats-streaming-server/stores/filestore.go:2217 +0x32e
github.com/nats-io/nats-streaming-server/stores.(*FileMsgStore).lockIndexFile(...)
        /home/travis/gopath/src/github.com/nats-io/nats-streaming-server/stores/filestore.go:2255
github.com/nats-io/nats-streaming-server/stores.(*FileMsgStore).expireMsgs(0xc001e54a80, 0x1636019e86726fc1, 0x2260ff9290000, 0x0)
        /home/travis/gopath/src/github.com/nats-io/nats-streaming-server/stores/filestore.go:2906 +0x455
github.com/nats-io/nats-streaming-server/stores.(*FileMsgStore).backgroundTasks(0xc001e54a80)
        /home/travis/gopath/src/github.com/nats-io/nats-streaming-server/stores/filestore.go:3268 +0x67b
created by github.com/nats-io/nats-streaming-server/stores.(*FileStore).newFileMsgStore
        /home/travis/gopath/src/github.com/nats-io/nats-streaming-server/stores/filestore.go:2116 +0x893
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant