Hi Ali,
In some cases the system will force itself into read only mode as a preventive measure. You can also explicitly do this. To enable writes again:
Mcsadmin resumeDatabaseWrites
As documented here: https://mariadb.com/kb/en/mariadb/columnstore-administrative-console/
You can the try clearing the lock again.
Unless you can’t access the server, its usually better to do a shutdownSystem then start to clear the system state.
As to the root cause of this, if you can run the columnStoreSupport utility that may provide some information to us to help troubleshoot: https://mariadb.com/kb/en/mariadb/system-troubleshooting-mariadb-columnstore/#mariadb-columnstore-support-tool
David
--
You received this message because you are subscribed to the Google Groups "MariaDB ColumnStore" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mariadb-columns...@googlegroups.com.
To post to this group, send email to mariadb-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mariadb-columnstore/228a187f-a183-4f70-ad5d-8989b81dc0fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks David.
Without seeing the logs it’s hard to really help understand what is going on. Is there anything in the error or critical log that is of interest? Sometimes the debug.log tells a more complete story.
If you were doing some very high frequency DML it’s possible you hit: https://jira.mariadb.org/browse/MCOL-529 for which there is an os config workaround or we plan to have a fix in our next maintenance release 1.0.9.
If this doesn’t help, could you upload the report file to some cloud storage and share the link with me as that would work around the email size limit?
From: mariadb-c...@googlegroups.com [mailto:mariadb-c...@googlegroups.com] On Behalf Of alimajaf ALI
Sent: Saturday, April 29, 2017 10:24 PM
To: MariaDB ColumnStore <mariadb-c...@googlegroups.com>
--
You received this message because you are subscribed to the Google Groups "MariaDB ColumnStore" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mariadb-columns...@googlegroups.com.
To post to this group, send email to mariadb-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mariadb-columnstore/fd27afa5-9e82-4434-a631-7224204ce6fe%40googlegroups.com.
I can see that the problem originated around 17:41 server time on april 24th when it was running bulk transactional inserts. I think you are likely hitting https://jira.mariadb.org/browse/MCOL-529 in which case you can look at the os workaround there until we get 1.0.9 out.
You might want to consider switching to autocommit mode for your bulk insert selects as these will then get optimized internally to a stream to cpimport?
Finally regarding your current state, it looks like the server is not able to rollback the crashed transaction:
Apr 30 00:53:34 ip-10-216-33-123 DMLProc[41319]: 34.104062 |0|0|0| C 20 CAL0002: problem with rollback transaction 23162and DBRM is setting to readonly and table lock is not released: lookupLocal from extent map error encountered while looking up lbid:verID 16961368:0 and error code is -1 with message UNKNOWN (-1) (WriteEngine returns error 1)
Apr 30 00:53:34 ip-10-216-33-123 DMLProc[41319]: 34.120975 |0|0|0| C 20 CAL0002: problem with rollback transaction 23162and DBRM is setting to readonly and table lock is not released: Can't read DBRM isReadWrite [ DBRM is in READ-ONLY mode]
This normally might get cleaned up with a clean shutdown and startsystem but looks like this did not happen.
If you run:
/usr/local/mariadb/columnstore/bin/dbrmctl status (this should say read only)
/usr/local/mariadb/columnstore/bin/dbrmctl readwrite
/usr/local/mariadb/columnstore/bin/dbrmctl reload
Then try restarting the system it should clear.
David.
From: mariadb-c...@googlegroups.com [mailto:mariadb-c...@googlegroups.com] On Behalf Of alimajaf ALI
Sent: Monday, May 1, 2017 9:14 AM
To: MariaDB ColumnStore <mariadb-c...@googlegroups.com>
Subject: Re: Table lock not cleared with cleartablelock
Hi David,
--
You received this message because you are subscribed to the Google Groups "MariaDB ColumnStore" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mariadb-columns...@googlegroups.com.
To post to this group, send email to mariadb-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mariadb-columnstore/a6ebbaa5-0e52-4ac4-9ba4-f3b7432d5aab%40googlegroups.com.
David,
/usr/local/mariadb/columnstore/bin/dbrmctl readwrite
/usr/local/mariadb/columnstore/bin/dbrmctl reload
Did you run the dbrmctl steps after clearing the lock?
From: mariadb-c...@googlegroups.com [mailto:mariadb-c...@googlegroups.com] On Behalf Of alimajaf ALI
Sent: Tuesday, May 2, 2017 12:39 AM
To: MariaDB ColumnStore <mariadb-c...@googlegroups.com>
Cc: alimaj...@gmail.com
Subject: Re: Table lock not cleared with cleartablelock
David,
--
You received this message because you are subscribed to the Google Groups "MariaDB ColumnStore" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mariadb-columns...@googlegroups.com.
To post to this group, send email to mariadb-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mariadb-columnstore/ddd6ad30-46d7-4c60-abcf-40679866ce4b%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mariadb-columnstore+unsub...@googlegroups.com.
To post to this group, send email to mariadb-columnstore@googlegroups.com.
By restart did you issue restartSytem or shutdownsystem then startSystem? The dbrmctl commands should have the effect of clearing the failed transaction log entries..
To unsubscribe from this group and stop receiving emails from it, send an email to mariadb-columns...@googlegroups.com.
To post to this group, send email to mariadb-c...@googlegroups.com.