Issues

Select view

Select search mode

 

pt-config-diff doesn't handle innodb_temp_data_file_path correctly

Done

Description

Parameter innodb_temp_data_file_path isn't handled correctly, when the 'max' parameter is used.

Without the max parameter in the config file, the output is as expected :

 

When the max parameter is added in the config, without restart of the server, the value in the config is mentioned as a number, not a string :

After restart of the server, the config value is mentioned correctly for the server, but is still faulty for the config file :

For reference, when changing the parameter again the config file, without restart of the server, the result from pt-config-diff is as expected. It shows the value of the configfile and the server correctly :

 

Version of pt-config-diff : pt-config-diff 3.0.12

Version of MySQL server : Server version: 5.7.23-23-log Percona Server (GPL), Release '23', Revision '500fcf5'

 

Environment

None

Smart Checklist

hide

Details

Assignee

Reporter

Priority

Affects versions

Fix versions

Smart Checklist Progress

Smart Checklist

Created October 29, 2018 at 11:39 AM
Updated August 8, 2024 at 4:59 AM
Resolved February 21, 2019 at 5:59 PM

Activity

Carlos SalgueroFebruary 1, 2023 at 2:38 PM

Hello, 

It seems like the patch was overwritten by the tool to update embedded modules.
Could you please create a new PR modifying the MySQLConfig module and then apply the patch to all the scripts like this:

 

Thanks

DICT Systemen - Universiteit GentJanuary 25, 2023 at 12:57 PM

It seems, this bug was reintroduced in Percona Toolkit 3.5.1 : https://github.com/percona/percona-toolkit/blob/3.x/bin/pt-config-diff#L3321

it should be : 

with a ^ before (\d+)

Can you reapply my PR? Or shall I create a new one again.
How can we avoid that my PR will disappear again in the future?

DICT Systemen - Universiteit GentJanuary 9, 2019 at 3:40 PM

DICT Systemen - Universiteit GentJanuary 9, 2019 at 3:04 PM

This problem seems to be caused by this conversion, where the regexp matches any variable with a number followed by K, M, G or T :
 

https://github.com/percona/percona-toolkit/blob/3.0/bin/pt-config-diff#L3247

Lalit ChoudharyOctober 29, 2018 at 1:37 PM

Thank you for the report.

Validated as described. PT version 3.0.12

 

Test: