commit | 210349710ae555815d57bcde55ff027df49bded9 | [log] [tgz] |
---|---|---|
author | Hussain Towaileb <Hussain.Towaileb@couchbase.com> | Thu Nov 09 10:12:03 2023 +0300 |
committer | Hussain Towaileb <hussainht@gmail.com> | Thu Nov 09 13:58:56 2023 +0000 |
tree | 06ba1316f271f1494a2434b1187b8219e2eaaa27 | |
parent | 0861f9034f561b00f4c0c18376b2a78f7ed5e257 [diff] |
[NO ISSUE]: Only include written bytes when reporting write IO Change-Id: Ic4df1d055a2a101b6951ab8a18a72596f4b9c487 Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/17937 Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Reviewed-by: Murtadha Hubail <mhubail@apache.org> Reviewed-by: Michael Blow <mblow@apache.org> Tested-by: Michael Blow <mblow@apache.org>
diff --git a/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-nc/src/main/java/org/apache/hyracks/control/nc/io/profiling/IOCounterProc.java b/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-nc/src/main/java/org/apache/hyracks/control/nc/io/profiling/IOCounterProc.java index 8882271..fe84ee7 100644 --- a/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-nc/src/main/java/org/apache/hyracks/control/nc/io/profiling/IOCounterProc.java +++ b/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-nc/src/main/java/org/apache/hyracks/control/nc/io/profiling/IOCounterProc.java
@@ -50,9 +50,7 @@ public long getWrites() { try { List<String> rows = getInfo(); - long writes = extractRow(rows, 5); - long cancelledWrites = extractRow(rows, 6); - return writes - cancelledWrites; + return extractRow(rows, 5); } catch (Exception e) { LOGGER.log(failureCount++ > 0 ? Level.DEBUG : Level.WARN, "Failure getting writes", e); return IOCounterDefault.IO_COUNTER_UNAVAILABLE;