Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-8379

Improve DBCPServiceTest Reliability and Performance

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.14.0
    • 1.14.0
    • Extensions
    • None

    Description

      DBCPServiceTest.testDropInvalidConnectionsH2_Default recently failed during an automated build with the following:

      org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net.ConnectException: Connection refused (Connection refused): localhost:9092" [90067-192]

       
      The test class has several other issues that should be addressed for performance and reliability:

      • Hard-coded test server port in some methods
      • Thread.sleep() in multiple methods for several seconds
      • Ignored test methods

       
       

      Attachments

        Issue Links

          Activity

            People

              exceptionfactory David Handermann
              exceptionfactory David Handermann
              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 - 20m
                  20m