This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 3f6d7f35a41c CAMEL-25916: camel-ftp - sendNoop=false also skips the
NOOP before each rename or delete (#30876)
3f6d7f35a41c is described below
commit 3f6d7f35a41cb3d19a19041f6cf827fc886c6cff
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Nov 26 19:14:08 2026 +0100
CAMEL-25916: camel-ftp - sendNoop=false also skips the NOOP before each
rename or delete (#30876)
FtpOperations sent a NOOP before every rename and delete, whatever sendNoop
was
set to, so ftp and ftps still sent one for each file the consumer moved or
deleted, and for each tempFileName rename of the producer. With
sendNoop=false
the check now only asks whether the client still regards itself as
connected,
as the pre-poll and pre-write checks and the sftp and mina-sftp operations
already do. The default sendNoop=true keeps the NOOP.
The sendNoop description and the 4.24 upgrade guide say that a rename or
delete after a long-running route then fails if the server closed the idle
connection meanwhile, and the file is polled again.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../org/apache/camel/catalog/components/ftp.json | 2 +-
.../org/apache/camel/catalog/components/ftps.json | 2 +-
.../apache/camel/catalog/components/mina-sftp.json | 2 +-
.../org/apache/camel/catalog/components/sftp.json | 2 +-
.../file/remote/RemoteFileConfiguration.java | 32 ++--
.../apache/camel/component/file/remote/ftp.json | 2 +-
.../apache/camel/component/file/remote/ftps.json | 2 +-
.../apache/camel/component/file/remote/sftp.json | 2 +-
.../camel/component/file/remote/FtpOperations.java | 8 +-
.../integration/FtpRenameDeleteSendNoopIT.java | 161 +++++++++++++++++++++
.../component/file/remote/mina/mina-sftp.json | 2 +-
.../ROOT/pages/camel-4x-upgrade-guide-4_24.adoc | 15 +-
.../endpoint/dsl/FtpEndpointBuilderFactory.java | 78 +++++++---
.../endpoint/dsl/FtpsEndpointBuilderFactory.java | 78 +++++++---
.../dsl/MinaSftpEndpointBuilderFactory.java | 78 +++++++---
.../endpoint/dsl/SftpEndpointBuilderFactory.java | 78 +++++++---
16 files changed, 423 insertions(+), 121 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ftp.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ftp.json
index 91d5c8bdd886..074b41c411f7 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ftp.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ftp.json
@@ -71,7 +71,7 @@
"transferLoggingLevel": { "index": 12, "kind": "parameter", "displayName":
"Transfer Logging Level", "group": "common", "label": "common", "required":
false, "type": "enum", "javaType": "org.apache.camel.LoggingLevel", "enum": [
"TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ], "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "DEBUG", "description":
"Configure the logging level to use when logging the progress of upload and
download operations." },
"transferLoggingVerbose": { "index": 13, "kind": "parameter",
"displayName": "Transfer Logging Verbose", "group": "common", "label":
"common", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
false, "description": "Configures whether perform verbose (fine-grained)
logging of the progress of upload and download operations." },
"fastExistsCheck": { "index": 14, "kind": "parameter", "displayName":
"Fast Exists Check", "group": "common (advanced)", "label": "common,advanced",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "If set this option to be true, camel-ftp will use the list file
directly to check if the file exists. Since some FTP server may not support to
list the file directly, if the option [...]
- "sendNoop": { "index": 15, "kind": "parameter", "displayName": "Send
Noop", "group": "common (advanced)", "label": "common,advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.file.remote.FtpConfiguration",
"configurationField": "configuration", "description": "Whether to send a noop
command to check that the connection is still valid, a [...]
+ "sendNoop": { "index": 15, "kind": "parameter", "displayName": "Send
Noop", "group": "common (advanced)", "label": "common,advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.file.remote.FtpConfiguration",
"configurationField": "configuration", "description": "Whether to send a noop
command to check that the connection is still valid, a [...]
"delete": { "index": 16, "kind": "parameter", "displayName": "Delete",
"group": "consumer", "label": "consumer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "If true, the file will be deleted
after it is processed successfully." },
"moveFailed": { "index": 17, "kind": "parameter", "displayName": "Move
Failed", "group": "consumer", "label": "consumer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "supportSimpleExpression": true, "description": "Sets
the move failure expression based on Simple language. For example, to move
files into a .error subdirectory use: .error. Note: When moving the files to
the fail location Camel will hand [...]
"noop": { "index": 18, "kind": "parameter", "displayName": "Noop",
"group": "consumer", "label": "consumer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "If true, the file is not moved or
deleted in any way. This option is good for readonly data, or for ETL type
requirements. If noop=true, Camel will set idempotent=true as well, to avoid
consuming the same files over and o [...]
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ftps.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ftps.json
index a358d12a993a..972da2374c56 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ftps.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ftps.json
@@ -72,7 +72,7 @@
"transferLoggingLevel": { "index": 12, "kind": "parameter", "displayName":
"Transfer Logging Level", "group": "common", "label": "common", "required":
false, "type": "enum", "javaType": "org.apache.camel.LoggingLevel", "enum": [
"TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ], "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "DEBUG", "description":
"Configure the logging level to use when logging the progress of upload and
download operations." },
"transferLoggingVerbose": { "index": 13, "kind": "parameter",
"displayName": "Transfer Logging Verbose", "group": "common", "label":
"common", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
false, "description": "Configures whether perform verbose (fine-grained)
logging of the progress of upload and download operations." },
"fastExistsCheck": { "index": 14, "kind": "parameter", "displayName":
"Fast Exists Check", "group": "common (advanced)", "label": "common,advanced",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "If set this option to be true, camel-ftp will use the list file
directly to check if the file exists. Since some FTP server may not support to
list the file directly, if the option [...]
- "sendNoop": { "index": 15, "kind": "parameter", "displayName": "Send
Noop", "group": "common (advanced)", "label": "common,advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.file.remote.FtpsConfiguration",
"configurationField": "configuration", "description": "Whether to send a noop
command to check that the connection is still valid, [...]
+ "sendNoop": { "index": 15, "kind": "parameter", "displayName": "Send
Noop", "group": "common (advanced)", "label": "common,advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.file.remote.FtpsConfiguration",
"configurationField": "configuration", "description": "Whether to send a noop
command to check that the connection is still valid, [...]
"delete": { "index": 16, "kind": "parameter", "displayName": "Delete",
"group": "consumer", "label": "consumer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "If true, the file will be deleted
after it is processed successfully." },
"moveFailed": { "index": 17, "kind": "parameter", "displayName": "Move
Failed", "group": "consumer", "label": "consumer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "supportSimpleExpression": true, "description": "Sets
the move failure expression based on Simple language. For example, to move
files into a .error subdirectory use: .error. Note: When moving the files to
the fail location Camel will hand [...]
"noop": { "index": 18, "kind": "parameter", "displayName": "Noop",
"group": "consumer", "label": "consumer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "If true, the file is not moved or
deleted in any way. This option is good for readonly data, or for ETL type
requirements. If noop=true, Camel will set idempotent=true as well, to avoid
consuming the same files over and o [...]
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/mina-sftp.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/mina-sftp.json
index e1e156915fe5..f60d9b215b43 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/mina-sftp.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/mina-sftp.json
@@ -67,7 +67,7 @@
"passiveMode": { "index": 9, "kind": "parameter", "displayName": "Passive
Mode", "group": "common", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.file.remote.mina.MinaSftpConfiguration",
"configurationField": "configuration", "description": "Sets passive mode
connections. Default is active mode connections." },
"separator": { "index": 10, "kind": "parameter", "displayName":
"Separator", "group": "common", "label": "", "required": false, "type": "enum",
"javaType":
"org.apache.camel.component.file.remote.RemoteFileConfiguration.PathSeparator",
"enum": [ "UNIX", "Windows", "Auto" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "UNIX", "configurationClass":
"org.apache.camel.component.file.remote.mina.MinaSftpConfiguration",
"configurationField": "configuration", " [...]
"fastExistsCheck": { "index": 11, "kind": "parameter", "displayName":
"Fast Exists Check", "group": "common (advanced)", "label": "common,advanced",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "If set this option to be true, camel-ftp will use the list file
directly to check if the file exists. Since some FTP server may not support to
list the file directly, if the option [...]
- "sendNoop": { "index": 12, "kind": "parameter", "displayName": "Send
Noop", "group": "common (advanced)", "label": "common,advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.file.remote.mina.MinaSftpConfiguration",
"configurationField": "configuration", "description": "Whether to send a noop
command to check that the connection is stil [...]
+ "sendNoop": { "index": 12, "kind": "parameter", "displayName": "Send
Noop", "group": "common (advanced)", "label": "common,advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.file.remote.mina.MinaSftpConfiguration",
"configurationField": "configuration", "description": "Whether to send a noop
command to check that the connection is stil [...]
"delete": { "index": 13, "kind": "parameter", "displayName": "Delete",
"group": "consumer", "label": "consumer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "If true, the file will be deleted
after it is processed successfully." },
"moveFailed": { "index": 14, "kind": "parameter", "displayName": "Move
Failed", "group": "consumer", "label": "consumer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "supportSimpleExpression": true, "description": "Sets
the move failure expression based on Simple language. For example, to move
files into a .error subdirectory use: .error. Note: When moving the files to
the fail location Camel will hand [...]
"noop": { "index": 15, "kind": "parameter", "displayName": "Noop",
"group": "consumer", "label": "consumer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "If true, the file is not moved or
deleted in any way. This option is good for readonly data, or for ETL type
requirements. If noop=true, Camel will set idempotent=true as well, to avoid
consuming the same files over and o [...]
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/sftp.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/sftp.json
index 465391295c91..f3fadc3a2993 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/sftp.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/sftp.json
@@ -74,7 +74,7 @@
"passiveMode": { "index": 10, "kind": "parameter", "displayName": "Passive
Mode", "group": "common", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.file.remote.SftpConfiguration",
"configurationField": "configuration", "description": "Sets passive mode
connections. Default is active mode connections." },
"separator": { "index": 11, "kind": "parameter", "displayName":
"Separator", "group": "common", "label": "", "required": false, "type": "enum",
"javaType":
"org.apache.camel.component.file.remote.RemoteFileConfiguration.PathSeparator",
"enum": [ "UNIX", "Windows", "Auto" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "UNIX", "configurationClass":
"org.apache.camel.component.file.remote.SftpConfiguration",
"configurationField": "configuration", "descripti [...]
"fastExistsCheck": { "index": 12, "kind": "parameter", "displayName":
"Fast Exists Check", "group": "common (advanced)", "label": "common,advanced",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "If set this option to be true, camel-ftp will use the list file
directly to check if the file exists. Since some FTP server may not support to
list the file directly, if the option [...]
- "sendNoop": { "index": 13, "kind": "parameter", "displayName": "Send
Noop", "group": "common (advanced)", "label": "common,advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.file.remote.SftpConfiguration",
"configurationField": "configuration", "description": "Whether to send a noop
command to check that the connection is still valid, [...]
+ "sendNoop": { "index": 13, "kind": "parameter", "displayName": "Send
Noop", "group": "common (advanced)", "label": "common,advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.file.remote.SftpConfiguration",
"configurationField": "configuration", "description": "Whether to send a noop
command to check that the connection is still valid, [...]
"delete": { "index": 14, "kind": "parameter", "displayName": "Delete",
"group": "consumer", "label": "consumer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "If true, the file will be deleted
after it is processed successfully." },
"moveFailed": { "index": 15, "kind": "parameter", "displayName": "Move
Failed", "group": "consumer", "label": "consumer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "supportSimpleExpression": true, "description": "Sets
the move failure expression based on Simple language. For example, to move
files into a .error subdirectory use: .error. Note: When moving the files to
the fail location Camel will hand [...]
"noop": { "index": 16, "kind": "parameter", "displayName": "Noop",
"group": "consumer", "label": "consumer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "If true, the file is not moved or
deleted in any way. This option is good for readonly data, or for ETL type
requirements. If noop=true, Camel will set idempotent=true as well, to avoid
consuming the same files over and o [...]
diff --git
a/components/camel-ftp-common/src/main/java/org/apache/camel/component/file/remote/RemoteFileConfiguration.java
b/components/camel-ftp-common/src/main/java/org/apache/camel/component/file/remote/RemoteFileConfiguration.java
index e53f504e120d..86abdc14d732 100644
---
a/components/camel-ftp-common/src/main/java/org/apache/camel/component/file/remote/RemoteFileConfiguration.java
+++
b/components/camel-ftp-common/src/main/java/org/apache/camel/component/file/remote/RemoteFileConfiguration.java
@@ -110,9 +110,13 @@ public abstract class RemoteFileConfiguration extends
GenericFileConfiguration {
private boolean ignoreFileNotFoundOrPermissionError;
@UriParam(label = "common,advanced", defaultValue = "true", description =
"Whether to send a noop command to "
+ "check that the connection is still valid, as a pre-write check before
uploading files (producer) "
-
+ "and before each poll (consumer). <p/> This is enabled by default, which
allows to silently "
-
+ "re-connect if the connection was lost. However if this causes problems, you
can turn this option "
-
+ "off, and then a lost connection may only be found when the next operation
fails.")
+
+ "and before each poll (consumer), and for ftp and ftps also before renaming
or deleting a file "
+
+ "on the server, such as when the consumer moves or deletes a processed file.
<p/> This is "
+
+ "enabled by default, which allows to silently re-connect if the connection
was lost. However if "
+
+ "this causes problems, you can turn this option off, and then a lost
connection may only be "
+
+ "found when the next operation fails. For example a rename or delete after a
long-running route "
+
+ "then fails if the server closed the idle connection meanwhile, so the file
stays and is polled "
+
+ "again, unless an idempotent repository prevents that.")
private boolean sendNoop = true;
protected RemoteFileConfiguration() {
@@ -409,18 +413,22 @@ public abstract class RemoteFileConfiguration extends
GenericFileConfiguration {
/**
* Whether to send a noop command to check that the connection is still
valid, as a pre-write check before uploading
- * files (producer) and before each poll (consumer).
+ * files (producer) and before each poll (consumer), and for ftp and ftps
also before renaming or deleting a file on
+ * the server, such as when the consumer moves or deletes a processed file.
* <p/>
* This is enabled by default, which allows to silently re-connect if the
connection was lost. However if this
* causes problems, you can turn this option off, and the consumer then
only checks whether the client still regards
- * itself as connected. For ftp and ftps the client does not notice a
connection that the server has closed, so it
- * is found only when the next operation fails. After a failure caused by
an I/O error, the consumer sends a noop
- * before the next poll, and connects again if the noop fails. If the
server closes idle connections and the delay
- * between polls is longer than its idle timeout, every other poll then
fails, so keep this option on for such a
- * consumer. For sftp and mina-sftp the client notices a closed
connection, but not one that dropped silently. For
- * sftp the noop is a keep-alive message that does not wait for a reply,
so it does not find such a connection
- * either. For mina-sftp such a connection is then found by the next poll,
which fails before the consumer connects
- * again. Set serverAliveInterval to let the client close such a
connection itself.
+ * itself as connected, before each poll and before each rename or delete.
For ftp and ftps the client does not
+ * notice a connection that the server has closed, so it is found only
when the next operation fails. After a
+ * failure caused by an I/O error, the consumer sends a noop before the
next poll, and connects again if the noop
+ * fails. If the server closes idle connections and the delay between
polls is longer than its idle timeout, every
+ * other poll then fails, so keep this option on for such a consumer.
Likewise, when the server closes the idle
+ * connection while a long-running route processes a file, the rename or
delete of that file fails, so the file
+ * stays and is polled again, unless an idempotent repository prevents
that. For sftp and mina-sftp the client
+ * notices a closed connection, but not one that dropped silently. For
sftp the noop is a keep-alive message that
+ * does not wait for a reply, so it does not find such a connection
either. For mina-sftp such a connection is then
+ * found by the next poll, which fails before the consumer connects again.
Set serverAliveInterval to let the client
+ * close such a connection itself.
*/
public void setSendNoop(boolean sendNoop) {
this.sendNoop = sendNoop;
diff --git
a/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/ftp.json
b/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/ftp.json
index 91d5c8bdd886..074b41c411f7 100644
---
a/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/ftp.json
+++
b/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/ftp.json
@@ -71,7 +71,7 @@
"transferLoggingLevel": { "index": 12, "kind": "parameter", "displayName":
"Transfer Logging Level", "group": "common", "label": "common", "required":
false, "type": "enum", "javaType": "org.apache.camel.LoggingLevel", "enum": [
"TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ], "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "DEBUG", "description":
"Configure the logging level to use when logging the progress of upload and
download operations." },
"transferLoggingVerbose": { "index": 13, "kind": "parameter",
"displayName": "Transfer Logging Verbose", "group": "common", "label":
"common", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
false, "description": "Configures whether perform verbose (fine-grained)
logging of the progress of upload and download operations." },
"fastExistsCheck": { "index": 14, "kind": "parameter", "displayName":
"Fast Exists Check", "group": "common (advanced)", "label": "common,advanced",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "If set this option to be true, camel-ftp will use the list file
directly to check if the file exists. Since some FTP server may not support to
list the file directly, if the option [...]
- "sendNoop": { "index": 15, "kind": "parameter", "displayName": "Send
Noop", "group": "common (advanced)", "label": "common,advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.file.remote.FtpConfiguration",
"configurationField": "configuration", "description": "Whether to send a noop
command to check that the connection is still valid, a [...]
+ "sendNoop": { "index": 15, "kind": "parameter", "displayName": "Send
Noop", "group": "common (advanced)", "label": "common,advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.file.remote.FtpConfiguration",
"configurationField": "configuration", "description": "Whether to send a noop
command to check that the connection is still valid, a [...]
"delete": { "index": 16, "kind": "parameter", "displayName": "Delete",
"group": "consumer", "label": "consumer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "If true, the file will be deleted
after it is processed successfully." },
"moveFailed": { "index": 17, "kind": "parameter", "displayName": "Move
Failed", "group": "consumer", "label": "consumer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "supportSimpleExpression": true, "description": "Sets
the move failure expression based on Simple language. For example, to move
files into a .error subdirectory use: .error. Note: When moving the files to
the fail location Camel will hand [...]
"noop": { "index": 18, "kind": "parameter", "displayName": "Noop",
"group": "consumer", "label": "consumer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "If true, the file is not moved or
deleted in any way. This option is good for readonly data, or for ETL type
requirements. If noop=true, Camel will set idempotent=true as well, to avoid
consuming the same files over and o [...]
diff --git
a/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/ftps.json
b/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/ftps.json
index a358d12a993a..972da2374c56 100644
---
a/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/ftps.json
+++
b/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/ftps.json
@@ -72,7 +72,7 @@
"transferLoggingLevel": { "index": 12, "kind": "parameter", "displayName":
"Transfer Logging Level", "group": "common", "label": "common", "required":
false, "type": "enum", "javaType": "org.apache.camel.LoggingLevel", "enum": [
"TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ], "deprecated": false,
"autowired": false, "secret": false, "defaultValue": "DEBUG", "description":
"Configure the logging level to use when logging the progress of upload and
download operations." },
"transferLoggingVerbose": { "index": 13, "kind": "parameter",
"displayName": "Transfer Logging Verbose", "group": "common", "label":
"common", "required": false, "type": "boolean", "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
false, "description": "Configures whether perform verbose (fine-grained)
logging of the progress of upload and download operations." },
"fastExistsCheck": { "index": 14, "kind": "parameter", "displayName":
"Fast Exists Check", "group": "common (advanced)", "label": "common,advanced",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "If set this option to be true, camel-ftp will use the list file
directly to check if the file exists. Since some FTP server may not support to
list the file directly, if the option [...]
- "sendNoop": { "index": 15, "kind": "parameter", "displayName": "Send
Noop", "group": "common (advanced)", "label": "common,advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.file.remote.FtpsConfiguration",
"configurationField": "configuration", "description": "Whether to send a noop
command to check that the connection is still valid, [...]
+ "sendNoop": { "index": 15, "kind": "parameter", "displayName": "Send
Noop", "group": "common (advanced)", "label": "common,advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.file.remote.FtpsConfiguration",
"configurationField": "configuration", "description": "Whether to send a noop
command to check that the connection is still valid, [...]
"delete": { "index": 16, "kind": "parameter", "displayName": "Delete",
"group": "consumer", "label": "consumer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "If true, the file will be deleted
after it is processed successfully." },
"moveFailed": { "index": 17, "kind": "parameter", "displayName": "Move
Failed", "group": "consumer", "label": "consumer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "supportSimpleExpression": true, "description": "Sets
the move failure expression based on Simple language. For example, to move
files into a .error subdirectory use: .error. Note: When moving the files to
the fail location Camel will hand [...]
"noop": { "index": 18, "kind": "parameter", "displayName": "Noop",
"group": "consumer", "label": "consumer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "If true, the file is not moved or
deleted in any way. This option is good for readonly data, or for ETL type
requirements. If noop=true, Camel will set idempotent=true as well, to avoid
consuming the same files over and o [...]
diff --git
a/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/sftp.json
b/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/sftp.json
index 465391295c91..f3fadc3a2993 100644
---
a/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/sftp.json
+++
b/components/camel-ftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/sftp.json
@@ -74,7 +74,7 @@
"passiveMode": { "index": 10, "kind": "parameter", "displayName": "Passive
Mode", "group": "common", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.file.remote.SftpConfiguration",
"configurationField": "configuration", "description": "Sets passive mode
connections. Default is active mode connections." },
"separator": { "index": 11, "kind": "parameter", "displayName":
"Separator", "group": "common", "label": "", "required": false, "type": "enum",
"javaType":
"org.apache.camel.component.file.remote.RemoteFileConfiguration.PathSeparator",
"enum": [ "UNIX", "Windows", "Auto" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "UNIX", "configurationClass":
"org.apache.camel.component.file.remote.SftpConfiguration",
"configurationField": "configuration", "descripti [...]
"fastExistsCheck": { "index": 12, "kind": "parameter", "displayName":
"Fast Exists Check", "group": "common (advanced)", "label": "common,advanced",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "If set this option to be true, camel-ftp will use the list file
directly to check if the file exists. Since some FTP server may not support to
list the file directly, if the option [...]
- "sendNoop": { "index": 13, "kind": "parameter", "displayName": "Send
Noop", "group": "common (advanced)", "label": "common,advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.file.remote.SftpConfiguration",
"configurationField": "configuration", "description": "Whether to send a noop
command to check that the connection is still valid, [...]
+ "sendNoop": { "index": 13, "kind": "parameter", "displayName": "Send
Noop", "group": "common (advanced)", "label": "common,advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.file.remote.SftpConfiguration",
"configurationField": "configuration", "description": "Whether to send a noop
command to check that the connection is still valid, [...]
"delete": { "index": 14, "kind": "parameter", "displayName": "Delete",
"group": "consumer", "label": "consumer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "If true, the file will be deleted
after it is processed successfully." },
"moveFailed": { "index": 15, "kind": "parameter", "displayName": "Move
Failed", "group": "consumer", "label": "consumer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "supportSimpleExpression": true, "description": "Sets
the move failure expression based on Simple language. For example, to move
files into a .error subdirectory use: .error. Note: When moving the files to
the fail location Camel will hand [...]
"noop": { "index": 16, "kind": "parameter", "displayName": "Noop",
"group": "consumer", "label": "consumer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "If true, the file is not moved or
deleted in any way. This option is good for readonly data, or for ETL type
requirements. If noop=true, Camel will set idempotent=true as well, to avoid
consuming the same files over and o [...]
diff --git
a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
index e2922fbecc14..fae570297794 100644
---
a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
+++
b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/FtpOperations.java
@@ -1584,11 +1584,17 @@ public class FtpOperations implements
RemoteFileOperations<FTPFile> {
return last != 0 && System.nanoTime() - last < RECENTLY_USED_NANOS;
}
+ /**
+ * Connects again before a rename or delete when the connection is no
longer valid. By default a noop checks that
+ * the connection still works, as the server may have closed it while a
long-running route processed the file. With
+ * sendNoop=false only the connection state of the client is checked, as
before each poll and before an upload, so
+ * the rename or delete fails if the server has closed the connection
meanwhile.
+ */
private void reconnectIfNecessary(Exchange exchange) throws
GenericFileOperationFailedException {
boolean reconnectRequired;
try {
boolean connected = isConnected();
- if (connected && !sendNoop()) {
+ if (connected && endpoint.getConfiguration().isSendNoop() &&
!sendNoop()) {
reconnectRequired = true;
} else {
reconnectRequired = !connected;
diff --git
a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/integration/FtpRenameDeleteSendNoopIT.java
b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/integration/FtpRenameDeleteSendNoopIT.java
new file mode 100644
index 000000000000..b3df14d9481c
--- /dev/null
+++
b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/integration/FtpRenameDeleteSendNoopIT.java
@@ -0,0 +1,161 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.file.remote.integration;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Locale;
+import java.util.Map;
+import java.util.concurrent.CopyOnWriteArrayList;
+import java.util.concurrent.TimeUnit;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.file.remote.BaseServerTestSupport;
+import org.apache.camel.component.mock.MockEndpoint;
+import org.apache.camel.test.infra.ftp.services.embedded.EmbeddedConfiguration;
+import org.apache.camel.test.infra.ftp.services.embedded.FtpEmbeddedService;
+import org.apache.ftpserver.FtpServerFactory;
+import org.apache.ftpserver.ftplet.DefaultFtplet;
+import org.apache.ftpserver.ftplet.FtpException;
+import org.apache.ftpserver.ftplet.FtpRequest;
+import org.apache.ftpserver.ftplet.FtpSession;
+import org.apache.ftpserver.ftplet.FtpletResult;
+import org.awaitility.Awaitility;
+import org.junit.jupiter.api.extension.RegisterExtension;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.ValueSource;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+/**
+ * The ftp operations send a NOOP before a rename or delete only when sendNoop
is on (the default), as the consumer does
+ * before each poll and the producer before each upload. With sendNoop=false
no NOOP is sent at all: not before the
+ * consumer deletes or moves a processed file, nor before the producer renames
its temporary file.
+ */
+public class FtpRenameDeleteSendNoopIT extends BaseServerTestSupport {
+
+ private final List<String> commands = new CopyOnWriteArrayList<>();
+
+ @RegisterExtension
+ public FtpEmbeddedService service = new FtpEmbeddedService() {
+ @Override
+ protected FtpServerFactory
createFtpServerFactory(EmbeddedConfiguration embeddedConfiguration) {
+ FtpServerFactory factory =
super.createFtpServerFactory(embeddedConfiguration);
+ // record the commands the server sees, in their order
+ factory.setFtplets(Map.of("recorder", new DefaultFtplet() {
+ @Override
+ public FtpletResult beforeCommand(FtpSession session,
FtpRequest request)
+ throws FtpException, IOException {
+
commands.add(request.getCommand().toUpperCase(Locale.ROOT));
+ return super.beforeCommand(session, request);
+ }
+ }));
+ return factory;
+ }
+ };
+
+ @ParameterizedTest
+ @ValueSource(booleans = { true, false })
+ public void testConsumerDelete(boolean sendNoop) throws Exception {
+ consume("delete", sendNoop);
+ Awaitility.await().atMost(10, TimeUnit.SECONDS)
+ .until(() ->
!service.ftpFile("delete/hello.txt").toFile().exists());
+
+ assertNoopBetween("RETR", "DELE", sendNoop);
+ }
+
+ @ParameterizedTest
+ @ValueSource(booleans = { true, false })
+ public void testConsumerMove(boolean sendNoop) throws Exception {
+ consume("move", sendNoop);
+ Awaitility.await().atMost(10, TimeUnit.SECONDS)
+ .until(() ->
service.ftpFile("move/done/hello.txt").toFile().exists());
+
+ assertNoopBetween("RETR", "RNFR", sendNoop);
+ }
+
+ @ParameterizedTest
+ @ValueSource(booleans = { true, false })
+ public void testProducerTempFileName(boolean sendNoop) {
+ String uri =
"ftp://admin@localhost:{{ftp.server.port}}/upload?password=admin&tempFileName=${file:name}.tmp"
+ + (sendNoop ? "" : "&sendNoop=false");
+ template.sendBodyAndHeader(uri, "Hello World", Exchange.FILE_NAME,
"hello.txt");
+
+ assertTrue(service.ftpFile("upload/hello.txt").toFile().exists(), "The
file should be uploaded");
+ assertNoopBetween("STOR", "RNFR", sendNoop);
+ }
+
+ private void consume(String routeId, boolean sendNoop) throws Exception {
+ MockEndpoint mock = getMockEndpoint("mock:result");
+ mock.expectedBodiesReceived("Hello World");
+
+ template.sendBodyAndHeader("file://" + service.getFtpRootDir() + "/" +
routeId, "Hello World",
+ Exchange.FILE_NAME, "hello.txt");
+ context.getRouteController().startRoute(routeId + (sendNoop ?
"Default" : "False"));
+
+ MockEndpoint.assertIsSatisfied(context);
+ }
+
+ /**
+ * Asserts whether a NOOP is sent after the transfer of the file and
before it is renamed or deleted, and with
+ * sendNoop=false that no NOOP is sent at all.
+ */
+ private void assertNoopBetween(String transfer, String renameOrDelete,
boolean sendNoop) {
+ Awaitility.await().atMost(10, TimeUnit.SECONDS).until(() ->
commands.contains(renameOrDelete));
+
+ List<String> recorded = new ArrayList<>(commands);
+ int end = recorded.indexOf(renameOrDelete);
+ int start = recorded.subList(0, end).lastIndexOf(transfer);
+ assertTrue(start >= 0, "The file should be transferred before it is
renamed or deleted: " + recorded);
+ List<String> between = recorded.subList(start + 1, end);
+
+ if (sendNoop) {
+ assertTrue(between.contains("NOOP"),
+ "A NOOP should be sent before " + renameOrDelete + " by
default: " + recorded);
+ } else {
+ assertFalse(between.contains("NOOP"),
+ "No NOOP should be sent before " + renameOrDelete + " with
sendNoop=false: " + recorded);
+ assertEquals(0, recorded.stream().filter("NOOP"::equals).count(),
+ "No NOOP should be sent at all with sendNoop=false: " +
recorded);
+ }
+ }
+
+ @Override
+ protected RouteBuilder createRouteBuilder() {
+ return new RouteBuilder() {
+ @Override
+ public void configure() {
+ String delete =
"ftp://admin@localhost:{{ftp.server.port}}/delete?password=admin&delete=true&delay=100";
+ from(delete).routeId("deleteDefault").autoStartup(false)
+ .convertBodyTo(String.class).to("mock:result");
+ from(delete +
"&sendNoop=false").routeId("deleteFalse").autoStartup(false)
+ .convertBodyTo(String.class).to("mock:result");
+
+ // the ftp consumer leaves the file where it is by default, so
move it explicitly
+ String move =
"ftp://admin@localhost:{{ftp.server.port}}/move?password=admin&move=done&delay=100";
+ from(move).routeId("moveDefault").autoStartup(false)
+ .convertBodyTo(String.class).to("mock:result");
+ from(move +
"&sendNoop=false").routeId("moveFalse").autoStartup(false)
+ .convertBodyTo(String.class).to("mock:result");
+ }
+ };
+ }
+}
diff --git
a/components/camel-mina-sftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/mina/mina-sftp.json
b/components/camel-mina-sftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/mina/mina-sftp.json
index e1e156915fe5..f60d9b215b43 100644
---
a/components/camel-mina-sftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/mina/mina-sftp.json
+++
b/components/camel-mina-sftp/src/generated/resources/META-INF/org/apache/camel/component/file/remote/mina/mina-sftp.json
@@ -67,7 +67,7 @@
"passiveMode": { "index": 9, "kind": "parameter", "displayName": "Passive
Mode", "group": "common", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.file.remote.mina.MinaSftpConfiguration",
"configurationField": "configuration", "description": "Sets passive mode
connections. Default is active mode connections." },
"separator": { "index": 10, "kind": "parameter", "displayName":
"Separator", "group": "common", "label": "", "required": false, "type": "enum",
"javaType":
"org.apache.camel.component.file.remote.RemoteFileConfiguration.PathSeparator",
"enum": [ "UNIX", "Windows", "Auto" ], "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "UNIX", "configurationClass":
"org.apache.camel.component.file.remote.mina.MinaSftpConfiguration",
"configurationField": "configuration", " [...]
"fastExistsCheck": { "index": 11, "kind": "parameter", "displayName":
"Fast Exists Check", "group": "common (advanced)", "label": "common,advanced",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "autowired": false, "secret": false, "defaultValue": false,
"description": "If set this option to be true, camel-ftp will use the list file
directly to check if the file exists. Since some FTP server may not support to
list the file directly, if the option [...]
- "sendNoop": { "index": 12, "kind": "parameter", "displayName": "Send
Noop", "group": "common (advanced)", "label": "common,advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.file.remote.mina.MinaSftpConfiguration",
"configurationField": "configuration", "description": "Whether to send a noop
command to check that the connection is stil [...]
+ "sendNoop": { "index": 12, "kind": "parameter", "displayName": "Send
Noop", "group": "common (advanced)", "label": "common,advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true,
"configurationClass":
"org.apache.camel.component.file.remote.mina.MinaSftpConfiguration",
"configurationField": "configuration", "description": "Whether to send a noop
command to check that the connection is stil [...]
"delete": { "index": 13, "kind": "parameter", "displayName": "Delete",
"group": "consumer", "label": "consumer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "If true, the file will be deleted
after it is processed successfully." },
"moveFailed": { "index": 14, "kind": "parameter", "displayName": "Move
Failed", "group": "consumer", "label": "consumer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "supportSimpleExpression": true, "description": "Sets
the move failure expression based on Simple language. For example, to move
files into a .error subdirectory use: .error. Note: When moving the files to
the fail location Camel will hand [...]
"noop": { "index": 15, "kind": "parameter", "displayName": "Noop",
"group": "consumer", "label": "consumer", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "description": "If true, the file is not moved or
deleted in any way. This option is good for readonly data, or for ETL type
requirements. If noop=true, Camel will set idempotent=true as well, to avoid
consuming the same files over and o [...]
diff --git
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
index e18bf9ff348b..e622d15f06ae 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
@@ -9106,7 +9106,7 @@ the exchange, as it reads a stream or a file and takes a
String as it is, so the
whatever the type of the body. Before, Gson wrote the bytes as a JSON array of
numbers. A stream or a file body, which
failed before, is now read as text as well.
-=== camel-ftp, camel-sftp, camel-ftps, camel-mina-sftp - sendNoop also applies
to the consumer
+=== camel-ftp, camel-sftp, camel-ftps, camel-mina-sftp - sendNoop also applies
to the consumer, and to a rename or delete
The `sendNoop` option now also applies to the check a consumer makes before
each poll, not only to the pre-write check
of a producer, and its label is now `common,advanced` instead of
`producer,advanced`. The default is still `true`, so a
@@ -9120,9 +9120,16 @@ For ftp and ftps the client does not notice a connection
that the server has clo
when the next operation fails, during the poll or while processing a file.
After a failure caused by an I/O error, the
consumer sends a noop before the next poll, and connects again if the noop
fails. If the FTP server closes idle
connections and the `delay` between polls is longer than its idle timeout,
every other poll fails and is logged before
-the consumer connects again. Keep `sendNoop=true` for such a consumer.
Whatever `sendNoop` is, the ftp and ftps
-consumer still sends a noop before it renames or deletes a file on the server,
as it does for each processed file
-unless `noop=true`.
+the consumer connects again. Keep `sendNoop=true` for such a consumer.
+
+With `sendNoop=false`, ftp and ftps also no longer send a noop before they
rename or delete a file on the server. The
+consumer sent one for each processed file unless `noop=true` (as it deletes or
moves the file with `delete`, `move`,
+`preMove` or `moveFailed`, and more for `readLock=rename` and done files), and
the producer before it renames a
+`tempFileName` to the target name or deletes an existing file or a done file.
Such a rename or delete now only checks
+whether the client still regards itself as connected, as sftp and mina-sftp
already did. If the server closed the idle
+connection while a long-running route processed the file, the rename or delete
fails instead of connecting again first,
+so the file stays where it is and a later poll processes it again, unless an
idempotent repository prevents that. Keep
+`sendNoop=true` for such a consumer. With the default `sendNoop=true` nothing
changes.
For sftp and mina-sftp the client notices a closed connection, but not one
that dropped silently. For sftp the noop is
a keep-alive message that does not wait for a reply, so it does not find such
a connection either. For mina-sftp the
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FtpEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FtpEndpointBuilderFactory.java
index d0ab822a0df2..f9c1ec02d768 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FtpEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FtpEndpointBuilderFactory.java
@@ -2176,10 +2176,15 @@ public interface FtpEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option is a: <code>boolean</code> type.
*
@@ -2196,10 +2201,15 @@ public interface FtpEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -3842,10 +3852,15 @@ public interface FtpEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option is a: <code>boolean</code> type.
*
@@ -3862,10 +3877,15 @@ public interface FtpEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -5089,10 +5109,15 @@ public interface FtpEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option is a: <code>boolean</code> type.
*
@@ -5109,10 +5134,15 @@ public interface FtpEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option will be converted to a <code>boolean</code> type.
*
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FtpsEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FtpsEndpointBuilderFactory.java
index faf3c73efbea..fdbeff3ede18 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FtpsEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FtpsEndpointBuilderFactory.java
@@ -2454,10 +2454,15 @@ public interface FtpsEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option is a: <code>boolean</code> type.
*
@@ -2474,10 +2479,15 @@ public interface FtpsEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -4398,10 +4408,15 @@ public interface FtpsEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option is a: <code>boolean</code> type.
*
@@ -4418,10 +4433,15 @@ public interface FtpsEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -5923,10 +5943,15 @@ public interface FtpsEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option is a: <code>boolean</code> type.
*
@@ -5943,10 +5968,15 @@ public interface FtpsEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option will be converted to a <code>boolean</code> type.
*
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MinaSftpEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MinaSftpEndpointBuilderFactory.java
index 0af1dc508cd4..1e0b618b674b 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MinaSftpEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MinaSftpEndpointBuilderFactory.java
@@ -2460,10 +2460,15 @@ public interface MinaSftpEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option is a: <code>boolean</code> type.
*
@@ -2480,10 +2485,15 @@ public interface MinaSftpEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -4507,10 +4517,15 @@ public interface MinaSftpEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option is a: <code>boolean</code> type.
*
@@ -4527,10 +4542,15 @@ public interface MinaSftpEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -6187,10 +6207,15 @@ public interface MinaSftpEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option is a: <code>boolean</code> type.
*
@@ -6207,10 +6232,15 @@ public interface MinaSftpEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option will be converted to a <code>boolean</code> type.
*
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SftpEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SftpEndpointBuilderFactory.java
index 739a548e82ea..0c422c8e61c9 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SftpEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SftpEndpointBuilderFactory.java
@@ -2474,10 +2474,15 @@ public interface SftpEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option is a: <code>boolean</code> type.
*
@@ -2494,10 +2499,15 @@ public interface SftpEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -4496,10 +4506,15 @@ public interface SftpEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option is a: <code>boolean</code> type.
*
@@ -4516,10 +4531,15 @@ public interface SftpEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -6151,10 +6171,15 @@ public interface SftpEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option is a: <code>boolean</code> type.
*
@@ -6171,10 +6196,15 @@ public interface SftpEndpointBuilderFactory {
/**
* Whether to send a noop command to check that the connection is still
* valid, as a pre-write check before uploading files (producer) and
- * before each poll (consumer). This is enabled by default, which
allows
- * to silently re-connect if the connection was lost. However if this
- * causes problems, you can turn this option off, and then a lost
- * connection may only be found when the next operation fails.
+ * before each poll (consumer), and for ftp and ftps also before
+ * renaming or deleting a file on the server, such as when the consumer
+ * moves or deletes a processed file. This is enabled by default, which
+ * allows to silently re-connect if the connection was lost. However if
+ * this causes problems, you can turn this option off, and then a lost
+ * connection may only be found when the next operation fails. For
+ * example a rename or delete after a long-running route then fails if
+ * the server closed the idle connection meanwhile, so the file stays
+ * and is polled again, unless an idempotent repository prevents that.
*
* The option will be converted to a <code>boolean</code> type.
*