Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-7454 Common side of High Availability Framework (HDFS-1623)
  3. HADOOP-8116

HA: RetriableCommand is using RetryPolicy incorrectly after HADOOP-7896

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • HA Branch (HDFS-1623)
    • None
    • util
    • None

    Description

      HADOOP-7896 (on the HA branch) refactored RetryAction from an enum to a class, and also moved the act of sleeping to delay retries from the RetryPolicy implementations into RetryInvocationHandler. RetriableCommand, in the rewritten distcp tool, uses RetryPolicy and associated classes from o.a.h.io.retry. When MAPREDUCE-2765 was merged into the HA branch, RetriableCommand wasn't adjusted accordingly to make use of the new structure of the o.a.h.io.retry classes.

      It's probably generally not kosher for RetriableCommand to be using the RetryPolicy classes at all, since they're not really intended to be used except by RetryInvocationHandler. But, regardless, this JIRA aims to make distcp's use of the o.a.h.io.retry classes functional again.

      Attachments

        1. HADOOP-8116-HDFS-1623.patch
          3 kB
          Aaron Myers
        2. HADOOP-8116-HDFS-1623.patch
          3 kB
          Aaron Myers

        Activity

          People

            atm Aaron Myers
            atm Aaron Myers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: