[MCOL-3390] table locked not cleared on a successful truncate Created: 2019-06-21  Updated: 2023-03-06  Resolved: 2023-03-06

Status: Closed
Project: MariaDB ColumnStore
Component/s: N/A
Affects Version/s: None
Fix Version/s: Icebox

Type: Bug Priority: Critical
Reporter: David Hill (Inactive) Assignee: Unassigned
Resolution: Won't Do Votes: 1
Labels: None
Environment:

2um 2pm



 Description   

Customer reported:

We have 2UM, 2PM system and one of the DDL statements appeared to have an issue during a truncate. The table stays locked by DDL and cannot be cleared. The Truncate looks like it worked, however, as there is no error in the logs and the table is empty.

[root@usfit-scdb1 bin]# ./viewtablelock
There is 1 table lock

Table LockID Process PID Session Txn CreationTime State DBRoots
dairy.dairy_collection_relationship 103583 DDLProc 43080 151725 1270108 Wed Jun 19 14:32:01 2019 LOADING 1,2
[root@usfit-scdb1 bin]# ./cleartablelock 103583
Rolling back and clearing table lock for table dairy.dairy_collection_relationship; table lock 103583

Rollback error: Unable to grab lock; Lock not found or still in use.
Table lock 103583 for table dairy.dairy_collection_relationship is not cleared.

1. they did a restart of DMLProc and it didnt clear
2. they then did a restartsystem and it had this effect

A restart of the system left the table locked, but changed the LockID to 1. We were able to clear the lock at that point.

It is still curious how this 'hanging' lock came into play, as it appears the statements that it failed on did indeed truncate the table.

I got a support report for the issue and there was no errors logged at the time they believe the lock took place.



 Comments   
Comment by Abhinav santi [ 2019-07-02 ]

I have the exact same issue today. I restarted several times but nothing helped.
Do you have any workaround?

Thanks!

Comment by David Hill (Inactive) [ 2019-10-02 ]

The customer is repeatingly seeing this error. I changed the Priority to critical.

Comment by Julien Fritsch [ 2019-11-26 ]

hill 1.2.3 is released already. the fixVersion needs to be changed.

Comment by David Hill (Inactive) [ 2019-11-27 ]

Support doesn't close JIRAs, Engineering
does. This might be incorrect showing
of 1.2.3 fix.

Comment by Todd Stoffel (Inactive) [ 2023-03-06 ]

This ticket was opened prior to convergence with the server. It may have been rendered obsolete. If this issue still exists in a modern version, please open a new request.

Generated at Thu Feb 08 02:42:23 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.