This is an automated email from the ASF dual-hosted git repository.

nanda pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 166e04ea5d HDDS-12217. Remove reference to FileUtil in hdds-common. 
(#7818)
166e04ea5d is described below

commit 166e04ea5d252f4994bc69bb8a3de83299eebee8
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Thu Feb 6 15:53:26 2025 +0100

    HDDS-12217. Remove reference to FileUtil in hdds-common. (#7818)
---
 .../common/src/main/java/org/apache/hadoop/ozone/common/Storage.java  | 3 +--
 hadoop-ozone/common/pom.xml                                           | 4 ----
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git 
a/hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/common/Storage.java 
b/hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/common/Storage.java
index bc83a6cdf1..f6bd859980 100644
--- 
a/hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/common/Storage.java
+++ 
b/hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/common/Storage.java
@@ -20,7 +20,6 @@
 import static 
org.apache.hadoop.ozone.OzoneConfigKeys.OZONE_INIT_DEFAULT_LAYOUT_VERSION_DEFAULT;
 
 import org.apache.hadoop.hdds.annotation.InterfaceAudience;
-import org.apache.hadoop.fs.FileUtil;
 import org.apache.hadoop.hdds.conf.OzoneConfiguration;
 import org.apache.hadoop.hdds.protocol.proto.HddsProtos.NodeType;
 import org.apache.hadoop.util.Time;
@@ -235,7 +234,7 @@ private StorageState getStorageState() throws IOException {
         LOG.warn("{} is not a directory", rootPath);
         return StorageState.NON_EXISTENT;
       }
-      if (!FileUtil.canWrite(root)) {
+      if (!root.canWrite()) {
         LOG.warn("Cannot access storage directory {}", rootPath);
         return StorageState.NON_EXISTENT;
       }
diff --git a/hadoop-ozone/common/pom.xml b/hadoop-ozone/common/pom.xml
index ae7162a846..8bdf3bde30 100644
--- a/hadoop-ozone/common/pom.xml
+++ b/hadoop-ozone/common/pom.xml
@@ -84,10 +84,6 @@
       <groupId>jakarta.annotation</groupId>
       <artifactId>jakarta.annotation-api</artifactId>
     </dependency>
-    <dependency>
-      <groupId>org.apache.commons</groupId>
-      <artifactId>commons-compress</artifactId>
-    </dependency>
     <dependency>
       <groupId>org.apache.commons</groupId>
       <artifactId>commons-lang3</artifactId>


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

Reply via email to