question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with switching active database because of Wrong lock passed.

See original GitHub issue

System 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:

  1. With active connection on databse_a, Open New Sql Editor through shortcut.
  2. In newly opened sql editor, try to change default object to databse_b
  3. 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: image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
xyluetcommented, Apr 3, 2020

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 …

0reactions
uslsscommented, Apr 5, 2020

verified

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found