T lock on a table X Lock timeout on another table.
Hi All,
I'm using Vertica 8.1 and it looks like I'm getting an error during a "scheduled" delete statement. This locking failure is happening once in a while, not at the same hour of the day (I would say randomly... for now!)
[Vertica]VJDBC ERROR: Unavailable: lock table for query - Locking failure: Timed out X locking Table:SCHEMA_A.TABLE_A. T held by [user (Mergeout: (Table: SCHEMA_B.TABLE_B) (Projection: SCHEMA_B.TABLE_B_b0))]. Your current transaction isolation level is SERIALIZABLE)
This is happening always on the same two tables even if hundreds of tables and delete statements are daily running.
My understanding is that an object cannot be X locked if already T locked but here the T lock is referred to another table from a different schema.
Does anyone have an idea??
Thanks & Regards
Comments
What is the exact release number of the version of Vertica that you are running? There was a hot fix in Vertica 8.1.1-1 (Release Date: 7/24/2017) that might help address your issue.
ISSUE: VER-55808
COMPONENT: Tuple Mover
DESCRIPTION: The Tuple Mover incorrectly held transaction locks until the transaction completed, instead of releasing when the mergeout completed.
See:
https://my.vertica.com/docs/ReleaseNotes/8.1.x/Vertica_8.1.x_Release_Notes.htm
Currently this version is installed:
vertica-8.1.1-0.x86_64
Hi, The hot fix I mentioned is release 8.1.1-1. So you might want to upgrade.
Please note that we recommend to use release 8.1.1-9 at the minimum in the 8.1.x release stream.
See: https://forum.vertica.com/discussion/comment/240019
Can I upgrade directly from 8.1.1-0 to 8.1.1-9?
Could you kindly link download and patch installation procedure?
Thanks a lot for your help!
Hi,
Are you a current client? If so you can grab the latest version of Vertica in the 8.1.x code stream here:
https://my.vertica.com/download/vertica/8-1-x/
It's version 8.1.1-22.
Release notes:
https://my.vertica.com/docs/ReleaseNotes/8.1.x/Vertica_8.1.x_Release_Notes.htm
Here is a link to how to upgrade:
https://my.vertica.com/docs/8.1.x/HTML/index.htm#Authoring/InstallationGuide/Upgrade/UpgradingVertica.htm
If you need help upgrading let us know and we can help!
It worked!
Thanks!