steveloughran commented on a change in pull request #1881: HADOOP-16910 Adding
file system counters in ABFS
URL: https://github.com/apache/hadoop/pull/1881#discussion_r392958582
##########
File path:
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsOutputStream.java
##########
@@ -181,6 +185,14 @@ public synchronized void write(final byte[] data, final
int off, final int lengt
writableBytes = bufferSize - bufferIndex;
}
+ incrementWriteOps();
+ }
+
+ /**
+ * Increment Write Operations.
+ */
+ public void incrementWriteOps() {
+ statistics.incrementWriteOps(1);
Review comment:
1. skip if statistics == null
2. make private
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]