accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From keith-turner <...@git.apache.org>
Subject [GitHub] accumulo pull request: ACCUMULO-3602 BatchScanner optimization for...
Date Wed, 08 Apr 2015 14:45:11 GMT
Github user keith-turner commented on a diff in the pull request:

    https://github.com/apache/accumulo/pull/25#discussion_r27976100
  
    --- Diff: test/src/test/java/org/apache/accumulo/test/functional/AccumuloInputFormatIT.java
---
    @@ -146,6 +146,41 @@ public void testGetSplits() throws IOException, AccumuloSecurityException,
Accum
         AccumuloInputFormat.setAutoAdjustRanges(job, false);
         splits = inputFormat.getSplits(job);
         assertEquals(ranges.size(), splits.size());
    +
    +    //BatchScan not available for offline scans
    +    AccumuloInputFormat.setBatchScan(job, true);
    +
    +    AccumuloInputFormat.setOfflineTableScan(job, true);
    +    try {
    +      inputFormat.getSplits(job);
    +      fail("An exception should have been thrown");
    +    } catch (IOException e) {}
    +    AccumuloInputFormat.setOfflineTableScan(job, false);
    +
    +    //BatchScan not available with isolated iterators
    +    AccumuloInputFormat.setScanIsolation(job, true);
    +    try {
    +      inputFormat.getSplits(job);
    +      fail("An exception should have been thrown");
    +    } catch (IOException e) {}
    --- End diff --
    
    couldn't this fail because `setOfflineTableScan()` was called earlier?  Therefore if `setScanIsolation()`
does not cause a failure, the test may not detect this.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message