[MDEV-26535] Option '--log-tc' requires an argument Created: 2021-09-04  Updated: 2021-09-06  Resolved: 2021-09-04

Status: Closed
Project: MariaDB Server
Component/s: Documentation
Affects Version/s: N/A
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Roel Van de Paar Assignee: Sergei Golubchik
Resolution: Not a Bug Votes: 0
Labels: None

Issue Links:
Relates

 Description   

https://mariadb.com/kb/en/mysqld-options/#-log-tc states:

Default Value: tc.log

This is not correct:

2021-09-04  9:55:26 0 [ERROR] /test/MD280821-mariadb-10.7.0-linux-x86_64-dbg/bin/mysqld: option '--log-tc' requires an argument



 Comments   
Comment by Roel Van de Paar [ 2021-09-04 ]

Also minor typo in "From MariaDB 10.4.5, the above is included the default." on https://mariadb.com/kb/en/spider-storage-engine-overview/

Comment by Sergei Golubchik [ 2021-09-04 ]

This is correct. "Default value" means that if you don't specify --log-tc, the transaction coordinator log name will be "tc.log"

Comment by Roel Van de Paar [ 2021-09-06 ]

serg Thanks. At what point is tc.log created? Starting with and without the option (--log-tc=tc.log) does not create tc.log.

Comment by Sergei Golubchik [ 2021-09-06 ]

https://mariadb.com/kb/en/xa-transactions/#transaction-coordinator-log

If you have two or more XA-capable storage engines enabled, then a transaction coordinator log must be available.
...
If the binary log is enabled on a server, then the server will use the binary log-based transaction coordinator log. Otherwise, it will use the memory-mapped file-based transaction coordinator log.

so, you need "two or more XA-capable storage engines enabled" and you need to disable a binary log

Comment by Roel Van de Paar [ 2021-09-06 ]

serg Thank you! I had seen this before but did not make the connection between this and the file being created or not. Got it now and it works.
Using --plugin-load=ha_spider.so w/o binlog creates tc.log.

Further question; starting server with --plugin-load=ha_spider.so and --log-bin (with or without --log-tc=tc.log) does not create tc.log (as expected), however XA is still enabled for both InnoDB and Spider. Should this be impossible?

Also it looks like using --plugin-load=ha_spider.so sporadically hangs mysqld. Will log a separate bug for this.

Comment by Sergei Golubchik [ 2021-09-06 ]

I just wrote it, If the binary log is enabled on a server, then the server will use the binary log-based transaction coordinator log

XA works either way, binlog or not. logging file name can differ.

Comment by Roel Van de Paar [ 2021-09-06 ]

Note to self; don't skim read. All clear now. Thank you

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