Commit Graph

66 Commits

Author SHA1 Message Date
Olivier Lamy a597458ba9 track FileNotFoundException if a concurrent thread delete the file before locking and try recreate it
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550647 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 05:31:13 +00:00
Olivier Lamy 76d1127f8b skip locking true per default
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550644 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 05:04:27 +00:00
Olivier Lamy e1c3663b01 use a concurrent map to handle file lock
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550641 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 04:47:36 +00:00
Olivier Lamy 49c91d619d add missing @since
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550638 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 04:46:54 +00:00
Olivier Lamy e48c05fb6f add note on possible improvments
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550637 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 04:46:45 +00:00
Olivier Lamy 06cb9ea4f9 [MRM-1702] use the fileLockLManager in the code with possible race condition
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550636 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 04:46:36 +00:00
Olivier Lamy c3ba717d4c expose how to skip locking mechanism
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550635 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 04:46:12 +00:00
Olivier Lamy 62fd82d3c2 fix osgi
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550563 13f79535-47bb-0310-9956-ffa450edef68
2013-12-12 22:37:39 +00:00
Olivier Lamy 79329d262e fix timeout
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550562 13f79535-47bb-0310-9956-ffa450edef68
2013-12-12 22:37:34 +00:00
Olivier Lamy 7fc6fb2158 add class
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550561 13f79535-47bb-0310-9956-ffa450edef68
2013-12-12 22:37:24 +00:00
Olivier Lamy 3e344bc827 throw a timeout exception if not possible to get the lock after the timeout
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550560 13f79535-47bb-0310-9956-ffa450edef68
2013-12-12 22:37:16 +00:00
Olivier Lamy 4f4e15568d fix osgi metadata
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550559 13f79535-47bb-0310-9956-ffa450edef68
2013-12-12 22:37:05 +00:00
Olivier Lamy a724876adf license header
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550558 13f79535-47bb-0310-9956-ffa450edef68
2013-12-12 22:36:58 +00:00
Olivier Lamy 7f1ddf0b2f fix typo
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550557 13f79535-47bb-0310-9956-ffa450edef68
2013-12-12 22:36:48 +00:00
Olivier Lamy 875890880a cleanup this file locking library
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550556 13f79535-47bb-0310-9956-ffa450edef68
2013-12-12 22:36:40 +00:00
Olivier Lamy 6b23332e9d add a new module for file locking
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550396 13f79535-47bb-0310-9956-ffa450edef68
2013-12-12 11:26:40 +00:00