commit | 089796ba66d6f5f1a9d4fa7f797f613bae4f5373 | [log] [tgz] |
---|---|---|
author | Tamas Cservenak <tamas@cservenak.net> | Wed Apr 03 13:38:29 2024 +0200 |
committer | GitHub <noreply@github.com> | Wed Apr 03 13:38:29 2024 +0200 |
tree | 186c32f694d20ae3592be2f0359d3eddeef45521 | |
parent | 9c1e29d2f44ac09878e6b957be85ae5707cebb59 [diff] |
[MRESOLVER-521] Improve congested file locks behaviour (#455) Instead to immediately give up and sleep, they will sit a while to enter critical region. This is important for "hot" locks. Explanation: currently a "loser" will _immediately give up_ and will go to sleep 100ms if cannot enter critical region, even if winner exits critical region within next 5ms. The retry is needed to ensure that it is retried as much as given time/unit takes, that was before consumed by constant retries+sleeps. The logic still works, as if tryLock spends time/unit waiting on criticalRegion (which is possible only on VERY HIGHLY congested locks), there will be no retry happening. --- https://issues.apache.org/jira/browse/MRESOLVER-521
You have found a bug or you have an idea for a cool new feature? Contributing code is a great way to give something back to the open source community. Before you dig right into the code, there are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.
We accept Pull Requests via GitHub. The developer mailing list is the main channel of communication for contributors. There are some guidelines which will make applying PRs easier for us:
git diff --check
before committing.[MRESOLVER-XXX] - Subject of the JIRA Ticket Optional supplemental description.
mvn -Prun-its verify
to assure nothing else was accidentally broken.If you plan to contribute on a regular basis, please consider filing a contributor license agreement.
For changes of a trivial nature to comments and documentation, it is not always necessary to create a new ticket in JIRA. In this case, it is appropriate to start the first line of a commit with ‘(doc)’ instead of a ticket number.