This is an automated email from the ASF dual-hosted git repository.

exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new 319954ea024 NIFI-16606 Refactored multiline logging statements to 
eliminate string concatenation (#11943)
319954ea024 is described below

commit 319954ea02425700e4770820d90bb0894c331dcf
Author: dan-s1 <[email protected]>
AuthorDate: Mon Nov 30 21:55:10 2026 -0500

    NIFI-16606 Refactored multiline logging statements to eliminate string 
concatenation (#11943)
    
    - Converted all multiline concatenated strings  log statements to text 
block log statements
    
    Signed-off-by: David Handermann <[email protected]>
---
 .../apache/nifi/processors/aws/s3/PutS3Object.java | 23 ++++++++++++----------
 .../org/apache/nifi/processors/GeoEnrichIP.java    |  7 ++++---
 .../org/apache/nifi/processors/ISPEnrichIP.java    |  7 ++++---
 .../util/provenance/ProvenanceEventConsumer.java   | 10 ++++++----
 .../org/apache/nifi/py4j/StandardPythonBridge.java |  5 +++--
 .../nifi/processors/standard/JoinEnrichment.java   |  5 +++--
 .../apache/nifi/processors/standard/TailFile.java  |  5 +++--
 .../processors/attributes/UpdateAttribute.java     | 10 ++++++----
 .../zookeeper/CuratorLeaderElectionManager.java    |  5 +++--
 .../index/lucene/IndexDirectoryManager.java        |  5 +++--
 .../index/lucene/MigrateDefunctIndex.java          | 10 ++++++----
 .../coordination/node/NodeClusterCoordinator.java  |  5 +++--
 .../parameter/StandardParameterProviderNode.java   |  5 +++--
 .../org/apache/nifi/groups/StandardDataValve.java  | 10 ++++++----
 .../nifi/controller/AbstractComponentNode.java     |  5 +++--
 .../clustered/SocketLoadBalancedFlowFileQueue.java |  5 +++--
 .../server/StandardLoadBalanceProtocol.java        |  5 +++--
 .../nifi/groups/StandardStatelessGroupNode.java    |  5 +++--
 .../nar/StandardExtensionDiscoveringManager.java   | 10 ++++++----
 .../nifi/web/dao/impl/StandardProcessGroupDAO.java |  5 +++--
 .../ldap/tenants/LdapUserGroupProvider.java        | 21 +++++++++++---------
 .../security/authentication/IdentityFilter.java    |  5 +++--
 .../stateless/engine/StandardStatelessEngine.java  |  5 +++--
 .../tests/system/TroubleshootingTestWatcher.java   |  5 +++--
 24 files changed, 108 insertions(+), 75 deletions(-)

diff --git 
a/nifi-extension-bundles/nifi-aws-bundle/nifi-aws-processors/src/main/java/org/apache/nifi/processors/aws/s3/PutS3Object.java
 
b/nifi-extension-bundles/nifi-aws-bundle/nifi-aws-processors/src/main/java/org/apache/nifi/processors/aws/s3/PutS3Object.java
index 71237b5c303..3ad794ca158 100644
--- 
a/nifi-extension-bundles/nifi-aws-bundle/nifi-aws-processors/src/main/java/org/apache/nifi/processors/aws/s3/PutS3Object.java
+++ 
b/nifi-extension-bundles/nifi-aws-bundle/nifi-aws-processors/src/main/java/org/apache/nifi/processors/aws/s3/PutS3Object.java
@@ -688,9 +688,10 @@ public class PutS3Object extends AbstractS3Processor {
                         if (currentState != null) {
                             if (!currentState.getCompletedParts().isEmpty()) {
                                 final CompletedPart lastCompletedPart = 
currentState.getCompletedParts().getLast();
-                                getLogger().info("Resuming upload for 
flowfile='{}' bucket='{}' key='{}' " +
-                                                "uploadID='{}' 
filePosition='{}' partSize='{}' storageClass='{}' " +
-                                                "contentLength='{}' 
partsLoaded={} lastPart={}/{}",
+                                getLogger().info("""
+                                                Resuming upload for 
flowfile='{}' bucket='{}' key='{}' \
+                                                uploadID='{}' 
filePosition='{}' partSize='{}' storageClass='{}' \
+                                                contentLength='{}' 
partsLoaded={} lastPart={}/{}""",
                                         ffFilename, bucket, key, 
currentState.getUploadId(),
                                         currentState.getFilePosition(), 
currentState.getPartSize(),
                                         
currentState.getStorageClass().toString(),
@@ -699,9 +700,10 @@ public class PutS3Object extends AbstractS3Processor {
                                         
Integer.toString(lastCompletedPart.partNumber()),
                                         lastCompletedPart.eTag());
                             } else {
-                                getLogger().info("Resuming upload for 
flowfile='{}' bucket='{}' key='{}' " +
-                                                "uploadID='{}' 
filePosition='{}' partSize='{}' storageClass='{}' " +
-                                                "contentLength='{}' no 
partsLoaded",
+                                getLogger().info("""
+                                                Resuming upload for 
flowfile='{}' bucket='{}' key='{}' \
+                                                uploadID='{}' 
filePosition='{}' partSize='{}' storageClass='{}' \
+                                                contentLength='{}' no 
partsLoaded""",
                                         ffFilename, bucket, key, 
currentState.getUploadId(),
                                         currentState.getFilePosition(), 
currentState.getPartSize(),
                                         
currentState.getStorageClass().toString(),
@@ -940,10 +942,11 @@ public class PutS3Object extends AbstractS3Processor {
                 if (e instanceof final S3Exception s3e
                         && s3e.statusCode() == 403
                         && 
s3e.awsErrorDetails().errorCode().equals("AccessDenied")) {
-                    getLogger().warn("AccessDenied checking S3 Multipart 
Upload list for {}: {} " +
-                            "** The configured user does not have the 
s3:ListBucketMultipartUploads permission " +
-                            "for this bucket, S3 ageoff cannot occur without 
this permission.  Next ageoff check " +
-                            "time is being advanced by interval to prevent 
checking on every upload **", bucket, e.getMessage());
+                    getLogger().warn("""
+                            AccessDenied checking S3 Multipart Upload list for 
{}: {} \
+                            ** The configured user does not have the 
s3:ListBucketMultipartUploads permission \
+                            for this bucket, S3 ageoff cannot occur without 
this permission.  Next ageoff check \
+                            time is being advanced by interval to prevent 
checking on every upload **""", bucket, e.getMessage());
                     lastS3AgeOff.set(System.currentTimeMillis());
                 } else {
                     getLogger().error("Error checking S3 Multipart Upload list 
for {}", bucket, e);
diff --git 
a/nifi-extension-bundles/nifi-enrich-bundle/nifi-enrich-processors/src/main/java/org/apache/nifi/processors/GeoEnrichIP.java
 
b/nifi-extension-bundles/nifi-enrich-bundle/nifi-enrich-processors/src/main/java/org/apache/nifi/processors/GeoEnrichIP.java
index 0ab2d89629a..32b29647f3f 100644
--- 
a/nifi-extension-bundles/nifi-enrich-bundle/nifi-enrich-processors/src/main/java/org/apache/nifi/processors/GeoEnrichIP.java
+++ 
b/nifi-extension-bundles/nifi-enrich-bundle/nifi-enrich-processors/src/main/java/org/apache/nifi/processors/GeoEnrichIP.java
@@ -112,9 +112,10 @@ public class GeoEnrichIP extends AbstractEnrichIP {
             inetAddress = InetAddress.getByName(ipAttributeValue);
         } catch (final IOException ioe) {
             session.transfer(flowFile, REL_NOT_FOUND);
-            getLogger().warn("Could not resolve the IP for value '{}', 
contained within the attribute '{}' in " +
-                            "FlowFile '{}'. This is usually caused by issue 
resolving the appropriate DNS record or " +
-                            "providing the processor with an invalid IP 
address ",
+            getLogger().warn("""
+                            Could not resolve the IP for value '{}', contained 
within the attribute '{}' in \
+                            FlowFile '{}'. This is usually caused by issue 
resolving the appropriate DNS record or \
+                            providing the processor with an invalid IP 
address""",
                             ipAttributeValue, 
IP_ADDRESS_ATTRIBUTE.getDisplayName(), flowFile, ioe);
             return;
         }
diff --git 
a/nifi-extension-bundles/nifi-enrich-bundle/nifi-enrich-processors/src/main/java/org/apache/nifi/processors/ISPEnrichIP.java
 
b/nifi-extension-bundles/nifi-enrich-bundle/nifi-enrich-processors/src/main/java/org/apache/nifi/processors/ISPEnrichIP.java
index 8d3b38828cd..253d861fa1a 100644
--- 
a/nifi-extension-bundles/nifi-enrich-bundle/nifi-enrich-processors/src/main/java/org/apache/nifi/processors/ISPEnrichIP.java
+++ 
b/nifi-extension-bundles/nifi-enrich-bundle/nifi-enrich-processors/src/main/java/org/apache/nifi/processors/ISPEnrichIP.java
@@ -81,9 +81,10 @@ public class ISPEnrichIP extends AbstractEnrichIP {
             inetAddress = InetAddress.getByName(ipAttributeValue);
         } catch (final IOException ioe) {
             session.transfer(flowFile, REL_NOT_FOUND);
-            getLogger().warn("Could not resolve the IP for value '{}', 
contained within the attribute '{}' in " +
-                            "FlowFile '{}'. This is usually caused by issue 
resolving the appropriate DNS record or " +
-                            "providing the processor with an invalid IP 
address ",
+            getLogger().warn("""
+                            Could not resolve the IP for value '{}', contained 
within the attribute '{}' in \
+                            FlowFile '{}'. This is usually caused by issue 
resolving the appropriate DNS record or \
+                            providing the processor with an invalid IP 
address""",
                     ipAttributeValue, IP_ADDRESS_ATTRIBUTE.getDisplayName(), 
flowFile, ioe);
             return;
         }
diff --git 
a/nifi-extension-bundles/nifi-extension-utils/nifi-reporting-utils/src/main/java/org/apache/nifi/reporting/util/provenance/ProvenanceEventConsumer.java
 
b/nifi-extension-bundles/nifi-extension-utils/nifi-reporting-utils/src/main/java/org/apache/nifi/reporting/util/provenance/ProvenanceEventConsumer.java
index 787b0bac1b9..de2292e8c58 100644
--- 
a/nifi-extension-bundles/nifi-extension-utils/nifi-reporting-utils/src/main/java/org/apache/nifi/reporting/util/provenance/ProvenanceEventConsumer.java
+++ 
b/nifi-extension-bundles/nifi-extension-utils/nifi-reporting-utils/src/main/java/org/apache/nifi/reporting/util/provenance/ProvenanceEventConsumer.java
@@ -179,12 +179,14 @@ public class ProvenanceEventConsumer {
 
             if (currMaxId < (firstEventId - 1)) {
                 if (BEGINNING_OF_STREAM.getValue().equals(startPositionValue)) 
{
-                    logger.warn("Current provenance max id is {} which is less 
than what was stored in state as the last queried event, which was {}. This 
means the provenance restarted its " +
-                            "ids. Restarting querying from the beginning.", 
currMaxId, firstEventId);
+                    logger.warn("""
+                            Current provenance max id is {} which is less than 
what was stored in state as the last queried event, which was {}. This means 
the provenance restarted its \
+                            ids. Restarting querying from the beginning.""", 
currMaxId, firstEventId);
                     firstEventId = -1;
                 } else {
-                    logger.warn("Current provenance max id is {} which is less 
than what was stored in state as the last queried event, which was {}. This 
means the provenance restarted its " +
-                            "ids. Restarting querying from the latest event in 
the Provenance Repository.", currMaxId, firstEventId);
+                    logger.warn("""
+                            Current provenance max id is {} which is less than 
what was stored in state as the last queried event, which was {}. This means 
the provenance restarted its \
+                            ids. Restarting querying from the latest event in 
the Provenance Repository.""", currMaxId, firstEventId);
                     firstEventId = currMaxId;
                 }
             }
diff --git 
a/nifi-extension-bundles/nifi-py4j-extension-bundle/nifi-py4j-bridge/src/main/java/org/apache/nifi/py4j/StandardPythonBridge.java
 
b/nifi-extension-bundles/nifi-py4j-extension-bundle/nifi-py4j-bridge/src/main/java/org/apache/nifi/py4j/StandardPythonBridge.java
index 834b5492d49..8cf33691610 100644
--- 
a/nifi-extension-bundles/nifi-py4j-extension-bundle/nifi-py4j-bridge/src/main/java/org/apache/nifi/py4j/StandardPythonBridge.java
+++ 
b/nifi-extension-bundles/nifi-py4j-extension-bundle/nifi-py4j-bridge/src/main/java/org/apache/nifi/py4j/StandardPythonBridge.java
@@ -298,8 +298,9 @@ public class StandardPythonBridge implements PythonBridge {
             }
         } else {
             final PythonProcess pythonProcess = 
processesForType.get(processIndex);
-            logger.warn("Using existing process {} to create Processor of type 
{} because configuration indicates that no more than {} processes " +
-                "should be created for any Processor Type. This may result in 
slower performance for Processors of this type",
+            logger.warn("""
+                Using existing process {} to create Processor of type {} 
because configuration indicates that no more than {} processes \
+                should be created for any Processor Type. This may result in 
slower performance for Processors of this type""",
                 pythonProcess, extensionId.type(), 
processConfig.getMaxPythonProcessesPerType());
 
             return pythonProcess;
diff --git 
a/nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/JoinEnrichment.java
 
b/nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/JoinEnrichment.java
index 348ad48058c..0485ac4ead4 100644
--- 
a/nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/JoinEnrichment.java
+++ 
b/nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/JoinEnrichment.java
@@ -319,8 +319,9 @@ public class JoinEnrichment extends BinFiles {
         final FlowFile enrichment = getFlowFileWithRole(flowFiles, 
EnrichmentRole.ENRICHMENT);
 
         if (original == null || enrichment == null) {
-            getLogger().error("Received two FlowFiles {} but could not find 
both an 'original' and an 'enrichment' FlowFile. The FlowFiles do not appear to 
have the proper attributes necessary for " +
-                "use with this Processor. Routing to {}", flowFiles, 
REL_FAILURE);
+            getLogger().error("""
+                Received two FlowFiles {} but could not find both an 
'original' and an 'enrichment' FlowFile. The FlowFiles do not appear to have 
the proper attributes necessary for \
+                use with this Processor. Routing to {}""", flowFiles, 
REL_FAILURE);
             return transferFailure(flowFiles, session);
         }
 
diff --git 
a/nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/TailFile.java
 
b/nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/TailFile.java
index baacc5288d8..1842061dc2e 100644
--- 
a/nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/TailFile.java
+++ 
b/nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/TailFile.java
@@ -1344,8 +1344,9 @@ public class TailFile extends AbstractProcessor {
                 // consume the rest of the data, including the last line, even 
if it doesn't have a line ending.
                 final long millisSinceModified = getCurrentTimeMs() - 
newestFile.lastModified();
                 if (millisSinceModified < postRolloverTailMillis) {
-                    getLogger().debug("Rolled over file {} (size={}, 
lastModified={}) was modified {} millis ago, which isn't long enough to consume 
file fully without taking line endings into " +
-                        "account. Will do nothing for now.", newestFile, 
newestFile.length(), newestFile.lastModified(), millisSinceModified);
+                    getLogger().debug("""
+                        Rolled over file {} (size={}, lastModified={}) was 
modified {} millis ago, which isn't long enough to consume file fully without 
taking line endings into \
+                        account. Will do nothing for now.""", newestFile, 
newestFile.length(), newestFile.lastModified(), millisSinceModified);
                     return true;
                 }
 
diff --git 
a/nifi-extension-bundles/nifi-update-attribute-bundle/nifi-update-attribute-processor/src/main/java/org/apache/nifi/processors/attributes/UpdateAttribute.java
 
b/nifi-extension-bundles/nifi-update-attribute-bundle/nifi-update-attribute-processor/src/main/java/org/apache/nifi/processors/attributes/UpdateAttribute.java
index fd32d0f46d2..d377f9378e7 100644
--- 
a/nifi-extension-bundles/nifi-update-attribute-bundle/nifi-update-attribute-processor/src/main/java/org/apache/nifi/processors/attributes/UpdateAttribute.java
+++ 
b/nifi-extension-bundles/nifi-update-attribute-bundle/nifi-update-attribute-processor/src/main/java/org/apache/nifi/processors/attributes/UpdateAttribute.java
@@ -551,8 +551,9 @@ public class UpdateAttribute extends AbstractProcessor 
implements Searchable {
 
                     boolean setState = session.replaceState(stateMap, 
stateWorkingAttributes, Scope.LOCAL);
                     if (!setState) {
-                        logger.warn("Failed to update the state after 
successfully processing {} due to having an old version of the StateMap. This 
is normally due to multiple threads running at " +
-                                "once; transferring to '{}'", 
incomingFlowFile, REL_FAILED_SET_STATE.getName());
+                        logger.warn("""
+                                Failed to update the state after successfully 
processing {} due to having an old version of the StateMap. This is normally 
due to multiple threads running at \
+                                once; transferring to '{}'""", 
incomingFlowFile, REL_FAILED_SET_STATE.getName());
 
                         flowFilesToTransfer.remove(incomingFlowFile);
                         if (!flowFilesToTransfer.isEmpty()) {
@@ -564,8 +565,9 @@ public class UpdateAttribute extends AbstractProcessor 
implements Searchable {
                     }
                 }
             } catch (IOException e) {
-                logger.error("Failed to set the state after successfully 
processing {} due a failure when setting the state. This is normally due to 
multiple threads running at " +
-                        "once; transferring to '{}'", incomingFlowFile, 
REL_FAILED_SET_STATE.getName(), e);
+                logger.error("""
+                        Failed to set the state after successfully processing 
{} due a failure when setting the state. This is normally due to multiple 
threads running at \
+                        once; transferring to '{}'""", incomingFlowFile, 
REL_FAILED_SET_STATE.getName(), e);
 
                 flowFilesToTransfer.remove(incomingFlowFile);
                 if (!flowFilesToTransfer.isEmpty()) {
diff --git 
a/nifi-framework-bundle/nifi-framework-extensions/nifi-framework-zookeeper-bundle/nifi-framework-zookeeper-leader-election/src/main/java/org/apache/nifi/framework/cluster/leader/zookeeper/CuratorLeaderElectionManager.java
 
b/nifi-framework-bundle/nifi-framework-extensions/nifi-framework-zookeeper-bundle/nifi-framework-zookeeper-leader-election/src/main/java/org/apache/nifi/framework/cluster/leader/zookeeper/CuratorLeaderElectionManager.java
index 8f7689ebfb8..4741f960fba 100644
--- 
a/nifi-framework-bundle/nifi-framework-extensions/nifi-framework-zookeeper-bundle/nifi-framework-zookeeper-leader-election/src/main/java/org/apache/nifi/framework/cluster/leader/zookeeper/CuratorLeaderElectionManager.java
+++ 
b/nifi-framework-bundle/nifi-framework-extensions/nifi-framework-zookeeper-bundle/nifi-framework-zookeeper-leader-election/src/main/java/org/apache/nifi/framework/cluster/leader/zookeeper/CuratorLeaderElectionManager.java
@@ -456,8 +456,9 @@ public class CuratorLeaderElectionManager extends 
TrackedLeaderElectionManager {
                     logger.debug("Took {} nanoseconds to reach out to 
ZooKeeper in order to check whether or not this node is currently the leader 
for Role '{}'. ZooKeeper reported {}",
                         nanos, roleName, zkLeader);
                 } catch (final Exception e) {
-                    logger.warn("Attempted to reach out to ZooKeeper to 
determine whether or not this node is the elected leader for Role '{}' but 
failed to communicate with ZooKeeper. " +
-                        "Assuming that this node is not the leader.", 
roleName, e);
+                    logger.warn("""
+                        Attempted to reach out to ZooKeeper to determine 
whether or not this node is the elected leader for Role '{}' but failed to 
communicate with ZooKeeper. \
+                        Assuming that this node is not the leader.""", 
roleName, e);
 
                     return false;
                 }
diff --git 
a/nifi-framework-bundle/nifi-framework-extensions/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/main/java/org/apache/nifi/provenance/index/lucene/IndexDirectoryManager.java
 
b/nifi-framework-bundle/nifi-framework-extensions/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/main/java/org/apache/nifi/provenance/index/lucene/IndexDirectoryManager.java
index 4fd52947e7b..4a4d36639a6 100644
--- 
a/nifi-framework-bundle/nifi-framework-extensions/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/main/java/org/apache/nifi/provenance/index/lucene/IndexDirectoryManager.java
+++ 
b/nifi-framework-bundle/nifi-framework-extensions/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/main/java/org/apache/nifi/provenance/index/lucene/IndexDirectoryManager.java
@@ -440,8 +440,9 @@ public class IndexDirectoryManager {
         } else {
             final String partitionName = getPartitionName(indexDirectory);
             if (partitionName == null) {
-                logger.debug("Attempted to replace old index directory {} with 
new index directory but the old index directory did not " +
-                    "exist and could not determine partition name for new 
index directory", indexDirectory);
+                logger.debug("""
+                    Attempted to replace old index directory {} with new index 
directory but the old index directory did not \
+                    exist and could not determine partition name for new index 
directory""", indexDirectory);
             } else {
                 final IndexLocation indexLocation = new 
IndexLocation(indexDirectory, timestamp, partitionName);
                 indexLocationByTimestamp.computeIfAbsent(timestamp, key -> new 
ArrayList<>()).add(indexLocation);
diff --git 
a/nifi-framework-bundle/nifi-framework-extensions/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/main/java/org/apache/nifi/provenance/index/lucene/MigrateDefunctIndex.java
 
b/nifi-framework-bundle/nifi-framework-extensions/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/main/java/org/apache/nifi/provenance/index/lucene/MigrateDefunctIndex.java
index e3e46c69949..3a739e34c40 100644
--- 
a/nifi-framework-bundle/nifi-framework-extensions/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/main/java/org/apache/nifi/provenance/index/lucene/MigrateDefunctIndex.java
+++ 
b/nifi-framework-bundle/nifi-framework-extensions/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/main/java/org/apache/nifi/provenance/index/lucene/MigrateDefunctIndex.java
@@ -100,8 +100,9 @@ public class MigrateDefunctIndex implements Runnable {
             try {
                 FileUtils.deleteFile(tempIndexDir, true);
             } catch (final Exception e) {
-                logger.error("Attempted to rebuild index for {} but there 
already exists a temporary Lucene 9 index at {}. " +
-                    "Attempted to delete existing temp directory but failed. 
This index will not be rebuilt.", tempIndexDir, tempIndexDir, e);
+                logger.error("""
+                    Attempted to rebuild index for {} but there already exists 
a temporary Lucene 9 index at {}. \
+                    Attempted to delete existing temp directory but failed. 
This index will not be rebuilt.""", tempIndexDir, tempIndexDir, e);
                 return false;
             }
         }
@@ -111,8 +112,9 @@ public class MigrateDefunctIndex implements Runnable {
             try {
                 FileUtils.deleteFile(migratedIndexDir, true);
             } catch (final Exception e) {
-                logger.error("Attempted to rebuild index for {} but there 
already exists a Lucene 9 index at {}. " +
-                    "Attempted to delete existing Lucene 8 directory but 
failed. This index will not be rebuilt.", migratedIndexDir, migratedIndexDir, 
e);
+                logger.error("""
+                    Attempted to rebuild index for {} but there already exists 
a Lucene 9 index at {}. \
+                    Attempted to delete existing Lucene 8 directory but 
failed. This index will not be rebuilt.""", migratedIndexDir, migratedIndexDir, 
e);
                 return false;
             }
         }
diff --git 
a/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/node/NodeClusterCoordinator.java
 
b/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/node/NodeClusterCoordinator.java
index d973f07a70c..4e6fe996a70 100644
--- 
a/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/node/NodeClusterCoordinator.java
+++ 
b/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/node/NodeClusterCoordinator.java
@@ -188,8 +188,9 @@ public class NodeClusterCoordinator implements 
ClusterCoordinator, ProtocolHandl
                     if (localNodeId == null) {
                         localNodeId = nodeId;
                     } else {
-                        logger.warn("When recovering state, determined that 
two Node Identifiers claim to be the local Node Identifier: {} and {}. Will 
ignore both of these and wait until " +
-                            "connecting to cluster to determine which Node 
Identifier is the local Node Identifier", localNodeId.getFullDescription(), 
nodeId.getFullDescription());
+                        logger.warn("""
+                            When recovering state, determined that two Node 
Identifiers claim to be the local Node Identifier: {} and {}. Will ignore both 
of these and wait until \
+                            connecting to cluster to determine which Node 
Identifier is the local Node Identifier""", localNodeId.getFullDescription(), 
nodeId.getFullDescription());
                         localNodeId = null;
                     }
                 }
diff --git 
a/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/controller/parameter/StandardParameterProviderNode.java
 
b/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/controller/parameter/StandardParameterProviderNode.java
index fab91ea2d2c..fcecfd9edcc 100644
--- 
a/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/controller/parameter/StandardParameterProviderNode.java
+++ 
b/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/controller/parameter/StandardParameterProviderNode.java
@@ -340,8 +340,9 @@ public class StandardParameterProviderNode extends 
AbstractComponentNode impleme
                         validParameters.add(parameter);
                         
parameterNames.add(parameter.getDescriptor().getName());
                     } else {
-                        getLogger().warn("Skipping parameter [{}], whose name 
has invalid characters. Only alpha-numeric characters (a-z, A-Z, 0-9), hyphens 
(-), underscores (_), " +
-                                "periods (.), and spaces ( ) are accepted for 
parameter names in NiFi.", parameterName);
+                        getLogger().warn("""
+                                Skipping parameter [{}], whose name has 
invalid characters. Only alpha-numeric characters (a-z, A-Z, 0-9), hyphens (-), 
underscores (_), \
+                                periods (.), and spaces ( ) are accepted for 
parameter names in NiFi.""", parameterName);
                     }
                 }
                 this.fetchedParameterGroups.add(new ParameterGroup(groupName, 
toProvidedParameters(validParameters)));
diff --git 
a/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/groups/StandardDataValve.java
 
b/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/groups/StandardDataValve.java
index a5c3c028e44..211309534d0 100644
--- 
a/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/groups/StandardDataValve.java
+++ 
b/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/groups/StandardDataValve.java
@@ -307,8 +307,9 @@ public class StandardDataValve implements DataValve {
         try {
             stateMap = stateManager.getState(Scope.LOCAL);
         } catch (final Exception e) {
-            logger.error("Failed to recover state for {}. This could result in 
Process Groups configured with a FlowFile Concurrency of SINGLE_BATCH_PER_NODE 
to get data from " +
-                "multiple batches concurrently or stop ingesting data", this, 
e);
+            logger.error("""
+                Failed to recover state for {}. This could result in Process 
Groups configured with a FlowFile Concurrency of SINGLE_BATCH_PER_NODE to get 
data from \
+                multiple batches concurrently or stop ingesting data""", this, 
e);
             return;
         }
 
@@ -346,8 +347,9 @@ public class StandardDataValve implements DataValve {
         try {
             stateManager.setState(stateValues, Scope.LOCAL);
         } catch (final Exception e) {
-            logger.error("Failed to store state for {}. If NiFi is restarted 
before state is properly stored, this could result Process Groups configured 
with a " +
-                "FlowFile Concurrency of SINGLE_BATCH_PER_NODE to get data 
from multiple batches concurrently or stop ingesting data", this, e);
+            logger.error("""
+                Failed to store state for {}. If NiFi is restarted before 
state is properly stored, this could result Process Groups configured with a \
+                FlowFile Concurrency of SINGLE_BATCH_PER_NODE to get data from 
multiple batches concurrently or stop ingesting data""", this, e);
         }
     }
 
diff --git 
a/nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/controller/AbstractComponentNode.java
 
b/nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/controller/AbstractComponentNode.java
index 2e8ce97da57..5101c31f44d 100644
--- 
a/nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/controller/AbstractComponentNode.java
+++ 
b/nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/controller/AbstractComponentNode.java
@@ -1299,8 +1299,9 @@ public abstract class AbstractComponentNode implements 
ComponentNode {
                         logger.error("Failed to notify {} that property {} 
changed", this, propertyDescriptor, e);
                     }
                 } else {
-                    logger.debug("Parameter Context updated, and property {} 
of {} does reference the updated Parameters. However, the overall property 
value remained unchanged so will not call " +
-                        "onPropertyModified().", propertyDescriptor, this);
+                    logger.debug("""
+                        Parameter Context updated, and property {} of {} does 
reference the updated Parameters. However, the overall property value remained 
unchanged so will not call \
+                        onPropertyModified().""", propertyDescriptor, this);
                 }
             }
         }
diff --git 
a/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/queue/clustered/SocketLoadBalancedFlowFileQueue.java
 
b/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/queue/clustered/SocketLoadBalancedFlowFileQueue.java
index db05a350d8a..e68c88f5ba5 100644
--- 
a/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/queue/clustered/SocketLoadBalancedFlowFileQueue.java
+++ 
b/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/queue/clustered/SocketLoadBalancedFlowFileQueue.java
@@ -1105,8 +1105,9 @@ public class SocketLoadBalancedFlowFileQueue extends 
AbstractFlowFileQueue imple
 
             adjustSize(-expired.size(), 
-expired.stream().mapToLong(FlowFileRecord::getSize).sum());
         } catch (IOException e) {
-            logger.warn("Encountered {} expired FlowFiles but failed to update 
FlowFile Repository. This FlowFiles may re-appear in the queue after NiFi is 
restarted and will be expired again at " +
-                    "that point.", expiredRecords.size(), e);
+            logger.warn("""
+                    Encountered {} expired FlowFiles but failed to update 
FlowFile Repository. This FlowFiles may re-appear in the queue after NiFi is 
restarted and will be expired again at \
+                    that point.""", expiredRecords.size(), e);
         }
     }
 
diff --git 
a/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/queue/clustered/server/StandardLoadBalanceProtocol.java
 
b/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/queue/clustered/server/StandardLoadBalanceProtocol.java
index 40e10035092..1e8cf674e32 100644
--- 
a/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/queue/clustered/server/StandardLoadBalanceProtocol.java
+++ 
b/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/queue/clustered/server/StandardLoadBalanceProtocol.java
@@ -382,8 +382,9 @@ public class StandardLoadBalanceProtocol implements 
LoadBalanceProtocol {
             events.add(provenanceEvent);
         }
 
-        logger.debug("Updated Provenance Repository to note that {} FlowFiles 
were dropped from the system because the data received from the other node 
could not be transferred to the FlowFile " +
-            "Queue", events.size());
+        logger.debug("""
+            Updated Provenance Repository to note that {} FlowFiles were 
dropped from the system because the data received from the other node could not 
be transferred to the FlowFile Queue""",
+                events.size());
         provenanceRepository.registerEvents(events);
     }
 
diff --git 
a/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/groups/StandardStatelessGroupNode.java
 
b/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/groups/StandardStatelessGroupNode.java
index ac727bdccdb..9e7066fa8f9 100644
--- 
a/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/groups/StandardStatelessGroupNode.java
+++ 
b/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/groups/StandardStatelessGroupNode.java
@@ -206,8 +206,9 @@ public class StandardStatelessGroupNode implements 
StatelessGroupNode {
 
             final boolean triggerSerially = 
!triggerSeriallyProcessors.isEmpty();
             if (maxConcurrentTasks > 1 && triggerSerially) {
-                logger.warn("Flow is configured to run using the Stateless 
Engine with {} max concurrent tasks. However, {} only allows a single 
concurrent task or allows running only on " +
-                    "the Primary Node, so the flow will run with a single 
concurrent task", maxConcurrentTasks, triggerSeriallyProcessors);
+                logger.warn("""
+                    Flow is configured to run using the Stateless Engine with 
{} max concurrent tasks. However, {} only allows a single concurrent task or 
allows running only on \
+                    the Primary Node, so the flow will run with a single 
concurrent task""", maxConcurrentTasks, triggerSeriallyProcessors);
             }
 
             // Perform setup in background thread outside of lock
diff --git 
a/nifi-framework-bundle/nifi-framework/nifi-framework-nar-utils/src/main/java/org/apache/nifi/nar/StandardExtensionDiscoveringManager.java
 
b/nifi-framework-bundle/nifi-framework/nifi-framework-nar-utils/src/main/java/org/apache/nifi/nar/StandardExtensionDiscoveringManager.java
index 4a399c20cbf..05510a9a988 100644
--- 
a/nifi-framework-bundle/nifi-framework/nifi-framework-nar-utils/src/main/java/org/apache/nifi/nar/StandardExtensionDiscoveringManager.java
+++ 
b/nifi-framework-bundle/nifi-framework/nifi-framework-nar-utils/src/main/java/org/apache/nifi/nar/StandardExtensionDiscoveringManager.java
@@ -211,8 +211,9 @@ public class StandardExtensionDiscoveringManager implements 
ExtensionDiscovering
 
     @Override
     public synchronized void discoverPythonExtensions(final Bundle 
pythonBundle, final Set<Bundle> bundles) {
-        logger.debug("Scanning to discover which Python extensions are 
available and importing any necessary dependencies. If new components are 
discovered, this may take a few minutes. " +
-                "See python logs for more details.");
+        logger.debug("""
+                Scanning to discover which Python extensions are available and 
importing any necessary dependencies. If new components are discovered, this 
may take a few minutes. \
+                See python logs for more details.""");
         final long start = System.currentTimeMillis();
         final List<File> bundleWorkingDirectories = bundles.stream()
                 .map(Bundle::getBundleDetails)
@@ -223,8 +224,9 @@ public class StandardExtensionDiscoveringManager implements 
ExtensionDiscovering
     }
 
     private void discoverPythonExtensions(final Bundle pythonBundle, final 
boolean includeNarBundles) {
-        logger.debug("Scanning to discover which Python extensions are 
available and importing any necessary dependencies. If new components are 
discovered, this may take a few minutes. " +
-            "See python logs for more details.");
+        logger.debug("""
+            Scanning to discover which Python extensions are available and 
importing any necessary dependencies. If new components are discovered, this 
may take a few minutes. \
+            See python logs for more details.""");
         final long start = System.currentTimeMillis();
         pythonBridge.discoverExtensions(includeNarBundles);
         loadPythonExtensions(pythonBundle, start);
diff --git 
a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/dao/impl/StandardProcessGroupDAO.java
 
b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/dao/impl/StandardProcessGroupDAO.java
index e31ca1cfcae..2482a56aed6 100644
--- 
a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/dao/impl/StandardProcessGroupDAO.java
+++ 
b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/dao/impl/StandardProcessGroupDAO.java
@@ -427,8 +427,9 @@ public class StandardProcessGroupDAO extends ComponentDAO 
implements ProcessGrou
 
         final ExecutionEngine executionEngine = group.resolveExecutionEngine();
         if (executionEngine == ExecutionEngine.STATELESS) {
-            logger.info("Attempt was made to activate Controller Services for 
Process Group with ID {} and Controller Service State {} but group is 
configured to use the Stateless Engine so will " +
-                "not change state of Controller Services", groupId, state);
+            logger.info("""
+                Attempt was made to activate Controller Services for Process 
Group with ID {} and Controller Service State {} but group is configured to use 
the Stateless Engine so will \
+                not change state of Controller Services""", groupId, state);
             return;
         }
 
diff --git 
a/nifi-registry/nifi-registry-core/nifi-registry-framework/src/main/java/org/apache/nifi/registry/security/ldap/tenants/LdapUserGroupProvider.java
 
b/nifi-registry/nifi-registry-core/nifi-registry-framework/src/main/java/org/apache/nifi/registry/security/ldap/tenants/LdapUserGroupProvider.java
index 5bf752e4691..b8fc952ca23 100644
--- 
a/nifi-registry/nifi-registry-core/nifi-registry-framework/src/main/java/org/apache/nifi/registry/security/ldap/tenants/LdapUserGroupProvider.java
+++ 
b/nifi-registry/nifi-registry-core/nifi-registry-framework/src/main/java/org/apache/nifi/registry/security/ldap/tenants/LdapUserGroupProvider.java
@@ -493,9 +493,10 @@ public class LdapUserGroupProvider implements 
UserGroupProvider {
                                 final Attribute attributeGroups = 
ctx.getAttributes().get(userGroupNameAttribute);
 
                                 if (attributeGroups == null) {
-                                    logger.debug("User group name attribute 
[{}] does not exist for {}. " +
-                                            "This may be due to 
misconfiguration or this user record may not have any group membership 
attributes defined. " +
-                                            "Ignoring group membership. ", 
userGroupNameAttribute, identity);
+                                    logger.debug("""
+                                            User group name attribute [{}] 
does not exist for {}. \
+                                            This may be due to 
misconfiguration or this user record may not have any group membership 
attributes defined. \
+                                            Ignoring group membership.""", 
userGroupNameAttribute, identity);
                                 } else {
                                     try {
                                         final NamingEnumeration<String> 
groupValues = (NamingEnumeration<String>) attributeGroups.getAll();
@@ -563,9 +564,10 @@ public class LdapUserGroupProvider implements 
UserGroupProvider {
                             if (!StringUtils.isBlank(groupMemberAttribute)) {
                                 Attribute attributeUsers = 
ctx.getAttributes().get(groupMemberAttribute);
                                 if (attributeUsers == null) {
-                                    logger.debug("Group member attribute [{}] 
does not exist for {}. " +
-                                            "This may be due to 
misconfiguration or this group record may not have any user attributes defined. 
" +
-                                            "Ignoring group membership.", 
groupMemberAttribute, name);
+                                    logger.debug("""
+                                            Group member attribute [{}] does 
not exist for {}. \
+                                            This may be due to 
misconfiguration or this group record may not have any user attributes defined. 
\
+                                            Ignoring group membership.""", 
groupMemberAttribute, name);
                                 } else {
                                     try {
                                         final NamingEnumeration<String> 
userValues = (NamingEnumeration<String>) attributeUsers.getAll();
@@ -583,9 +585,10 @@ public class LdapUserGroupProvider implements 
UserGroupProvider {
                                                 if (user != null) {
                                                     
groupToUserIdentifierMappings.computeIfAbsent(referencedGroupValue, g -> new 
HashSet<>()).add(user.getIdentifier());
                                                 } else {
-                                                    logger.debug("{} contains 
member {} but that user was not found while searching users. " +
-                                                            "This may be due 
to misconfiguration or because that user is not a NiFi Registry user as defined 
by the User Search Base and Filter. " +
-                                                            "Ignoring group 
membership.", name, userValue);
+                                                    logger.debug("""
+                                                            {} contains member 
{} but that user was not found while searching users. \
+                                                            This may be due to 
misconfiguration or because that user is not a NiFi Registry user as defined by 
the User Search Base and Filter. \
+                                                            Ignoring group 
membership.""", name, userValue);
                                                 }
                                             } else {
                                                 // since performUserSearch is 
false, then the referenced group attribute must be blank... the user value must 
be the dn.
diff --git 
a/nifi-registry/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/security/authentication/IdentityFilter.java
 
b/nifi-registry/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/security/authentication/IdentityFilter.java
index 021e267b63a..faf10c181d7 100644
--- 
a/nifi-registry/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/security/authentication/IdentityFilter.java
+++ 
b/nifi-registry/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/security/authentication/IdentityFilter.java
@@ -96,8 +96,9 @@ public class IdentityFilter extends GenericFilterBean {
                     logger.debug("Authentication successful for {}", 
authenticated.getName());
                 }
             } else {
-                logger.debug("The {} did not find credentials it supports on 
the servlet request. " +
-                        "Allowing this request to continue through the filter 
chain where another filter might authenticate it.",
+                logger.debug("""
+                        The {} did not find credentials it supports on the 
servlet request. \
+                        Allowing this request to continue through the filter 
chain where another filter might authenticate it.""",
                     identityProvider.getClass().getSimpleName());
             }
         } catch (final AuthenticationException e) {
diff --git 
a/nifi-stateless/nifi-stateless-bundle/nifi-stateless-engine/src/main/java/org/apache/nifi/stateless/engine/StandardStatelessEngine.java
 
b/nifi-stateless/nifi-stateless-bundle/nifi-stateless-engine/src/main/java/org/apache/nifi/stateless/engine/StandardStatelessEngine.java
index d1ee3d28995..184529e8afd 100644
--- 
a/nifi-stateless/nifi-stateless-bundle/nifi-stateless-engine/src/main/java/org/apache/nifi/stateless/engine/StandardStatelessEngine.java
+++ 
b/nifi-stateless/nifi-stateless-bundle/nifi-stateless-engine/src/main/java/org/apache/nifi/stateless/engine/StandardStatelessEngine.java
@@ -577,8 +577,9 @@ public class StandardStatelessEngine implements 
StatelessEngine {
 
                 final Optional<Parameter> optionalParameter = 
existingContext.getParameter(parameterName);
                 if (!optionalParameter.isPresent()) {
-                    logger.warn("Configuration contains a Parameter with name 
<{}> for Parameter Context <{}> but the Parameter Context does not have a 
Parameter with that name. This Parameter will" +
-                        " be ignored.", parameterName, contextName);
+                    logger.warn("""
+                        Configuration contains a Parameter with name <{}> for 
Parameter Context <{}> but the Parameter Context does not have a Parameter with 
that name. This Parameter will \
+                        be ignored.""", parameterName, contextName);
                     continue;
                 }
 
diff --git 
a/nifi-system-tests/nifi-system-test-suite/src/test/java/org/apache/nifi/tests/system/TroubleshootingTestWatcher.java
 
b/nifi-system-tests/nifi-system-test-suite/src/test/java/org/apache/nifi/tests/system/TroubleshootingTestWatcher.java
index ae010bce4df..f743d76edac 100644
--- 
a/nifi-system-tests/nifi-system-test-suite/src/test/java/org/apache/nifi/tests/system/TroubleshootingTestWatcher.java
+++ 
b/nifi-system-tests/nifi-system-test-suite/src/test/java/org/apache/nifi/tests/system/TroubleshootingTestWatcher.java
@@ -122,8 +122,9 @@ public class TroubleshootingTestWatcher implements 
TestWatcher, AfterTestExecuti
         NiFiInstance instance = provider.getNiFiInstance();
 
         if (instance == null) {
-            logger.warn("While capturing troubleshooting info for {}, the NiFi 
Instance is not available. Will create a new one for Diagnostics purposes, but 
live diagnostics will not be available " +
-                "since it's not the same instance that ran the test", 
methodName);
+            logger.warn("""
+                While capturing troubleshooting info for {}, the NiFi Instance 
is not available. Will create a new one for Diagnostics purposes, but live 
diagnostics will not be available \
+                since it's not the same instance that ran the test""", 
methodName);
             instance = provider.getInstanceFactory().createInstance();
         }
 

Reply via email to