sys.stop or sys.pause a INSERT query triggers "BATproject: does not match always" #6730
Last updated: 2019-09-02 16:05:27 +0200
Date: 2019-07-12 21:20:33 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15
If I stop a long running INSERT INTO query with sys.stop, or sys.pause and then sys.stop, the query is eventually stopped, but subsequent queries on this table returns "BATproject: does not match always". Don't know if sys.stop is the only culprit, or sys.pause as well.
This problem is a bit nasty, because simple queries such as "select count(*) from t" and "select * from t limit 1" work correctly. You only notice the problem, if you actually touch more/all data of the table, e.g. with "select * from t where id = NNN".
Steps to Reproduce:
create table t as select * from _tables;
to find the qtag of the INSERT query
then you'll get the error:
Date: 2019-07-13 10:07:52 +0200
I was able to reproduce this.
The first werid thing is that the interrupted query did not produce any kind of error message. I would expect it to fail with an error saying that the query was brutally stopped.
Date: 2019-07-13 10:33:57 +0200
For complete details, see https//devmonetdborg/hg/MonetDB?cmd=changeset;node=1d6e8def4946
Date: 2019-07-15 17:21:59 +0200
Adding tests is difficult, but I tested it by hand and stopping an INSERT INTO query no longer break my table. Also tested on stopping an UPDATE query.
The text was updated successfully, but these errors were encountered: