[MDEV-19555] sql/sql_error.h:1036: uint Diagnostics_area::sql_errno() const: Assertion `m_status == DA_ERROR' failed for CHECK TABLE Created: 2019-05-22 Updated: 2022-01-26 Resolved: 2022-01-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Admin statements, Locking |
| Affects Version/s: | 10.4.6, 10.5.1, 10.4, 10.5, 10.6 |
| Fix Version/s: | 10.4.23, 10.5.14, 10.6.6, 10.7.2, 10.8.1 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Matthias Leich | Assignee: | Rucha Deodhar |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | affects-tests | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
Upd: See MTR test case in the comments
|
| Comments |
| Comment by Matthias Leich [ 2019-05-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
19555.log – Protocol of my RQG run including backtrace | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2019-08-30 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Note: The test case is non-deterministic, run with --repeat=N. It always fails for me within 5 attempts, but it can vary on different machines and builds.
Not reproducible on 10.3. | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Matthias Leich [ 2020-02-07 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
10.5.1 commit 42e825dd0a8d25c1d6fa93f5a07115ceed3ee0ff 2020-02-04 compiled with debug – replay | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2020-06-02 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
I see this one all over the runs too. A fix would be appreciated. Thank you! | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrei Elkin [ 2022-01-18 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
rucha174, please consider this patch
According to git-annotate f189f34ed4b8 refactored thd->transaction.xid_state.rm_error= into the current form, but the assignment pre-condition was not preserved. Originally that was to the explicit XA trx, that's what my patch makes. | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Matthias Leich [ 2022-01-24 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Matthias Leich [ 2022-01-25 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrei Elkin [ 2022-01-26 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Rucha, howdy. The patch merely restores logical flaw in the problematic sources code spot. Thank you, Andrei. | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrei Elkin [ 2022-01-26 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Approved by Sanja. For merging, there's a usual conflict dealing with THD::transaction that is the pointer in higher branches. |