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

    https://github.com/apache/flink/pull/1517#discussion_r65026385
  
    --- Diff: 
flink-runtime/src/main/java/org/apache/flink/runtime/operators/ReduceCombineDriver.java
 ---
    @@ -42,34 +44,38 @@
      * Combine operator for Reduce functions, standalone (not chained).
      * Sorts and groups and reduces data, but never spills the sort. May 
produce multiple
      * partially aggregated groups.
    - * 
    + *
      * @param <T> The data type consumed and produced by the combiner.
      */
     public class ReduceCombineDriver<T> implements Driver<ReduceFunction<T>, 
T> {
    -   
    +
        private static final Logger LOG = 
LoggerFactory.getLogger(ReduceCombineDriver.class);
     
        /** Fix length records with a length below this threshold will be 
in-place sorted, if possible. */
        private static final int THRESHOLD_FOR_IN_PLACE_SORTING = 32;
    -   
    -   
    +
    +
        private TaskContext<ReduceFunction<T>, T> taskContext;
     
        private TypeSerializer<T> serializer;
     
        private TypeComparator<T> comparator;
    -   
    +
        private ReduceFunction<T> reducer;
    -   
    +
        private Collector<T> output;
    -   
    +
    +   private DriverStrategy strategy;
    +
        private InMemorySorter<T> sorter;
    -   
    +
        private QuickSort sortAlgo = new QuickSort();
     
    +   private ReduceHashTable<T> table;
    +
        private List<MemorySegment> memory;
     
    -   private boolean running;
    +   private volatile boolean canceled;
    --- End diff --
    
    OK, I'll name it back to `running`. (Btw. now I remember what was my 
problem with this name: if the operator stops normally (not by cancel), then 
this is still `true`, despite not running anymore. So this is really only for 
cancelling.)


---
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.
---

Reply via email to