[MCOL-1108] After rollback() an active transaction is reported by mcsadmin shutdownSystem Created: 2017-12-13 Updated: 2023-10-26 Resolved: 2017-12-23 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 1.1.2 |
| Fix Version/s: | 1.1.3 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Sasha V | Assignee: | David Thompson (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Remote data streaming to MariaDB ColumnStore server |
||
| Issue Links: |
|
||||||||||||
| Sprint: | 2017-25 | ||||||||||||
| Description |
|
On a node A, I build the basic_bulk_insert from mariadb-columnstore-api-columnstore-1.1.2 example. Node A has a file /usr/local/mariadb/columnstore/etc/Columnstore.xml from node B that runs MariaDB ColumnStore 1.1.2. The example successfully writes to the test.t1 table I modifed the basic_bulk_insert.cpp by replacing the line After executing modified basic_bulk_insert, the MariaDB ColumnStore reports an active transaction upon a shutdown attempt:
There is no errors in /var/log/mariadb/columnstore/err.log. The output of the command
|
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2017-12-13 ] | ||||||
|
Excellent, easily reproduced, thanks for the report. | ||||||
| Comment by Andrew Hutchings (Inactive) [ 2017-12-15 ] | ||||||
|
We weren't sending the DBRM ROLLEDBACK command to clear the transaction from DBRM upon rollback, this left an orphaned transaction when the lock was cleared. This patch adds the missing command and sends it at the appropriate time. For QA: as description. Can't put a test in the API test suite for this because the only way to test for this state is using SessionManager::checkActiveTransaction which is used during shutdown/restart for ColumnStore. | ||||||
| Comment by David Thompson (Inactive) [ 2017-12-23 ] | ||||||
|
Verified manually using python wrapper:
verified that both stopsystem and shutdownsystem report no open transactions after the rollback. |