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

ThreadError Attempt to unlock a mutex which is not locked lib/vertica/connection.rb:298:in `unlock' #68

Open
sonots opened this issue Sep 8, 2017 · 1 comment

Comments

@sonots
Copy link
Contributor

sonots commented Sep 8, 2017

ThreadError Attempt to unlock a mutex which is not locked lib/vertica/connection.rb:298:in `unlock'
lib/vertica/connection.rb:298:in `process_message'
lib/vertica/connection.rb:398:in `startup_connection'
lib/vertica/connection.rb:446:in `boot_connection'
lib/vertica/connection.rb:329:in `run_in_mutex'
lib/vertica/connection.rb:146:in `query'

@mutex.unlock

@mutex.unlock if @mutex.locked? correctly or this line is not needed?

@wvanbergen
Copy link
Owner

This for sure is a bug, but adding if @mutex.locked? will solve the symptom, but not the cause.

A connection can only every be processing one query, so once we get ReadyForQuery the mutex should always be locked.

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

2 participants