From 26c39aa3d62c314c5faebe2a4310d68ec26e348d Mon Sep 17 00:00:00 2001 From: Vanessa Zhang Date: Tue, 14 Apr 2026 13:23:26 -0700 Subject: [PATCH] MLE-28401: Add missing guard for logging retry message --- .../contentpump/DatabaseTransformWriter.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/marklogic/contentpump/DatabaseTransformWriter.java b/src/main/java/com/marklogic/contentpump/DatabaseTransformWriter.java index b68fc7929..c862b5dfe 100644 --- a/src/main/java/com/marklogic/contentpump/DatabaseTransformWriter.java +++ b/src/main/java/com/marklogic/contentpump/DatabaseTransformWriter.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + * Copyright (c) 2011-2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -92,10 +92,12 @@ public void write(DocumentURI key, VALUE value) throws IOException, commitSleepTime = MIN_SLEEP_TIME; while (commitRetry < commitRetryLimit) { committed = false; - if (LOG.isDebugEnabled()) { - LOG.debug(getFormattedBatchId() + - "Retrying committing batch , attempts: " + - commitRetry + "/" + MAX_RETRIES); + if (commitRetry > 0) { + if (LOG.isDebugEnabled()) { + LOG.debug(getFormattedBatchId() + + "Retrying committing batch, attempts: " + + commitRetry + "/" + MAX_RETRIES); + } } queries[sid].setNewVariables(uriName, uris[sid]); queries[sid].setNewVariables(contentName, values[sid]);