phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JamesRTaylor <>
Subject [GitHub] phoenix pull request #239: Phoenix-3744: Support snapshot scanners for MR-ba...
Date Mon, 15 May 2017 18:09:49 GMT
Github user JamesRTaylor commented on a diff in the pull request:
    --- Diff: phoenix-core/src/main/java/org/apache/phoenix/mapreduce/
    @@ -185,7 +188,10 @@ private QueryPlan getQueryPlan(final JobContext context, final Configuration
                     scan.setAttribute(BaseScannerRegionObserver.TX_SCN, Bytes.toBytes(Long.valueOf(txnScnValue)));
                 // Initialize the query plan so it sets up the parallel scans
    -            queryPlan.iterator(MapReduceParallelScanGrouper.getInstance());
    +            if(snapshotName != null)
    --- End diff --
    Add an init method to the ParallelScanGrouper interface that returns an instance and have
the TableMRParallelScanGrouper implementation of that return TableMRParallelScanGrouper.getInstance().
We shouldn't need switching logic here based on snapshotName.

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

View raw message