[jira] Created: (CAMEL-828) File component - write to temp file and rename to real name startegy

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (CAMEL-828) File component - write to temp file and rename to real name startegy

JIRA jira@apache.org
File component - write to temp file and rename to real name startegy
--------------------------------------------------------------------

                 Key: CAMEL-828
                 URL: https://issues.apache.org/activemq/browse/CAMEL-828
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-core
    Affects Versions: 1.4.0
            Reporter: Claus Ibsen
             Fix For: 1.5.0


When producing files an idea is to write to a temp file that has a name pattern that will be skipped by consumers (such as starting with a dot) and then after the write rename the file to the correct name.
Then the consumers wont need to use exotic locking to get exclusive read access to the file. Works on all file systems.

There is a nabble discussion on this issue somewhere.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (CAMEL-828) File component - write to temp file and rename to real name startegy

JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-828:
---------------------------------

    Assignee: Claus Ibsen

> File component - write to temp file and rename to real name startegy
> --------------------------------------------------------------------
>
>                 Key: CAMEL-828
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-828
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>
> When producing files an idea is to write to a temp file that has a name pattern that will be skipped by consumers (such as starting with a dot) and then after the write rename the file to the correct name.
> Then the consumers wont need to use exotic locking to get exclusive read access to the file. Works on all file systems.
> There is a nabble discussion on this issue somewhere.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Work started: (CAMEL-828) File component - write to temp file and rename to real name startegy

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on CAMEL-828 started by Claus Ibsen.

> File component - write to temp file and rename to real name startegy
> --------------------------------------------------------------------
>
>                 Key: CAMEL-828
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-828
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> When producing files an idea is to write to a temp file that has a name pattern that will be skipped by consumers (such as starting with a dot) and then after the write rename the file to the correct name.
> Then the consumers wont need to use exotic locking to get exclusive read access to the file. Works on all file systems.
> There is a nabble discussion on this issue somewhere.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-828) File component - write to temp file and rename to real name startegy

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47667#action_47667 ]

Claus Ibsen commented on CAMEL-828:
-----------------------------------

There is a ticket for the FTP/SFTP as well something with uploadSuffix. It should use the same option name as this file producer, so it should be tempPrefix.

> File component - write to temp file and rename to real name startegy
> --------------------------------------------------------------------
>
>                 Key: CAMEL-828
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-828
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> When producing files an idea is to write to a temp file that has a name pattern that will be skipped by consumers (such as starting with a dot) and then after the write rename the file to the correct name.
> Then the consumers wont need to use exotic locking to get exclusive read access to the file. Works on all file systems.
> There is a nabble discussion on this issue somewhere.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (CAMEL-828) File component - write to temp file and rename to real name startegy

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-828.
-------------------------------

    Resolution: Fixed

> File component - write to temp file and rename to real name startegy
> --------------------------------------------------------------------
>
>                 Key: CAMEL-828
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-828
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> When producing files an idea is to write to a temp file that has a name pattern that will be skipped by consumers (such as starting with a dot) and then after the write rename the file to the correct name.
> Then the consumers wont need to use exotic locking to get exclusive read access to the file. Works on all file systems.
> There is a nabble discussion on this issue somewhere.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.