Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-869

hadoop preun should not stop services itself on behalf of its subpackages

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.6.0
    • None
    • None

    Description

      Right now we have the following:

       %preun
       if [ "$1" = 0 ]; then
        # Stop any services that might be running
        for service in %{hadoop_services}
        do
           service hadoop-$service stop 1>/dev/null 2>/dev/null || :
        done
         %{alternatives_cmd} --remove %{name}-conf %{etc_hadoop}/conf.empty || :
       fi
      

      But its subpackage also stop the services.
      Doing stop from from the main package AND the subpackages break the single responsibility principle.

      Attachments

        Activity

          People

            bmahe Bruno Mahé
            bmahe Bruno Mahé
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: