jackrabbit icon indicating copy to clipboard operation
jackrabbit copied to clipboard

Exposed the existing "disableAutoSync" property of ClusterNode to external configuration.

Open tduffey opened this issue 7 months ago • 4 comments

With this change you can now define your cluster config with an additional param to disable auto sync:

  <Cluster syncDelay="2000" disableAutoSync="true">
    <Journal class="org.apache.jackrabbit.core.journal.DatabaseJournal">
      ...
    </Journal>
  </Cluster>

With this we now have the ability to start a cluster node, allow it to synchronize to the latest journal revision at startup and then stop without worrying about any additional changes being sync'd via the normal journal sync process. The use case is to define a node like this to periodically launch, get the latest updates, stop and then save a backup.

I would be happy to provide a different unit test if you can suggest what sort of test you'd like to see since this is a very minimal change.

tduffey avatar May 15 '25 16:05 tduffey

@thomasmueller any thoughts on this one? Accomplishes most of what I was after on the other one but with fewer actual code changes.

tduffey avatar May 27 '25 22:05 tduffey

This looks good to me.

thomasmueller avatar May 28 '25 08:05 thomasmueller

Thank you @thomasmueller. If this can be merged into a future release I would really appreciate it. 🙏

tduffey avatar Jun 03 '25 13:06 tduffey

👋 @reschke any chance this can be incorporated into a future release?

tduffey avatar Jul 10 '25 18:07 tduffey