Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-10170 Improve acceptance tests
  3. HDDS-11704

Hadoop test leaves running containers in case of failure

    XMLWordPrintableJSON

Details

    Description

      Hadoop's containers are left running if Hadoop test fails.

      repro
      cd hadoop-ozone/dist/target/ozone-2.0.0-SNAPSHOT/compose
      sed -i -e 's/execute_command_in_container rm hadoop version/exit 1/' common/hadoop-test.sh
      cd ozone
      ./test-hadoop.sh
      docker ps
      
      result
      CONTAINER ID   IMAGE                 COMMAND                  CREATED          STATUS          PORTS                                                                      NAMES
      525fd4ae5cc2   apache/hadoop:3.3.6   "/usr/local/bin/dumb…"   13 seconds ago   Up 12 seconds   0.0.0.0:8088->8088/tcp, :::8088->8088/tcp                                  ozone-rm-1
      27e9903e3d3a   apache/hadoop:3.3.6   "/usr/local/bin/dumb…"   13 seconds ago   Up 12 seconds                                                                              ozone-nm-1
      

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: