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

Fix time measurement bug in TestDatanodeRestart#testWaitForRegistrationOnRestart

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment