[MDEV-31862] XA COMMIT 'unknown' ONE PHASE; should return XAER_NOTA instead of XAER_INVAL Created: 2023-08-07  Updated: 2023-11-28

Status: Confirmed
Project: MariaDB Server
Component/s: XA
Affects Version/s: 10.6.13, 10.5, 10.6, 10.9, 10.10, 10.11, 11.0, 11.1, 11.2.0
Fix Version/s: 10.5, 10.6, 10.11

Type: Bug Priority: Minor
Reporter: Martin Simka Assignee: Andrei Elkin
Resolution: Unresolved Votes: 0
Labels: not-10.4


 Description   

XA COMMIT 'unknown' ONE PHASE;

returns XAER_INVAL: Invalid arguments (or unsupported command) but I think that it should return XAER_NOTA

I tested MariaDB 10.6 and 11.2.0 and both behave the same, but older 10.3 works as I expect, it returns XAER_NOTA

XA COMMIT 'unknown';

returns expected XAER_NOTA: Unknown XID

from specification

[XAER_NOTA]
The specified XID is not known by the resource manager.
[XAER_INVAL]
Invalid arguments were specified


Generated at Thu Feb 08 10:27:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.