Skip to content

Conversation

@RazvanLiviuVarzaru
Copy link
Collaborator

Related: MariaDB/mtr-log-collector#1

This patch can be merged without waiting for MariaDB/mtr-log-collector#1 . Clients will continue to use .xml files, ensuring backward compatibility.

A separate patch will update the clients to use stdout.log files.

Changes:

  • Update mtr_reporter.sh to handle log files
  • Introduce a dry-run option for local testing
  • Make the service name more generic: MTR_LOG_COLLECTOR_BASE_URL
  • Update MTRReporter to handle both XML and log formats; XML remains the default to avoid breaking existing clients

@fauust
Copy link
Collaborator

fauust commented Jan 26, 2026

Looks good. It's better to compare integer in bash with (( INT != 1)) instead of comparing string [[ $INT != "1" ]].

Related: MariaDB/mtr-log-collector#1

This patch can be merged without waiting for MariaDB/mtr-log-collector#1
. Clients will continue to use .xml files, ensuring backward compatibility.

A separate patch will update the clients to use `stdout.log` files.

Changes:
- Update mtr_reporter.sh to handle log files
- Introduce a dry-run option for local testing
- Make the service name more generic: `MTR_LOG_COLLECTOR_BASE_URL`
- Update `MTRReporter` to handle both XML and log formats; XML remains the default to avoid breaking existing clients
@RazvanLiviuVarzaru
Copy link
Collaborator Author

RazvanLiviuVarzaru commented Jan 27, 2026

Looks good. It's better to compare integer in bash with (( INT != 1)) instead of comparing string [[ $INT != "1" ]].

Thank you @fauust for the review, fixed the comparison.
Please approve if you're done reviewing.

Also let me know if you want to review: MariaDB/mtr-log-collector#1

@fauust fauust merged commit d98e784 into MariaDB:dev Jan 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants