Github user JamesRTaylor commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/168#discussion_r63469161
  
    --- Diff: 
phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexIT.java 
---
    @@ -707,16 +702,17 @@ public void testIndexHalfStoreFileReader() throws 
Exception {
                     } catch (Exception ex) {
                       Log.info(ex);
                     }
    -
    -                long waitStartTime = System.currentTimeMillis();
    -                // wait until merge happened
    -                while (System.currentTimeMillis() - waitStartTime < 10000) 
{
    -                  List<HRegionInfo> regions = 
admin.getTableRegions(indexTable);
    -                  System.out.println("Waiting:" + regions.size());
    -                  if (regions.size() < numRegions) {
    -                    break;
    -                  }
    -                  Threads.sleep(1000);
    +                if(!localIndex) {
    +                    long waitStartTime = System.currentTimeMillis();
    +                    // wait until merge happened
    +                    while (System.currentTimeMillis() - waitStartTime < 
10000) {
    +                      List<HRegionInfo> regions = 
admin.getTableRegions(indexTable);
    +                      System.out.println("Waiting:" + regions.size());
    --- End diff --
    
    Remove System.out.println() or replace with logging.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to