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

BPServiceActor has nested shouldRun loops

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 2.0.0-alpha
    • None
    • namenode

    Description

      BPServiceActor#run and offerService booth have while shouldRun loops. We only need the outer one, ie we can hoist the info log from offerService out to run and remove the while loop.

      BPServiceActor#run:
      
      while (shouldRun()) {
        try {
          offerService();
        } catch (Exception ex) {
      ...
      
      offerService:
      
      while (shouldRun()) {
        try {
      

      Attachments

        1. HDFS-4047.patch
          3 kB
          Yanbo Liang
        2. hdfs-4047.txt
          6 kB
          Eli Collins
        3. HDFS-4047.patch
          4 kB
          Yanbo Liang
        4. hdfs-4047.txt
          5 kB
          Eli Collins

        Activity

          People

            eli Eli Collins
            eli Eli Collins
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: