Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10448

File read lock - idempotent and change/rename should be possible

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.19.0
    • camel-core
    • None
    • Unknown

    Description

      Camel readlock strategy in cluster
      ==================================

      Hi Claus,
      We are trying to move to cluster with Apache Camel. So far we had it on one node and worked well.

      One node: I have readlock strategy set to 'changed' which keeps track of file changes with camelLock file and only when the file has finished downloading, it will be picked up for processing. But camel readlock strategy 'changed' is discouraged in clustering. According to the camel documentation 'idempotent' is recommended. This is what happens when I am testing with 5GB file.

      Two nodes: I have readlock strategy set to 'idempotent' which distributes files to one of the nodes but camel starts processing the file even before the file has finished downloading.

      Is there a way to stop camel from processing even before file has downloaded when readlock strategy is idempotent?

      Thanks.

      -------------------

      We should allow to use idempontent-changed and idempontent-rename as options as well so its a combination of the two of them.

      Then it should acquire idempotent first, and then try changed or rename afterwards.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment