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

Review locks in Arch and Plan #59

Open
arikon opened this issue May 25, 2012 · 0 comments
Open

Review locks in Arch and Plan #59

arikon opened this issue May 25, 2012 · 0 comments

Comments

@arikon
Copy link
Contributor

arikon commented May 25, 2012

Сейчас локи — это число в this.lock, когда оно больше 0, считаем, что лок взят.

С локами есть проблема, когда выполняются несколько узлов параллельно и один их них фейлится. При этом между событием фейла первого узла и обработкой фейла плана второй узел успевает вызвать arch.withLock(), в связи с чем устанавливается лок на arch (и на все связанные с ним планы).

Получается так, что во время обработки фейла плана план заблокирован, то есть находится в слегка грязном состоянии.

Надо пересмотреть всё идею локов: для чего мы их делаем, как именно они должны работать внутри.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant