Nice aritile about when zookeeper fails
http://java.dzone.com/articles/solrcloud-what-happens-when
http://java.dzone.com/articles/solrcloud-what-happens-when
java -ea:org.apache.lucene... org.apache.lucene.index.CheckIndex INDEX_PATH -fix
example
java -cplucene-core-2.9.3.jar -ea:org.apache.lucene... org.apache.lucene.index.CheckIndex E:\\Solr\\solr\\data\\index\\ -fix
Dog myDog;
Dog myDog = new Dog("Rover");
foo(myDog);
Dog object to the foo method.Dog object resides at memory address 42. This means we pass 42 to the method.public void foo(Dog someDog) {
someDog.setName("Max"); // AAA
someDog = new Dog("Fifi"); // BBB
someDog.setName("Rowlf"); // CCC
}
someDog is set to the value 42someDog is followed to the Dog it points to (the Dog object at address 42)Dog (the one at address 42) is asked to change his name to MaxDog is created. Let's say he's at address 74someDog to 74Dog it points to (the Dog object at address 74)Dog (the one at address 74) is asked to change his name to RowlfmyDog change?myDog is a pointer, and not an actual Dog, the answer is NO. myDog still has the value 42; it's still pointing to the original Dog.foo method we defined above would have changed where myDog was pointing when it assigned someDog on line BBB.