- watch server going offline, reset database meta-information when it come back online
- revise legend to only display labels displayed in graph
Test compatibility reading from old index format.

Index format has subtly changed since 2.0.0
(numbers are written as string fields instead of numeric fields,
but using the same numeric format).
This test confirms that new code can read the old format.
Merge remote-tracking branch 'systay/1.9-parser-threading' into 1.9-maint
Restores JDK 6.0 compatibility

AutoCloseable is not part of Java 6.0 so we cannot be using it in this branch
Updated rolling upgrade 'quick verification' IT test so that it can be used again
Fixed some issues with the test itself
Updated rolling upgrade 'quick verification' IT test so that it can be used again

(cherry picked from commit 3636952ae2c5d89bf4d3e9917ec3cacca774e103)

Conflicts:
	enterprise/ha/src/test/java/org/neo4j/ha/upgrade/RollingUpgradeIT.java

Fixed some issues with the test itself

(cherry picked from commit 6d5aed4d27520bdb0179356aedf29a8abc05cad3)
Ties each NeoStoreTransaction to the transaction state object

instead of in a shared (and synchronized) ArrayMap to completely remove
that contention point. It's not an optimal place for those objects, but
it's temporary fix at least.
Removes excessive output during cluster tests
Ensures rolling upgrades from 1.9.5 to 1.9.6

Reintroduces snapshot requests from joining instances. The reason is that
 1.9.5 instances do not provide any means of discovering the state of the
 cluster other than snapshots. So if we want 1.9.6 instances to properly
 join they have to ask and receive snapshots. But, we do not want 1.9.6
 instances to actually serve snapshots, so now the coordinator returns
 a null snapshot state which is detected and discarded. This should
 allow the 1.9.6 instances to work problem free while being able
 to replace a 1.9.5 cluster.
Merge pull request #1748 from akollegger/browser-resync

Fix sidebar and legend tracking of graph labels
Fix bug with precision loss on indexing large numbers.

The problem was that we always coerced numbers to doubles, when encoding
their value in the index. This means that the loss of precision could cause
large long values that was sufficiently close together, to coerce to the
same indexed values. When this happened, index lookups would return
incorrect results by finding too much data, and constraints would be overly
restrictive. This has been fixed by double-checking the actual values in
the store, and filter out non-exact matches.

We could have alternatively changed the way that we store numbers in the
indexes, however, this would have introduced a store format change. We
decided against this solution since we just had a bunch of store format
changes in 2.0, and we did not want to burden our users with another one
in a bug-fix/patch release.

- When the DeferredConstraintVerificationUniqueLuceneIndexPopulator finds
  a collision in the index, it now looks up the actual value from the store,
  and double checks that the values are actually colliding, before claiming
  that a duplicate entry has been found.
- The UniqueInMemoryIndex does a similar thing.
- To help the indexes do lookups in the store, they are now being given a so
  called PropertyAccessor, which is implemented by the NeoStoreIndexStoreView
  class, which is provided by the IndexPopulatingJob.
- IndexPopulators are now given an IndexDescriptor for the index they are
  populating, so that they can get at the propertyKeyId for doing their
  property lookups throught the PropertyAccessor.
- The equality semantics of BooleanArrayProperty has been changed to be more
  similar with the other array property types. This was important because
  empty arrays are always equal to other empty arrays, regardless of the
  component type.
- The ListBasedIndex (an InMemoryIndex implementation type) is now gone, and
  the HashBasedIndex is now the default InMemoryIndex implementation, because
  it was easier to implement the new verifyDeferredConstraints method using
  the HashBasedIndex.
- ArrayEncoder no longer needs the ability to decode indexed values, because we
  now read the real values from the store.
- The SchemaProviderApprovalTests that already existed for indexes have been
  duplicated and modified so we now also verify the behaviour of constraints.
- The index look-up mechanisms have been streamlined throughout the DiskLayer,
  CacheLayer and StateHandlingStatementOperations.
- ConstraintEnforcingEntityOperations is virtually untouched by these changes.
- Tons of tests have been updated to match and verify these new behaviours.
- IndexUpdaterSupport has been deleted and its functionality inlined into the
  few tests that were using it.
Merge pull request #1837 from digitalstain/1.9-maint

Ensures rolling upgrades from 1.9.5 to 1.9.6
Merge pull request #1836 from tinwelint/2.0-no-persmgr-map-contention

Ties each NeoStoreTransaction to the transaction state object
Handle concurrent store copy and logical log pruning

o Previously a FileNotFoundException got thrown on a logical
  log file which gets pruned due to log rotation half way
  through a store copy.
o Check logical logs exist before attempting to copy them. If
  they don't exist then it shouldn't matter because they will
  be old ones anyway
o Split up NeoStoreFileListing to return logical logs and
  store files separately. This means there's a double pass of
  the files on FS so will add a benchmark to check this isn't
  detrimental
Merge pull request #1798 from apcj/index-compat

Test compatibility reading from old index format.
Revert "CoreAPI getRelationships now delegates to kernel API."

This reverts commit e8043a30c78f88a75a5e0c106bd2d18356612adb.
due to heavy performance hit. Will make its way in at a later point.
Rationalize example JVM parameters.

Add additional sensible example parameters:
  -XX:+PrintPromotionFailure
  -XX:+PrintFlagsFinal
  -XX:+PrintFlagsInitial

Explain that default heap size is dynamically calculated to avoid
confusion with example hard-coded sizes.

Remove legacy parameters that don't apply anymore, such as:
  wrapper.lockfile
  wrapper.java.app.mainclass

Conflicts:
	packaging/standalone/standalone-advanced/src/main/distribution/text/advanced/conf/neo4j-wrapper.conf
	packaging/standalone/standalone-enterprise/src/main/distribution/text/enterprise/conf/neo4j-wrapper.conf
Revert "Initial work on listing rels for a node via kernel API."

This reverts commit 81d75c3419560abea0e6333e43341168f31ff218.
backporting 17d5600bfef6ac83bc57596b71860e2ed3a6a36e:
"Shell: Print a warning when exiting with unterminated input"