From 77bf6cce1507aedc7fc262a40739e291d2bc29cf Mon Sep 17 00:00:00 2001 From: Sai Asish Y Date: Fri, 17 Apr 2026 00:34:31 -0700 Subject: [PATCH] NIFI: fix 'occured' -> 'occurred' in 3 files Small spelling correction across three Java files: - nifi-snmp-bundle/.../SNMPTreeResponse.java: logger.error message (emitted by ComponentLog on every errored SNMP walk event, so user-visible). - nifi-snmp-bundle/.../SetSNMP.java: @WritesAttribute description for the 'errorIndex' flowfile attribute (rendered in processor docs). - nifi-hadoop-bundle/.../GetHDFSFileInfo.java: @WritesAttribute description for the 'hdfs.status' flowfile attribute (also rendered in processor docs). No functional changes. Signed-off-by: Sai Asish Y --- .../java/org/apache/nifi/processors/hadoop/GetHDFSFileInfo.java | 2 +- .../main/java/org/apache/nifi/snmp/dto/SNMPTreeResponse.java | 2 +- .../src/main/java/org/apache/nifi/snmp/processors/SetSNMP.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nifi-extension-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/GetHDFSFileInfo.java b/nifi-extension-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/GetHDFSFileInfo.java index c071e6e4fa9f..b11bbb1f44c3 100644 --- a/nifi-extension-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/GetHDFSFileInfo.java +++ b/nifi-extension-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/GetHDFSFileInfo.java @@ -89,7 +89,7 @@ @WritesAttribute(attribute = "hdfs.permissions", description = "The permissions for the object in HDFS. This is formatted as 3 characters for the owner, " + "3 for the group, and 3 for other users. For example rw-rw-r--"), @WritesAttribute(attribute = "hdfs.status", description = "The status contains comma separated list of file/dir paths, which couldn't be listed/accessed. " - + "Status won't be set if no errors occured."), + + "Status won't be set if no errors occurred."), @WritesAttribute(attribute = "hdfs.full.tree", description = "When destination is 'attribute', will be populated with full tree of HDFS directory in JSON format." + "WARNING: In case when scan finds thousands or millions of objects, having huge values in attribute could impact flow file repo and GC/heap usage. " + "Use content destination for such cases") diff --git a/nifi-extension-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/java/org/apache/nifi/snmp/dto/SNMPTreeResponse.java b/nifi-extension-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/java/org/apache/nifi/snmp/dto/SNMPTreeResponse.java index d58116d71a12..b33d3a29250c 100644 --- a/nifi-extension-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/java/org/apache/nifi/snmp/dto/SNMPTreeResponse.java +++ b/nifi-extension-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/java/org/apache/nifi/snmp/dto/SNMPTreeResponse.java @@ -55,7 +55,7 @@ public String getTargetAddress() { public void logErrors(final ComponentLog logger) { events.stream() .filter(TreeEvent::isError) - .forEach(event -> logger.error("Error occured in SNMP walk event: {}", event.getErrorMessage())); + .forEach(event -> logger.error("Error occurred in SNMP walk event: {}", event.getErrorMessage())); } public boolean isError() { diff --git a/nifi-extension-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/java/org/apache/nifi/snmp/processors/SetSNMP.java b/nifi-extension-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/java/org/apache/nifi/snmp/processors/SetSNMP.java index 133366f5fe46..cdb22ad7ff00 100644 --- a/nifi-extension-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/java/org/apache/nifi/snmp/processors/SetSNMP.java +++ b/nifi-extension-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/main/java/org/apache/nifi/snmp/processors/SetSNMP.java @@ -55,7 +55,7 @@ " the attribute to the corresponding OID given in the attribute name.") @WritesAttributes({ @WritesAttribute(attribute = SNMPUtils.SNMP_PROP_PREFIX + "", description = "Response variable binding: OID (e.g. 1.3.6.1.4.1.343) and its value."), - @WritesAttribute(attribute = SNMPUtils.SNMP_PROP_PREFIX + "errorIndex", description = "Denotes the variable binding in which the error occured."), + @WritesAttribute(attribute = SNMPUtils.SNMP_PROP_PREFIX + "errorIndex", description = "Denotes the variable binding in which the error occurred."), @WritesAttribute(attribute = SNMPUtils.SNMP_PROP_PREFIX + "errorStatus", description = "The snmp4j error status of the PDU."), @WritesAttribute(attribute = SNMPUtils.SNMP_PROP_PREFIX + "errorStatusText", description = "The description of error status."), @WritesAttribute(attribute = SNMPUtils.SNMP_PROP_PREFIX + "nonRepeaters", description = "The number of non repeater variable bindings in a GETBULK PDU (currently not supported)."),