Am 2021-10-06 um 21:05 schrieb Francois Marot:
Michael, I do not agree. As a user and maintainer of the build chain in my
company, I think Maven would really benefit from an out of the box
solution. I think any user is susceptible to the bug by launching multiple
Maven instances at the same time on his computer. Bugs then encountered are
really a bad sign sent to users, and requiring each dev to setup a database
(even simple) is cumbersome.

I agree with you, but we are developers after all, I can expect people to set up something if necessary. At the end you need to consider that file based locking has issues, it does not work everywhere, it is advisory at best, it protects you only from multiprocess access, multithreaded requires an extra layer of in-JVM locks. Given that we are all volunteers and the pain for the community isn't big enough to contribute something valuable, I won't. Especially that Tamás and me invested almost year developing the named locks approach with pluggable providers is more than enough to solve any type of build setup on any FS and OS.

I'd like to quote Marshall Kirk McKusick: Why write something good if you can steal something better? (trade file locks with Redis).

A more lightweight approach would be something like POSIX semaphores available everywhere, but Windows. Requires likely native code or JNR and time. Out of personal interest I'd peek at it next year.

M

Le lun. 4 oct. 2021 à 22:13, Michael Osipov <[email protected]> a écrit :

Tamás,

Redis is so easy to install and get going in 5 minutes that I would
rather see your energy go into areas which need more attention.

M

Am 2021-10-04 um 22:02 schrieb Tamás Cservenák:
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






---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]






---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to