bhattmanish98 commented on code in PR #8137:
URL: https://github.com/apache/hadoop/pull/8137#discussion_r2647783790


##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsClient.java:
##########
@@ -372,19 +436,26 @@ public AbfsClient(final URL baseUrl,
       final SASTokenProvider sasTokenProvider,
       final EncryptionContextProvider encryptionContextProvider,
       final AbfsClientContext abfsClientContext,
-      final AbfsServiceType abfsServiceType)
+      final String fileSystemId, final AbfsServiceType abfsServiceType)
       throws IOException {
     this(baseUrl, sharedKeyCredentials, abfsConfiguration,
-        encryptionContextProvider, abfsClientContext, abfsServiceType);
+        encryptionContextProvider, abfsClientContext, fileSystemId, 
abfsServiceType);
     this.sasTokenProvider = sasTokenProvider;
     this.tokenProvider = tokenProvider;
   }
 
   @Override
   public void close() throws IOException {
-    if (isMetricCollectionEnabled && runningTimerTask != null) {
-      runningTimerTask.cancel();
-      timer.cancel();
+    if (isMetricCollectionEnabled()) {

Review Comment:
   There are few tests which already cover this. Will check if more test cases 
are needed to cover more scenario.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to