xrootd: Add billing entry on delete

In contrast to other doors, the xrootd door failed to generate billing
notifications on file deletion. This patch resolves this issue.

Target: trunk
Require-notes: yes
Require-book: no
Request: 2.10
Request: 2.9
Request: 2.8
Request: 2.7
Request: 2.6
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: https://rb.dcache.org/r/7190/
(cherry picked from commit 3425431abcf5457c26e94b21e415b35fbcb7cd78)
poolmanager: Suppress stack trace in case of unmatch units

The patch suppresses stack traces like the following:

03 Aug 2014 06:40:09 (PoolManager) [door:NFS-fax-dcap-proxy@faxDomain:1407040808696 NFS-fax-dcap-proxy PoolMgrSelectReadPool 0000D36F8581AC7043118452477B188E6EC1] Read pool selection failed
java.lang.IllegalArgumentException: Unit not matched : 0:0:0:0:0:0:0:1
        at diskCacheV111.poolManager.PoolSelectionUnitV2.match(PoolSelectionUnitV2.java:545) ~[dcache-core-2.9.6.jar:2.9.6]
        at diskCacheV111.poolManager.PoolMonitorV5$PnfsFileLocation.selectReadPool(PoolMonitorV5.java:234) ~[dcache-core-2.9.6.jar:2.9.6]
        at diskCacheV111.poolManager.RequestContainerV5$PoolRequestHandler.askIfAvailable(RequestContainerV5.java:2008) [dcache-core-2.9.6.jar:2.9.6]
        at diskCacheV111.poolManager.RequestContainerV5$PoolRequestHandler.stateEngine(RequestContainerV5.java:1488) [dcache-core-2.9.6.jar:2.9.6]
        at diskCacheV111.poolManager.RequestContainerV5$PoolRequestHandler.stateLoop(RequestContainerV5.java:1266) [dcache-core-2.9.6.jar:2.9.6]
        at diskCacheV111.poolManager.RequestContainerV5$PoolRequestHandler.access$2300(RequestContainerV5.java:691) [dcache-core-2.9.6.jar:2.9.6]
        at diskCacheV111.poolManager.RequestContainerV5$PoolRequestHandler$RunEngine.run(RequestContainerV5.java:1197) [dcache-core-2.9.6.jar:2.9.6]
        at org.dcache.util.FireAndForgetTask.run(FireAndForgetTask.java:31) [dcache-core-2.9.6.jar:2.9.6]
        at org.dcache.util.CDCExecutorServiceDecorator$1.run(CDCExecutorServiceDecorator.java:104) [dcache-core-2.9.6.jar:2.9.6]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_65]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_65]
        at java.lang.Thread.run(Thread.java:745) [na:1.7.0_65]

Target: trunk
Request: 2.10
Request: 2.9
Request: 2.8
Request: 2.7
Request: 2.6
Require-notes: yes
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: https://rb.dcache.org/r/7194/
(cherry picked from commit 1adf0d0b7cb9c262ab9b07009c53d35b58a6fe65)
Merge pull request #742 from gbehrmann/fix/2.9/rb7190

xrootd: Add billing entry on delete
Merge pull request #747 from gbehrmann/fix/2.9/rb7194

poolmanager: Suppress stack trace in case of unmatch units
gplazma: Fix JVM implementation dependency in unit test

The ListCommand outputs plugins in hash table order - this ordering is
implementation dependent, which in turn causes the
ListCommandTests.testDetailedList unit test to fail with some JVMs (eg Oracle
JDK 8).

Target: trunk
Request: 2.10
Request: 2.9
Request: 2.8
Request: 2.7
Request: 2.6
Require-notes: no
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: https://rb.dcache.org/r/7196/
(cherry picked from commit c0a68c5a29d48d06dcb10ead9261aadeac074c6d)
Make JDK byte code verification bug workaround Java 8 compatible

A workaround for a JDK bug that affects PowerMock only work with Java 7.
The -UseSplitVerifier option is no longer supported in Java 8. As an
alternative workaround, this patch disables the byte code verifier
entirely. Since this is only used with our own unit tests, the impact
is low.

Target: trunk
Request: 2.10
Request: 2.9
Request: 2.8
Request: 2.7
Request: 2.6
Require-notes: no
Requier-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: https://rb.dcache.org/r/7197/
(cherry picked from commit d06ed79d0bd6f1e387fcd10ae3a62b32895d0d35)
info: Fix HashMap ordering assumption in unit test

The unit test assumes a particular serialized form of the state tree
nodes, which isn't guaranteed when iterating over a HashMap. This causes
the unit tests to fail with some JDKs, in particular JDK 8.

Target: trunk
Request: 2.10
Request: 2.9
Request: 2.8
Request: 2.7
Request: 2.6
Require-notes: no
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: https://rb.dcache.org/r/7198/
(cherry picked from commit 14797ddac174e77e1aabf2a1873e5878d3d311f2)
Merge pull request #752 from gbehrmann/fix/2.9/rb7196

gplazma: Fix JVM implementation dependency in unit test
Merge pull request #757 from gbehrmann/fix/2.9/rb7197

Make JDK byte code verification bug workaround Java 8 compatible
Merge pull request #762 from gbehrmann/fix/2.9/rb7198

info: Fix HashMap ordering assumption in unit test
pool: Resolve high memory usage and other issues in sweeper

Space sweeper while reclaiming loads the meta data entry of the
files it will remove. This consumes a lot of memory, in particular
when the entire pool is purged, causing OOM in the worst case.

This patch resolves this issue. The patch also resolves an issue
with the 'sweeper ls' command which would block the message thread.

Finally, log messages indicating the end of long running operations
in sweeper and for 'rep rmclass' have been added. This allows the
admin to detect when these operations have finished. Other log messages
have been refined too, including lowering the log level of several
messages.

Target: trunk
Request: 2.10
Request: 2.9
Request: 2.8
Request: 2.7
Request: 2.6
Require-notes: yes
Require-book: yes
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: https://rb.dcache.org/r/7195/
(cherry picked from commit 467ad69ceaa2d5f7cdb4dd8ce21f36015381bdf4)

Conflicts:
	modules/dcache/src/main/java/org/dcache/pool/classic/SpaceSweeper2.java
Merge pull request #768 from gbehrmann/fix/2.9/rb7195

pool: Resolve high memory usage and other issues in sweeper
chimera: create missing index i_dirs_iparent

speedups remove operation

Acked-by: Albert Rossi
Acked-by: Paul Millar
Target: master, 2.6, 2.7, 2.8, 2.9, 2.10
Require-book: no
Require-notes: yes
(cherry picked from commit 1db22cf0d017933b64da167c52fe5248ca901733)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Merge pull request #776 from kofemann/fix-missing-index-2.9

chimera: create missing index i_dirs_iparent
solaris: fix solaris package script and add work-around for pkgmk bug

When building a tagged version of dCache, one of the directories is "-P
pkg".  The space in the directory name breaks the script and pkgmk
application.

This patch fixes the script by adding quotes to paths and adds a
work-around for the pkgmk bug.

Target: master
Patch: https://rb.dcache.org/r/7212/
Acked-by: Tigran Mkrtchyan
Request: 2.10
Request: 2.9
Request: 2.8
Request: 2.7
chimera: mark as-run if i_dirs_ipnfsid exists

Acked-by: Paul Millar
Target: master, 2.10, 2.9, 2.8, 2.7, 2.6
Require-book: no
Require-notes: no
(cherry picked from commit 1fb9ca4b089208bf9acef888d55014037860d91f)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Merge pull request #780 from kofemann/fix-chimera-index-2.9

chimera: mark as-run if i_dirs_ipnfsid exists
build: Update to findbugs 3

Ensures Java 8 compatibility.

The patch also adds/corrects various pieces of meta data in the pom.

Target: trunk
Require-notes: no
Require-book: no
Request: 2.10
Request: 2.9
Request: 2.8
Request: 2.7
Request: 2.6
Acked-by: Paul Millar <paul.millar@desy.de>
Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
(cherry picked from commit 507c3fced23220dbd6a203bc2d4a1e126e67d28f)

Conflicts:
	pom.xml
[maven-release-plugin] prepare release 2.9.9
[maven-release-plugin] prepare for next development iteration