Issue with switching active database because of Wrong lock passed.
See original GitHub issueSystem information:
- Windows 10 Pro Version 2004 (Build 19041.153)
- DBeaver 7.0.1.202003211804
Connection specification:
PostgreSql 9.6 PostgreSQL standard driver Do you use tunnels or proxies (SSH, SOCKS, etc) : SSH
Describe the problem you’re observing:
When trying to switch to another database, Dbeaver spends long time on Excessive lock
and fails with the error message: Wrong exclusive lock passed
.
Steps to reproduce, if exist:
- With active connection on databse_a, Open New Sql Editor through shortcut.
- In newly opened sql editor, try to change default object to databse_b
- DBeaver will try to connect for a while and fail with aforementioned message.
Include any warning/errors/backtraces from the logs
Log:
!ENTRY org.jkiss.dbeaver.model 4 0 2020-04-02 12:59:05.707
!MESSAGE Wrong exclusive lock passed
!STACK 0
java.lang.IllegalArgumentException: Wrong exclusive lock passed
at org.jkiss.dbeaver.model.impl.SimpleExclusiveLock.releaseTaskLock(SimpleExclusiveLock.java:90)
at org.jkiss.dbeaver.model.impl.SimpleExclusiveLock.releaseExclusiveLock(SimpleExclusiveLock.java:78)
at org.jkiss.dbeaver.model.impl.jdbc.JDBCExecutionContext.connect(JDBCExecutionContext.java:162)
at org.jkiss.dbeaver.model.impl.jdbc.JDBCRemoteInstance.openIsolatedContext(JDBCRemoteInstance.java:123)
at org.jkiss.dbeaver.ui.editors.sql.SQLEditor$OpenContextJob.run(SQLEditor.java:581)
at org.jkiss.dbeaver.model.runtime.AbstractJob.run(AbstractJob.java:103)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Screenshot:
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Resolve blocking problem caused by lock escalation - SQL ...
This article describes how to determine whether lock escalation is causing blocking and how to resolve the problem.
Read more >Database Locking: What it is, Why it Matters and What to do ...
Database locking is a varied, evolving, complicated, and technical topic. This paper sheds light on the nature of database locking and how it...
Read more >All about locking in SQL Server - SQLShack
While objects are locked, SQL Server will prevent other transactions from making any change of data stored in objects affected by the imposed...
Read more >OperationalError: database is locked - python - Stack Overflow
In my case, It was because I open the database from SQLite Browser. When I close it from the browser, the problem is...
Read more >DB transaction lock & How to handle deadlock
Locking is not easy as you think! In the last lecture, we've learned how to implement a simple money... Tagged with go, database,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same with ubuntu 18.04 dbeaver version
Version 7.0.1.202003211804
After a long sleep, it happened, but it’s intermittent. When you close the app then reopen, it said cannot lock workspace <home>/.local/share/workspace6 …, it’s recommended to shutdown previous instance …
verified