phoenix-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [phoenix] kadirozde commented on a change in pull request #469: PHOENIX-5156 Consistent Global Indexes for Non-Transactional Tables
Date Thu, 02 May 2019 23:33:13 GMT
kadirozde commented on a change in pull request #469: PHOENIX-5156 Consistent Global Indexes
for Non-Transactional Tables
URL: https://github.com/apache/phoenix/pull/469#discussion_r280630981
 
 

 ##########
 File path: phoenix-core/src/it/java/org/apache/phoenix/end2end/ConcurrentMutationsIT.java
 ##########
 @@ -244,7 +244,7 @@ public void testConcurrentUpserts() throws Exception {
                public void run() {
                    try {
                        Connection conn = DriverManager.getConnection(getUrl());
-                       for (int i = 0; i < 10000; i++) {
+                       for (int i = 0; i < 5000; i++) {
 
 Review comment:
   The new design is not optimized for excessive number of concurrent writes (and should not
be). This test randomly updated the same 51 rows using 4 threads and each of these threads
wrote 10000 mutations. These generated large number of unverified index rows and index scan
took about 2 minute on my laptop to complete because each of these rows needs to be verified.
 The same test is repeated 5 times which made the test takes about 10 minutes. The 10000 number
is an arbitrary number and  5000 also creates large number of concurrent mutations. So, I
reduced the number to cut the test time by half, to 5 minutes. If this becomes a concern,
I can revert it back but the test would take longer.  Before my changes, this test took 2.5
minutes to run.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message