Merge -c 1497918 from branch-1 to branch-1.2 to fix MAPREDUCE-5260. Fix JvmManager to deal better with corner-cases in shutting down. Contributed by zhaoyunjiong.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.2@1497919 13f79535-47bb-0310-9956-ffa450edef68
Merge -c 1497933 from branch-1 to branch-1.2 to fix MAPREDUCE-5318. Escape ampersand in JSPUtil. Contributed by Bohou Li.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.2@1497935 13f79535-47bb-0310-9956-ffa450edef68
Merge -c 1497938 from branch-1 to branch-1.2 to fix HADOOP-9665. Fixed BlockDecompressorStream#decompress to return -1 rather than throw EOF at end of file. Contributed by Zhijie Shen.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.2@1497939 13f79535-47bb-0310-9956-ffa450edef68
HADOOP-9665. Committing new test case which was missed.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.2@1497961 13f79535-47bb-0310-9956-ffa450edef68
Merge -r 1497961:1497963 from branch-1 to branch-1.2 to fix MAPREDUCE-5351. Fixed a memory leak in JobTracker due to stable FS objects in FSCache. Contributed by Sandy Ryza.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.2@1497964 13f79535-47bb-0310-9956-ffa450edef68