XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.2, 3.3.1, 3.4.0, 3.1.5
    • Component/s: None
    • Labels:
      None

      Description

      com.google.common.base.Predicate can be replaced with java.util.function.Predicate.
      The change involving 9 occurrences is straightforward:

      Targets
          Occurrences of 'com.google.common.base.Predicate' in project with mask '*.java'
      Found Occurrences  (9 usages found)
          org.apache.hadoop.hdfs.server.blockmanagement  (1 usage found)
              CombinedHostFileManager.java  (1 usage found)
                  43 import com.google.common.base.Predicate;
          org.apache.hadoop.hdfs.server.namenode  (1 usage found)
              NameNodeResourceChecker.java  (1 usage found)
                  38 import com.google.common.base.Predicate;
          org.apache.hadoop.hdfs.server.namenode.snapshot  (1 usage found)
              Snapshot.java  (1 usage found)
                  41 import com.google.common.base.Predicate;
          org.apache.hadoop.metrics2.impl  (2 usages found)
              MetricsRecords.java  (1 usage found)
                  21 import com.google.common.base.Predicate;
              TestMetricsSystemImpl.java  (1 usage found)
                  41 import com.google.common.base.Predicate;
          org.apache.hadoop.yarn.logaggregation  (1 usage found)
              AggregatedLogFormat.java  (1 usage found)
                  77 import com.google.common.base.Predicate;
          org.apache.hadoop.yarn.logaggregation.filecontroller  (1 usage found)
              LogAggregationFileController.java  (1 usage found)
                  22 import com.google.common.base.Predicate;
          org.apache.hadoop.yarn.logaggregation.filecontroller.ifile  (1 usage found)
              LogAggregationIndexedFileController.java  (1 usage found)
                  22 import com.google.common.base.Predicate;
          org.apache.hadoop.yarn.server.nodemanager.containermanager.logaggregation  (1 usage found)
              AppLogAggregatorImpl.java  (1 usage found)
                  75 import com.google.common.base.Predicate;
      
      

        Attachments

        1. HADOOP-17099.004.patch
          23 kB
          Ahmed Hussein
        2. HADOOP-17099.005.patch
          23 kB
          Ahmed Hussein
        3. HADOOP-17099.006.patch
          23 kB
          Ahmed Hussein
        4. HADOOP-17099.007.patch
          24 kB
          Ahmed Hussein

          Activity

            People

            • Assignee:
              ahussein Ahmed Hussein
              Reporter:
              ahussein Ahmed Hussein
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: