Skip to content

MLE-28401: Add missing guard for logging retry message#592

Merged
yunzvanessa merged 1 commit intodevelopfrom
MLE-28401-fix-retry-logging
Apr 14, 2026
Merged

MLE-28401: Add missing guard for logging retry message#592
yunzvanessa merged 1 commit intodevelopfrom
MLE-28401-fix-retry-logging

Conversation

@yunzvanessa
Copy link
Copy Markdown
Contributor

@yunzvanessa yunzvanessa commented Apr 14, 2026

The "Retrying committing batch" debug message was logged on every batch, even the first attempt, producing misleading output that suggested retries were happening when they weren't. Added a commitRetry > 0 guard to match the existing pattern in the parent class TransformWriter.

This issue surfaced when investigating an mlcp regression failure: https://progresssoftware.atlassian.net/browse/MLE-28401

Copilot AI review requested due to automatic review settings April 14, 2026 20:28
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes misleading debug logging in DatabaseTransformWriter by ensuring the “Retrying committing batch…” message is only emitted on actual retry attempts, aligning behavior with the existing pattern in TransformWriter.

Changes:

  • Add a commitRetry > 0 guard around the retry debug log so it won’t log on the first attempt.
  • Fix minor punctuation in the log message (“batch ,” → “batch,”).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

@shuati2021 shuati2021 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@yunzvanessa yunzvanessa merged commit 2934067 into develop Apr 14, 2026
4 checks passed
@yunzvanessa yunzvanessa deleted the MLE-28401-fix-retry-logging branch April 14, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants