[MCOL-4986] How to force a ColumnStore lock to be dropped and for a rollback to be abandoned? Created: 2022-02-04 Updated: 2022-03-29 |
|
| Status: | Open |
| Project: | MariaDB ColumnStore |
| Component/s: | DMLProc |
| Affects Version/s: | 6.2.1 |
| Fix Version/s: | Icebox |
| Type: | Bug | Priority: | Major |
| Reporter: | Simon Heyes | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Community version with MariaDB 10.6.5 - ColumnStore 6.2.1 Release 1 |
||
| Issue Links: |
|
||||||||
| Description |
|
I created a ColumnStore table and ran a series of heavy SQL statements which ended up crashing after several hours. The logs said it was rolling back and after leaving it for 24 hours with it still saying it is rolling back, I thought as the table and it's contents are not important I'll just drop it. viewtablelock showed that there is still a lock on the table from the original SQL and cleartablelock wouldn't clear it. So I just dropped the table thinking that might clear it using the drop table cs_tableau_threads_table_duplicates restrict. root@apprep:/home/appadmin/jobs# mariadb --version Table LockID Process PID Session Txn CreationTime State DBRoots root@apprep:/home/appadmin/jobs# mariadb Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> use tableau_app_uk; Database changed As you can see the table has gone but the lock is still there. How do I force the lock to be dropped and for the rollback to be abandoned? |
| Comments |
| Comment by David Hall (Inactive) [ 2022-02-07 ] |
|
Columnstore stores table definitions in two places. First it's stored the As for the lock getting removed, you could try restarting the database. May |
| Comment by Simon Heyes [ 2022-02-08 ] |
|
Thanks Dave. I have followed your instructions and have recreated the "lost" table using the comment="schema sync only" option. That worked and I can now query from the table and insert into it. Before you replied I had found that one way to clear a lock that won't go is to navigate to I have rebooted the server to make sure everything is clear and after the reboot have looked in the info.log file and can see that it is attempting to rollback a transaction. I'm assuming that it is the one that I abandoned. Feb 8 10:12:54 db2_rep DMLProc[5549]: 53.064998 |0|0|0| I 20 CAL0002: DMLProc starts rollbackAll. As you can see it seems to be in a loop and I found this previous log which looks similar. https://jira.mariadb.org/browse/MCOL-4775 If I try and create the simplest table using the columnstore engine I get an error. Shall I just leave it for a few hours and see if it sorts itself out ? With this version of the ColumnStore Engine that has come with the Community Edition 10.6, there doesn't seem to be a MariaDB ColumnStore Admin Console that I can find. I came across a note to say that mcsadmin had been superseded but I can't find by what ! Thanks Simon |
| Comment by Simon Heyes [ 2022-02-08 ] |
|
I have now tried some standard DML inserting into one of the ColumnStore tables and now get an error. insert into tableau_app_uk.cs_tableau_analytics_table Error Code: 1030. Got error -1 "Internal error < 0 (Not system error)" from storage engine ColumnStore 3.813 sec Looking in the err.log file. Feb 8 10:39:57 db2_rep writeenginesplit[15942]: 57.278774 |0|0|0| E 33 CAL0000: System is not ready (0). Verify that Columnstore is up and ready So I'm not convinced that all processes/services are started correctly and I guess this is where the mcsadmin console would come in handy. |
| Comment by Simon Heyes [ 2022-02-08 ] |
|
I have just used the rollback -r command which seems to have terminated the rollback process 2500 that was running. rollback -r 2500 The database went into readonly mode but I have put it back to readwrite with the command dbrmctl readwrite I have now been able to create a new columnstore table and my insert into existing columnstore tables is now working. So it looks like all errors and issues have been cleared so would be grateful for any advice on the mcsadmin console. |
| Comment by Roman [ 2022-02-15 ] |
|
Hey simonthepieman |