Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.2.0
    • Fix Version/s: 0.2.0
    • Component/s: Build and Test Code
    • Labels:
      None

      Description

      testInitAdaptors_vs_Checkpoint regularly fails in Hudson builds (solaris only), this class has been exclude for now but we still need to find/confirm the root cause.
      Right now the assumption is that there's a delay on solaris before being able to reuse a port.

      See Jira: HADOOP-5172 for details

      Error Message
      ============

      org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent$AlreadyRunningException: Agent already running; aborting

      Stacktrace
      ========

      junit.framework.AssertionFailedError: org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent$AlreadyRunningException: Agent already running; aborting
      at org.apache.hadoop.chukwa.datacollection.agent.TestAgentConfig.testInitAdaptors_vs_Checkpoint(TestAgentConfig.java:73)

      1. CHUKWA-10.patch
        0.6 kB
        Ari Rabkin

        Issue Links

          Activity

          Hide
          asrabkin Ari Rabkin added a comment -

          Let's fix this.

          Show
          asrabkin Ari Rabkin added a comment - Let's fix this.
          Hide
          asrabkin Ari Rabkin added a comment -

          I'd like to fix this in 0.2, for the benefit of QA.

          Show
          asrabkin Ari Rabkin added a comment - I'd like to fix this in 0.2, for the benefit of QA.
          Hide
          eyang Eric Yang added a comment -

          How is this fixed by using 0 as the control port? Another method is to sleep for 3 seconds before start of the next instance of chukwa agent.

          Show
          eyang Eric Yang added a comment - How is this fixed by using 0 as the control port? Another method is to sleep for 3 seconds before start of the next instance of chukwa agent.
          Hide
          jboulon Jerome Boulon added a comment -

          Also, I made a change in the socket server. Now setReuseAddress is set to true.

          Show
          jboulon Jerome Boulon added a comment - Also, I made a change in the socket server. Now setReuseAddress is set to true.
          Hide
          asrabkin Ari Rabkin added a comment -

          Telling a socket to bind to port 0 means "pick any open port". That should prevent collisions.

          I'm happy to mark this is duplicate if you think the fix is unneeded...

          Show
          asrabkin Ari Rabkin added a comment - Telling a socket to bind to port 0 means "pick any open port". That should prevent collisions. I'm happy to mark this is duplicate if you think the fix is unneeded...
          Hide
          asrabkin Ari Rabkin added a comment -

          I just committed this to both TRUNK and 0.2

          Show
          asrabkin Ari Rabkin added a comment - I just committed this to both TRUNK and 0.2
          Hide
          hudson Hudson added a comment -

          Integrated in Chukwa-trunk #55 (See http://hudson.zones.apache.org/hudson/job/Chukwa-trunk/55/)
          . Fix TestAgentConfig

          Show
          hudson Hudson added a comment - Integrated in Chukwa-trunk #55 (See http://hudson.zones.apache.org/hudson/job/Chukwa-trunk/55/ ) . Fix TestAgentConfig

            People

            • Assignee:
              asrabkin Ari Rabkin
              Reporter:
              jboulon Jerome Boulon
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development