LUCENE-5797: Optimize norms merging

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1607074 13f79535-47bb-0310-9956-ffa450edef68
SOLR-6179: Better strategy for handling empty managed data to avoid spurious warning messages in the logs.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1607102 13f79535-47bb-0310-9956-ffa450edef68
LUCENE-5792: Simplified *AppendingBuffer APIs.


git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1607103 13f79535-47bb-0310-9956-ffa450edef68
SOLR-6157: Refactor the ensureAllReplicasAreActive method into base class and ensure the ClusterState is updated to address intermittent test failures on Jenkins.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1607110 13f79535-47bb-0310-9956-ffa450edef68
SOLR-6179: Fix unit test breakage by using InMemory storage if config dir is not writable.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1607128 13f79535-47bb-0310-9956-ffa450edef68
remove dead states after union(), just like intersection() and complement() do

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1607139 13f79535-47bb-0310-9956-ffa450edef68
SOLR-2245: Numerous improvements to the MailEntityProcessor

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1607147 13f79535-47bb-0310-9956-ffa450edef68
SOLR-6179: Include the RestManager stored data file to prevent warning when starting the example (and to prevent dirty checkouts when running example from svn)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1607150 13f79535-47bb-0310-9956-ffa450edef68
SOLR-2245: Add sha1 files for greenmail, gimap, and sun java mail.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1607221 13f79535-47bb-0310-9956-ffa450edef68
SOLR-5768: Add a distrib.singlePass parameter to make EXECUTE_QUERY phase fetch all fields and skip GET_FIELDS

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1607360 13f79535-47bb-0310-9956-ffa450edef68
Merge remote-tracking branch 'upstream/trunk' into trunk