Skip to content

Commit

Permalink
Identify nofification scan as type in execution hint apache#1055
Browse files Browse the repository at this point in the history
  • Loading branch information
keith-turner committed Feb 19, 2019
1 parent 282b94e commit 1f30731
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ public class ScanTask implements Runnable {
private long minSleepTime;
private long maxSleepTime;

private static final Map<String, String> SCAN_EXEC_HINTS =
Collections.singletonMap("scan_type", "fluo-ntfy");

ScanTask(NotificationFinder finder, NotificationProcessor proccessor,
PartitionManager partitionManager, Environment env, AtomicBoolean stopped, long minSleepTime,
long maxSleepTime) {
Expand Down Expand Up @@ -191,6 +194,8 @@ private ScanCounts scan(Session session, PartitionInfo pi, Range range)
NotificationHashFilter.setModulusParams(iterCfg, pi.getMyGroupSize(), pi.getMyIdInGroup());
scanner.addScanIterator(iterCfg);

scanner.setExecutionHints(SCAN_EXEC_HINTS);

ScanCounts counts = new ScanCounts();

for (Entry<Key, Value> entry : scanner) {
Expand Down

0 comments on commit 1f30731

Please sign in to comment.