Even for nfs fcntl locking can work and create/ln/mv are atomic. Do you know if 
there is any file lock based impl available?

Gruss
Bernd
--
http://bernd.eckenfels.net
________________________________
Von: Tamás Cservenák <[email protected]>
Gesendet: Monday, October 4, 2021 10:02:27 PM
An: Maven Users List <[email protected]>
Betreff: Re: Local repository accessed by multiple Maven instances - how is it 
solved ?

Hi Bernd,

nothing is wrong with advisory file locking, as long as you don't store
local repo on NFS ;)
Will re-add file locking once I get there, as in my opinion it is the most
"lightweight" MP (multi process) solution on a single host.
Redis and Hazelcast are more for "farms", where several hosts with many
processes (and each with many threads) is bashing local repo (that MAY be
on NFS as well).

Thanks
Tamas

On Mon, Oct 4, 2021 at 9:37 PM Bernd Eckenfels <[email protected]>
wrote:

> What’s the problem with adivisory locking, as long as Maven honors the
> advice it is the same as it’s a redis lock? (But much less footprint). In
> fact on the same machine it should even work without locking as Long as you
> use pidfiles?
>
> Gruss
> Bernd
>
>

Reply via email to