XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.17.0, 1.16.2
    • None
    • None

    Description

      When one system test fails, it can sometimes leave the NiFi instance in a bad state. The NiFiSystemIT then runs its tearDown() method, but with the instance in an unexpected state, the destroyFlow() method may fail. An example of this is if a node is offloaded in a system test but the offload never completes. As a result, destroyFlow() will fail.

      In this case, the instance is left in a bad state. So the next test will fail. This will cause cascading failures because the NiFi instance is not in the expected state to begin with. This then makes it very difficult to understand what is happening.

      We can improve this by updating the NiFiSystemIT class so that when destroyFlow() fails, we call cleanup(), which will shutdown the NiFi instance and destroy the environment, creating a fresh environment for the next test so that we know we're in a good state.

      Also noticed an issue where test names can conflict in different classes. For example, OffloadIT and LoadBalanceIT both have a test named testOffload() and as a result, the names of the 'troubleshooting' directory collide and overwrite one another. We should include the Test Class Name in the name of the directory. This will also help in troubleshooting problems, as it makes it easier to identify which test failed.

      Attachments

        Issue Links

          Activity

            People

              markap14 Mark Payne
              markap14 Mark Payne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m