Github user eowhadi commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/510#discussion_r65262111
--- Diff:
core/sqf/src/seatrans/hbase-trx/src/main/java/org/apache/hadoop/hbase/client/TrafParallelClientScanner.java.tmpl
---
@@ -116,21 +116,22 @@ public class TrafParallelClientScanner extends
AbstractClientScanner implements
LOG.debug("Found "+locs.size()+" region(s).");
if (locs.size() == 0) return;
+ int threads = parallelScaling>1.0 ?(int)Math.ceil(parallelScaling) :
(int)Math.ceil(locs.size() * parallelScaling);
+
--- End diff --
there is 2 ways to set DOP: as a % of regions to scan, or define the number
of thread manually.
parallelScaling = 0 disabled.
0<parallelScaling<=1.0, DOP expressed as percentage of regions to scan. 1.0
means 100%, .2 means 20%,
parallelScanner > 1.0, parallelScanner should be an integer number
representing the number of thread you want. If you define parallelScanner > 1
but not integer, we convert using ceiling...
---
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 [email protected] or file a JIRA ticket
with INFRA.
---