Open dveeden opened 2 weeks ago
Also looks like the output isn't valid JSON cc @lance6716
/label MariaDB
The instruction message is not clear. I think the purpose is not fixing the precheck warning after follows the instruction, but remind user to avoid using old MariaDB versions which have more problems 😂
Also looks like the output isn't valid JSON
Yes I checked the code, seems currect format is deliberately processed by PrettyPrintResponseWithCheckTask
to provide visual readability 😂
@lance6716 can we fix this so the output is valid again? (and maybe add a test for that)
I guess we may have to create a custom Marshaler instead of doing text replacements on the output.
This somewhat reminds me of end_markers_in_json
in MySQL.
mysql-9.1.0> explain format=json select 1\G
*************************** 1. row ***************************
EXPLAIN: {
"query_block": {
"select_id": 1,
"message": "No tables used"
}
}
1 row in set, 1 warning (0.00 sec)
mysql-9.1.0> set end_markers_in_json=on;
Query OK, 0 rows affected (0.00 sec)
mysql-9.1.0> explain format=json select 1\G
*************************** 1. row ***************************
EXPLAIN: {
"query_block": {
"select_id": 1,
"message": "No tables used"
} /* query_block */
}
1 row in set, 1 warning (0.00 sec)
Maybe the pretty printing should be a config option?
cc @alastori @OliverS929
To be clear. This issue is about the instruction not being helpful. I've created a separate issue for the output not being valid JSON
/severity moderate
What did you do?
Try to setup DM with MariaDB 11.4.2 as upstream
What did you expect to see?
No response
What did you see instead?
Note the
"It is recommended that you upgrade MariaDB to 10.1.2 or a later version.",
Versions of the cluster
master @ 64decf62203ff818af81756368e3f302af36f946
current status of DM cluster (execute
query-status <task-name>
in dmctl)