Skip to content

Commit

Permalink
Fix flaky TestEventListener#testOutputStats
Browse files Browse the repository at this point in the history
peakUserMemoryBytes is derived from peakUserMemoryReservation in
QueryStats, not revocable memory reservation.
  • Loading branch information
Lewuathe authored and sopel39 committed Jun 8, 2020
1 parent 5fcfc93 commit 6347897
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public void testOutputStats()
assertEquals(statistics.getResourceWaitingTime().get().toMillis(), queryStats.getResourceWaitingTime().toMillis());
assertEquals(statistics.getAnalysisTime().get().toMillis(), queryStats.getAnalysisTime().toMillis());
assertEquals(statistics.getExecutionTime().get().toMillis(), queryStats.getExecutionTime().toMillis());
assertEquals(statistics.getPeakUserMemoryBytes(), queryStats.getPeakRevocableMemoryReservation().toBytes());
assertEquals(statistics.getPeakUserMemoryBytes(), queryStats.getPeakUserMemoryReservation().toBytes());
assertEquals(statistics.getPeakTotalNonRevocableMemoryBytes(), queryStats.getPeakTaskUserMemory().toBytes());
assertEquals(statistics.getPeakTaskTotalMemory(), queryStats.getPeakTaskUserMemory().toBytes());
assertEquals(statistics.getPhysicalInputBytes(), queryStats.getPhysicalInputDataSize().toBytes());
Expand Down

0 comments on commit 6347897

Please sign in to comment.