Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-10915

Fix time measurement bug in TestDatanodeRestart#testWaitForRegistrationOnRestart

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.4, 3.0.0-alpha2
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      It should be milliseconds in the message of IOException.

      } catch (org.apache.hadoop.ipc.RemoteException e) {
              long elapsed = System.currentTimeMillis() - start;
              // timers have at-least semantics, so it should be at least 5 seconds.
              if (elapsed < 5000 || elapsed > 10000) {
                throw new IOException(elapsed + " seconds passed.", e);
              }
            }
      

        Attachments

        1. HDFS-10915.000.patch
          2 kB
          Xiaobing Zhou
        2. HDFS-10915.001.patch
          3 kB
          Xiaobing Zhou

          Activity

            People

            • Assignee:
              xiaobingo Xiaobing Zhou
              Reporter:
              xiaobingo Xiaobing Zhou
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: