Commit Graph

1103 Commits

Author SHA1 Message Date
Olivier Lamy 347a3918be fix compilation
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1551836 13f79535-47bb-0310-9956-ffa450edef68
2013-12-18 04:41:43 +00:00
Olivier Lamy 3e6c7ea831 ignore ClosedChannelException
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1551831 13f79535-47bb-0310-9956-ffa450edef68
2013-12-18 04:04:38 +00:00
Olivier Lamy 009686ad2d add a nex flag to indicate the merged index is temporary
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1551477 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 07:29:51 +00:00
Olivier Lamy d5830c882e prevent running in parrallel
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1551476 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 07:29:40 +00:00
Olivier Lamy 1e1f7cdacd [MRM-1746] build merged index for groups with a cron schedule
fix issues

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1551475 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 07:29:31 +00:00
Olivier Lamy 3ac4f6e662 extract inner classes
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1551474 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 07:29:07 +00:00
Olivier Lamy af520c00cf [MRM-1746] build merged index for groups with a cron schedule
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1551473 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 07:28:54 +00:00
Olivier Lamy b67de4117e refactoring to ease cron scheduling
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1551472 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 07:28:27 +00:00
Olivier Lamy dcd4afcdb8 configure cron expression to merge remote indexes tru the UI
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1551471 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 07:28:16 +00:00
Olivier Lamy 66ed6cb4b0 prevent possible NPE
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1551386 13f79535-47bb-0310-9956-ffa450edef68
2013-12-16 22:35:10 +00:00
Olivier Lamy 52caa0198b better handling of FNFE
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1551370 13f79535-47bb-0310-9956-ffa450edef68
2013-12-16 22:01:19 +00:00
Olivier Lamy db3fd658d5 osgi metadata
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1551178 13f79535-47bb-0310-9956-ffa450edef68
2013-12-16 11:17:16 +00:00
Olivier Lamy 56d48bd36e start refactoring merging remote indexes to have a cron job doing it
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1551123 13f79535-47bb-0310-9956-ffa450edef68
2013-12-16 06:53:37 +00:00
Olivier Lamy 28898793f5 start refactoring merging remote indexes to have a cron job doing it
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1551122 13f79535-47bb-0310-9956-ffa450edef68
2013-12-16 06:53:27 +00:00
Olivier Lamy c2d4f8bce1 prevent possible file limit issue
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1551121 13f79535-47bb-0310-9956-ffa450edef68
2013-12-16 06:53:09 +00:00
Olivier Lamy 4e077a844e prevent possible race condition if the file has been deleted
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1551109 13f79535-47bb-0310-9956-ffa450edef68
2013-12-16 03:35:55 +00:00
Olivier Lamy 4803f6be06 [MRM-1702] make the locking configurable via the UI
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550708 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 12:33:35 +00:00
Olivier Lamy 3e91228d28 try creating the file before the lock
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550648 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 05:31:21 +00:00
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 a903627323 fix rat and naming
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550640 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 04:47:24 +00:00
Olivier Lamy 679725dd5d file lock manager must be configurable
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550639 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 04:47:10 +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
Olivier Lamy 074386d154 dependencies not needed
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550044 13f79535-47bb-0310-9956-ffa450edef68
2013-12-11 03:40:15 +00:00
Olivier Lamy 8039adacd0 not needed
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1550042 13f79535-47bb-0310-9956-ffa450edef68
2013-12-11 03:39:59 +00:00
Olivier Lamy 2260b8e867 [MRM-589] use last plexus-utils 3.0.15
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1549807 13f79535-47bb-0310-9956-ffa450edef68
2013-12-10 11:03:32 +00:00
Olivier Lamy 05065c4deb not needed variable declaration
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1547290 13f79535-47bb-0310-9956-ffa450edef68
2013-12-03 05:46:19 +00:00
Olivier Lamy 60b382e36e fix logging warn level
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1546890 13f79535-47bb-0310-9956-ffa450edef68
2013-12-02 04:07:17 +00:00
Olivier Lamy 0edb0a75ef use last ehcache 2.7.4
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1544405 13f79535-47bb-0310-9956-ffa450edef68
2013-11-22 03:38:58 +00:00
Olivier Lamy b07ef499d8 fix osgi metadata
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1542166 13f79535-47bb-0310-9956-ffa450edef68
2013-11-15 03:55:45 +00:00
Olivier Lamy 76b43a9254 ignore files part of index directory when scanning
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1542140 13f79535-47bb-0310-9956-ffa450edef68
2013-11-15 00:41:06 +00:00
Olivier Lamy 402f10c841 code cleanup comment
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1541400 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 06:33:14 +00:00
Olivier Lamy ab6f5bde33 move to last easymock 3.2
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1541399 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 06:31:24 +00:00
Olivier Lamy 609b3d7e98 remove non used variable
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1539519 13f79535-47bb-0310-9956-ffa450edef68
2013-11-07 05:21:12 +00:00
Olivier Lamy 0399353cf3 use last jackson version
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1537754 13f79535-47bb-0310-9956-ffa450edef68
2013-10-31 23:01:29 +00:00
Olivier Lamy 4d6b0df838 fix unit test
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1525883 13f79535-47bb-0310-9956-ffa450edef68
2013-09-24 13:31:30 +00:00
Olivier Lamy ef1759b856 [MRM-1779] pom artifacts cannot be searched on Archiva 1.4-M4
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1525882 13f79535-47bb-0310-9956-ffa450edef68
2013-09-24 13:31:10 +00:00