deniskuzZ commented on code in PR #540:
URL: https://github.com/apache/tez/pull/540#discussion_r4144728476


##########
tez-runtime-library/src/test/java/org/apache/tez/runtime/library/common/shuffle/TestShuffleUtils.java:
##########
@@ -286,6 +286,36 @@ public void 
testGenerateOnSpillEvent_With_All_EmptyPartitions() throws Exception
         "emptyPartitionBitSet cardinality (expecting 10) = " + 
emptyPartitionsBitSet.cardinality());
   }
 
+  /**
+   * An output that never started delivers no rows, and a single-partition one 
fills num_record
+   * like any other, so it joins the consumer's denominator instead of being 
scaled over.
+   */
+  @Test
+  public void testNonStartedSinglePartitionOutputReportsZeroRecords() throws 
Exception {
+    List<Event> events = Lists.newLinkedList();
+    ShuffleUtils.generateEventsForNonStartedOutput(events, 1, outputContext, 
false, true,
+        TezCommonUtils.newBestCompressionDeflater());
+
+    ShuffleUserPayloads.DataMovementEventPayloadProto proto =

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to