This is an automated email from the ASF dual-hosted git repository. htowaileb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/asterixdb.git
commit 210349710ae555815d57bcde55ff027df49bded9 Author: Hussain Towaileb <[email protected]> AuthorDate: Thu Nov 9 10:12:03 2023 +0300 [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 <[email protected]> Reviewed-by: Murtadha Hubail <[email protected]> Reviewed-by: Michael Blow <[email protected]> Tested-by: Michael Blow <[email protected]> --- .../org/apache/hyracks/control/nc/io/profiling/IOCounterProc.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 88822714a7..fe84ee792c 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 class IOCounterProc extends IOCounterCache<List<String>> { 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;
