You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by la...@apache.org on 2019/06/17 18:41:46 UTC

[phoenix] branch 4.x-HBase-1.3 updated: PHOENIX-5348 increase batch size from 1 to 1000.

This is an automated email from the ASF dual-hosted git repository.

larsh pushed a commit to branch 4.x-HBase-1.3
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.x-HBase-1.3 by this push:
     new 6f8a213  PHOENIX-5348 increase batch size from 1 to 1000.
6f8a213 is described below

commit 6f8a213685cd42228256225d74547f98ef714934
Author: Lars Hofhansl <la...@apache.org>
AuthorDate: Mon Jun 17 11:42:06 2019 -0700

    PHOENIX-5348 increase batch size from 1 to 1000.
---
 .../src/it/java/org/apache/phoenix/end2end/IndexRebuildTaskIT.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexRebuildTaskIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexRebuildTaskIT.java
index 28821ee..325a500 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexRebuildTaskIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/IndexRebuildTaskIT.java
@@ -84,6 +84,7 @@ public class IndexRebuildTaskIT extends BaseUniqueNamesOwnClusterIT {
         Connection viewConn = null;
         try {
             conn = DriverManager.getConnection(getUrl());
+            conn.setAutoCommit(false);
             Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
             props.setProperty(PhoenixRuntime.TENANT_ID_ATTRIB, TENANT1);
 
@@ -106,7 +107,7 @@ public class IndexRebuildTaskIT extends BaseUniqueNamesOwnClusterIT {
             viewConn.createStatement().execute(idxSDDL);
 
             // Insert rows
-            int numOfValues = 1;
+            int numOfValues = 1000;
             for (int i=0; i < numOfValues; i++){
                 viewConn.createStatement().execute(
                         String.format("UPSERT INTO %s VALUES('%s', '%s', '%s')", viewName, String.valueOf(i), "y",