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

Fix time measurement bug in TestDatanodeRestart#testWaitForRegistrationOnRestart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.7.4, 3.0.0-alpha2
    • test
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: