Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-1901

start-here.sh starts only one GC process even if more are defined

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.2, 1.4.3, 1.4.4, 1.5.0
    • Fix Version/s: 1.4.5, 1.5.1, 1.6.0
    • Component/s: gc, scripts
    • Labels:
    • Environment:

      Red Hat Enterprise Linux 6.3 64-bit

      Description

      Even when a second host is listed in the gc file, the gc process is only ever started on the first host listed in the gc file. The issue lies in lines 48-55 in start-here.sh as shown below:

      for host in $HOSTS
      do
          if [ ${host} = ${GC} ]
          then
              ${bin}/start-server.sh $GC gc "garbage collector"
              break
          fi
      done
      

      Simple fix:

      for host in $HOSTS
      do
          if grep -q "^${host}\$" $ACCUMULO_HOME/conf/gc
          then
              ${bin}/start-server.sh ${host} gc "garbage collector"
              break
          fi
      done
      

      This fix works in my 1.4.2 environment. stop-here.sh already sweeps all possible processes to kill them, so I assumed no fix was needed there, but on my last cluster shutdown I found the stop-all.sh script only stopped the GC on the Master host. That fix is still outstanding.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                texpilot Terry Porter
                Reporter:
                texpilot Terry Porter
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified