Race condition in set_state
#2727
Labels
c/storage/pageserver
Component: storage: pageserver
t/bug
Issue Type: Bug
triaged
bugs that were already triaged
Code link
Let's imagine we have not only
Active
andPaused
states, but also some validActive2
state. Steps to reproduce:self.current_state()
returnsActive
for the first thread.self.current_state()
returnsActive
for the second thread.Paused
according to thematch
.Active2
according to thematch
.Without the
Active2
state, it's currently impossible to reproduce. But it could be a problem when the new state appears.The text was updated successfully, but these errors were encountered: