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

Fix crash in membership updater #1753

Merged
merged 2 commits into from
Feb 6, 2021
Merged

Fix crash in membership updater #1753

merged 2 commits into from
Feb 6, 2021

Conversation

neilalexander
Copy link
Contributor

While the behaviour of #1748 was definitely not right, it turns out it was actually preventing us from dereferencing a nil pointer which would cause a crash.

This behaviour is probably better — comments inline to explain why, since it’s especially fiddly.

@f12systems
Copy link

ran this on my machine and got a different 'crash' that seems to indicate the earlier issue
left the dB in a locked state

Specifically
Signalling other goroutines waiting for this goroutine to generate the thumbnail. Height=480 MediaID=QiYNbjnWfZTiNYOaXhQGRNDW Origin=matrix.org ResizeMethod=scale Width=640 req.id=04NKqGdcNXgV req.method=GET req.path=/_matrix/media/r0/thumbnail/matrix.org/QiYNbjnWfZTiNYOaXhQGRNDW
panic: the ContinualConsumer in "syncapi/clientapi" failed to SetPartitionOffset: database is locked

goroutine 72 [running]:
github.com/matrix-org/dendrite/internal.(*ContinualConsumer).consumePartition(0xc0003aa300, 0x558211175340, 0xc000372400)
github.com/matrix-org/dendrite/internal/consumers.go:129 +0x2ed
created by github.com/matrix-org/dendrite/internal.(*ContinualConsumer).StartOffsets
github.com/matrix-org/dendrite/internal/consumers.go:107 +0x545

@neilalexander
Copy link
Contributor Author

This has fixed crashes on d.m.org and d.n.dev so merging.

@neilalexander neilalexander merged commit 02e6d89 into master Feb 6, 2021
@neilalexander neilalexander deleted the neilalexander/mufix branch February 6, 2021 11:49
uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Feb 7, 2021
  See matrix-org/dendrite#1753


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@564634 35697150-7ecd-e111-bb59-0022644237b5
uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Feb 7, 2021
Jehops pushed a commit to Jehops/freebsd-ports-legacy that referenced this pull request Feb 8, 2021
  See matrix-org/dendrite#1753


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@564634 35697150-7ecd-e111-bb59-0022644237b5
svmhdvn pushed a commit to svmhdvn/freebsd-ports that referenced this pull request Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants