HDDS-1080. Ozonefs Isolated class loader should support FsStorageStatistics.
authorNanda kumar <nanda@apache.org>
Tue, 12 Feb 2019 09:19:51 +0000 (14:49 +0530)
committerNanda kumar <nanda@apache.org>
Tue, 12 Feb 2019 09:19:51 +0000 (14:49 +0530)
Contributed by Elek, Marton.

hadoop-ozone/ozonefs/src/main/java/org/apache/hadoop/fs/ozone/FilteredClassLoader.java

index 4627245..96503cb 100644 (file)
@@ -53,6 +53,8 @@ public class FilteredClassLoader extends URLClassLoader {
     delegatedClasses.add("org.apache.hadoop.fs.ozone.OzoneClientAdapter");
     delegatedClasses.add("org.apache.hadoop.fs.ozone.BasicKeyInfo");
     delegatedClasses.add("org.apache.hadoop.fs.ozone.OzoneFSOutputStream");
+    delegatedClasses.add("org.apache.hadoop.fs.ozone.OzoneFSStorageStatistics");
+    delegatedClasses.add("org.apache.hadoop.fs.ozone.Statistic");
     delegatedClasses.add("org.apache.hadoop.fs.Seekable");
     this.delegate = parent;
     systemClassLoader = getSystemClassLoader();