You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by is...@apache.org on 2017/02/19 08:34:54 UTC
[05/13] lucene-solr:branch_6x: SOLR-10079: Test fix for
TestInPlaceUpdatesDistrib, using clearIndex()
SOLR-10079: Test fix for TestInPlaceUpdatesDistrib, using clearIndex()
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/c392d760
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/c392d760
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/c392d760
Branch: refs/heads/branch_6x
Commit: c392d760bd10812a74cc0c5b06ac7617d544743c
Parents: e9d3bdd
Author: Ishan Chattopadhyaya <is...@apache.org>
Authored: Tue Feb 7 03:40:52 2017 -0800
Committer: Ishan Chattopadhyaya <is...@apache.org>
Committed: Sun Feb 19 13:27:33 2017 +0530
----------------------------------------------------------------------
.../solr/update/TestInPlaceUpdatesDistrib.java | 26 ++++++++++----------
1 file changed, 13 insertions(+), 13 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/c392d760/solr/core/src/test/org/apache/solr/update/TestInPlaceUpdatesDistrib.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/update/TestInPlaceUpdatesDistrib.java b/solr/core/src/test/org/apache/solr/update/TestInPlaceUpdatesDistrib.java
index 74360e3..5386721 100644
--- a/solr/core/src/test/org/apache/solr/update/TestInPlaceUpdatesDistrib.java
+++ b/solr/core/src/test/org/apache/solr/update/TestInPlaceUpdatesDistrib.java
@@ -181,7 +181,7 @@ public class TestInPlaceUpdatesDistrib extends AbstractFullDistribZkTestBase {
// The following should work: full update to doc 0, in-place update for doc 0, delete doc 0
private void outOfOrderDBQsTest() throws Exception {
- del("*:*");
+ clearIndex();
commit();
buildRandomIndex(0);
@@ -241,12 +241,12 @@ public class TestInPlaceUpdatesDistrib extends AbstractFullDistribZkTestBase {
}
log.info("outOfOrderDeleteUpdatesIndividualReplicaTest: This test passed fine...");
- del("*:*");
+ clearIndex();
commit();
}
private void docValuesUpdateTest() throws Exception {
- del("*:*");
+ clearIndex();
commit();
// number of docs we're testing (0 <= id), index may contain additional random docs (id < 0)
@@ -397,7 +397,7 @@ public class TestInPlaceUpdatesDistrib extends AbstractFullDistribZkTestBase {
private void ensureRtgWorksWithPartialUpdatesTest() throws Exception {
- del("*:*");
+ clearIndex();
commit();
float inplace_updatable_float = 1;
@@ -496,7 +496,7 @@ public class TestInPlaceUpdatesDistrib extends AbstractFullDistribZkTestBase {
private void outOfOrderUpdatesIndividualReplicaTest() throws Exception {
- del("*:*");
+ clearIndex();
commit();
buildRandomIndex(0);
@@ -561,14 +561,14 @@ public class TestInPlaceUpdatesDistrib extends AbstractFullDistribZkTestBase {
}
log.info("outOfOrderUpdatesIndividualReplicaTest: This test passed fine...");
- del("*:*");
+ clearIndex();
commit();
}
// The following should work: full update to doc 0, in-place update for doc 0, delete doc 0
private void outOfOrderDeleteUpdatesIndividualReplicaTest() throws Exception {
- del("*:*");
+ clearIndex();
commit();
buildRandomIndex(0);
@@ -627,7 +627,7 @@ public class TestInPlaceUpdatesDistrib extends AbstractFullDistribZkTestBase {
}
log.info("outOfOrderDeleteUpdatesIndividualReplicaTest: This test passed fine...");
- del("*:*");
+ clearIndex();
commit();
}
@@ -641,7 +641,7 @@ public class TestInPlaceUpdatesDistrib extends AbstractFullDistribZkTestBase {
DV(id=x, val=5, ver=3)
*/
private void reorderedDBQsWithInPlaceUpdatesShouldNotThrowReplicaInLIRTest() throws Exception {
- del("*:*");
+ clearIndex();
commit();
buildRandomIndex(0);
@@ -728,12 +728,12 @@ public class TestInPlaceUpdatesDistrib extends AbstractFullDistribZkTestBase {
}
log.info("reorderedDBQsWithInPlaceUpdatesShouldNotThrowReplicaInLIRTest: This test passed fine...");
- del("*:*");
+ clearIndex();
commit();
}
private void delayedReorderingFetchesMissingUpdateFromLeaderTest() throws Exception {
- del("*:*");
+ clearIndex();
commit();
float inplace_updatable_float = 1F;
@@ -795,7 +795,7 @@ public class TestInPlaceUpdatesDistrib extends AbstractFullDistribZkTestBase {
// This is to ensure that the fetch missing update from leader doesn't bomb out if the
// document has been deleted on the leader later on
{
- del("*:*");
+ clearIndex();
commit();
shardToJetty.get(SHARD1).get(1).jetty.getDebugFilter().unsetDelay();
@@ -1038,7 +1038,7 @@ public class TestInPlaceUpdatesDistrib extends AbstractFullDistribZkTestBase {
* dbq("inp:14",version=4)
*/
private void testDBQUsingUpdatedFieldFromDroppedUpdate() throws Exception {
- del("*:*");
+ clearIndex();
commit();
float inplace_updatable_float = 1F;