[MDEV-26261] [ERROR] Event Scheduler: Got error 170 "It is not possible to log this statement" from storage engine InnoDB Created: 2021-07-28 Updated: 2023-11-08 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Events |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5, 10.6, 10.7 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Roel Van de Paar | Assignee: | Brandon Nesterenko |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | affects-tests | ||
| Description |
|
The issue starts happening as soon as the table is created. This may prove not to be a bug, however even in that case the error is unclear in the error log (i.e. it would be hard for any DBA to discover what the cause was especially if multiple events were scheduled). If not a bug, then this can be a feature request to add the failing query to the error message. The reason it may be a bug however is that when the INSERT statement is executed manually at the command line (after creating a table with two columns and with a similar setup), the issue does not happen (or is not reported given that the event scheduler is not active in that case, though no other error is reported either).
Leads to:
Yet,
Produces no such issue. This is somewhat expected as the error is reported by the event scheduler in the first case. However, no other error is produced either, thus; either the statement should be loggable (alike to the second example) or an error needs to be produced in this case also (alike to the first example) - and in such case the error can be improved by adding the failing-to-be-logged query to it. |
| Comments |
| Comment by Roel Van de Paar [ 2021-07-28 ] |
|
It may be that creating the event before the isolation level set affects things? |
| Comment by Andrei Elkin [ 2022-01-29 ] |
|
bnestere, salve. This one provides an opportunity to learn about another server feature As Roel hints in the description there's no info what exact query made ES angry. Cheers, Andrei |