OAK-2068 Lucene index: "reindex" property (fix log message)

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1622230 13f79535-47bb-0310-9956-ffa450edef68
OAK-1641: Mongo: Un-/CheckedExecutionException on replica-primary crash

- Default to ReadPreference.primary() unless read from secondary is safe. 
- Updated tests accordingly
- Introduce a simply retry for uncached find call

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1622239 13f79535-47bb-0310-9956-ffa450edef68
OAK-2073 Prevent against integer overflow in compaction check

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1622250 13f79535-47bb-0310-9956-ffa450edef68
OAK-2075 - Travis build failing on
OrderedIndexConcurrentClusterIT.deleteConcurrently()

Ignored the test to unlock the build.

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1622418 13f79535-47bb-0310-9956-ffa450edef68
OAK-2074: _lastRev recovery tool

First implementation of the recovery tool. It supports a dryRun mode, which only checks the repository and logs the result. Without this option, the tool will apply the required changes.

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