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

StandardControllerServiceProviderIT has test failures

    XMLWordPrintableJSON

Details

    Description

      I encountered a test failure in StandardControllerServiceProviderIT while running -Pintegration-tests to review an unrelated PR. I discussed the issue briefly with Mark and he asked me to raise a Jira.

      128  [main] WARN  org.apache.nifi.nar.ExtensionManager - Controller Service org.apache.nifi.controller.service.util.TestControllerService is bundled with its supporting APIs org.apache.nifi.controller.ControllerService. The service APIs should not be bundled with the implementations.
      134  [main] WARN  org.apache.nifi.nar.ExtensionManager - Controller Service org.apache.nifi.controller.service.mock.ServiceA is bundled with its supporting APIs org.apache.nifi.controller.ControllerService, org.apache.nifi.components.ConfigurableComponent. The service APIs should not be bundled with the implementations.
      134  [main] WARN  org.apache.nifi.nar.ExtensionManager - Component org.apache.nifi.controller.service.mock.ServiceA is bundled with its referenced Controller Service APIs org.apache.nifi.controller.ControllerService. The service APIs should not be bundled with component implementations that reference it.
      135  [main] WARN  org.apache.nifi.nar.ExtensionManager - Controller Service org.apache.nifi.controller.service.mock.ServiceB is bundled with its supporting APIs org.apache.nifi.controller.ControllerService, org.apache.nifi.components.ConfigurableComponent. The service APIs should not be bundled with the implementations.
      136  [main] WARN  org.apache.nifi.nar.ExtensionManager - Controller Service org.apache.nifi.controller.service.mock.ServiceC is bundled with its supporting APIs org.apache.nifi.controller.ControllerService, org.apache.nifi.components.ConfigurableComponent. The service APIs should not be bundled with the implementations.
      136  [main] WARN  org.apache.nifi.nar.ExtensionManager - Component org.apache.nifi.controller.service.mock.ServiceC is bundled with its referenced Controller Service APIs org.apache.nifi.controller.ControllerService. The service APIs should not be bundled with component implementations that reference it.
      137  [main] WARN  org.apache.nifi.nar.ExtensionManager - Controller Service org.apache.nifi.controller.service.mock.ServiceD is bundled with its supporting APIs org.apache.nifi.controller.ControllerService, org.apache.nifi.components.ConfigurableComponent. The service APIs should not be bundled with the implementations.
      175  [main] WARN  org.apache.nifi.nar.ExtensionManager - Component org.apache.nifi.controller.service.mock.DummyProcessor is bundled with its referenced Controller Service APIs org.apache.nifi.controller.ControllerService. The service APIs should not be bundled with component implementations that reference it.
      178  [main] WARN  org.apache.nifi.nar.ExtensionManager - Component org.apache.nifi.controller.service.mock.DummyReportingTask is bundled with its referenced Controller Service APIs org.apache.nifi.controller.ControllerService. The service APIs should not be bundled with component implementations that reference it.
      269  [main] INFO  org.apache.nifi.controller.service.StandardControllerServiceProvider - Created Controller Service of type org.apache.nifi.controller.scheduling.LongEnablingService with identifier 1
      311  [main] INFO  org.apache.nifi.controller.scheduling.StandardProcessScheduler - Enabling LongEnablingService[id=1]
      2820 [main] INFO  org.apache.nifi.controller.scheduling.StandardProcessScheduler - Disabling LongEnablingService[id=1]
      3334 [Unit Test Thread-1] DEBUG org.apache.nifi.controller.service.StandardControllerServiceNode - Disabling service LongEnablingService[id=1] after it has been enabled due to disable action being initiated.
      3335 [Unit Test Thread-1] DEBUG org.apache.nifi.controller.service.StandardControllerServiceNode - Successfully disabled LongEnablingService[id=1]
      6831 [main] WARN  org.apache.nifi.nar.ExtensionManager - Controller Service org.apache.nifi.controller.service.util.TestControllerService is bundled with its supporting APIs org.apache.nifi.controller.ControllerService. The service APIs should not be bundled with the implementations.
      6832 [main] WARN  org.apache.nifi.nar.ExtensionManager - Controller Service org.apache.nifi.controller.service.mock.ServiceA is bundled with its supporting APIs org.apache.nifi.controller.ControllerService, org.apache.nifi.components.ConfigurableComponent. The service APIs should not be bundled with the implementations.
      6832 [main] WARN  org.apache.nifi.nar.ExtensionManager - Component org.apache.nifi.controller.service.mock.ServiceA is bundled with its referenced Controller Service APIs org.apache.nifi.controller.ControllerService. The service APIs should not be bundled with component implementations that reference it.
      6832 [main] WARN  org.apache.nifi.nar.ExtensionManager - Controller Service org.apache.nifi.controller.service.mock.ServiceB is bundled with its supporting APIs org.apache.nifi.controller.ControllerService, org.apache.nifi.components.ConfigurableComponent. The service APIs should not be bundled with the implementations.
      6833 [main] WARN  org.apache.nifi.nar.ExtensionManager - Controller Service org.apache.nifi.controller.service.mock.ServiceC is bundled with its supporting APIs org.apache.nifi.controller.ControllerService, org.apache.nifi.components.ConfigurableComponent. The service APIs should not be bundled with the implementations.
      6833 [main] WARN  org.apache.nifi.nar.ExtensionManager - Component org.apache.nifi.controller.service.mock.ServiceC is bundled with its referenced Controller Service APIs org.apache.nifi.controller.ControllerService. The service APIs should not be bundled with component implementations that reference it.
      6833 [main] WARN  org.apache.nifi.nar.ExtensionManager - Controller Service org.apache.nifi.controller.service.mock.ServiceD is bundled with its supporting APIs org.apache.nifi.controller.ControllerService, org.apache.nifi.components.ConfigurableComponent. The service APIs should not be bundled with the implementations.
      6839 [main] WARN  org.apache.nifi.nar.ExtensionManager - Component org.apache.nifi.controller.service.mock.DummyProcessor is bundled with its referenced Controller Service APIs org.apache.nifi.controller.ControllerService. The service APIs should not be bundled with component implementations that reference it.
      6840 [main] WARN  org.apache.nifi.nar.ExtensionManager - Component org.apache.nifi.controller.service.mock.DummyReportingTask is bundled with its referenced Controller Service APIs org.apache.nifi.controller.ControllerService. The service APIs should not be bundled with component implementations that reference it.
      6851 [Time-limited test] INFO  org.apache.nifi.controller.service.StandardControllerServiceProvider - Created Controller Service of type org.apache.nifi.controller.service.mock.ServiceA with identifier 1
      6856 [Time-limited test] INFO  org.apache.nifi.controller.service.StandardControllerServiceProvider - Created Controller Service of type org.apache.nifi.controller.service.mock.ServiceA with identifier 2
      6860 [Time-limited test] INFO  org.apache.nifi.controller.service.StandardControllerServiceProvider - Created Controller Service of type org.apache.nifi.controller.service.mock.ServiceA with identifier 3
      6863 [Time-limited test] INFO  org.apache.nifi.controller.service.StandardControllerServiceProvider - Created Controller Service of type org.apache.nifi.controller.service.mock.ServiceB with identifier 4
      6865 [Time-limited test] DEBUG org.apache.nifi.controller.service.StandardControllerServiceNode - Resetting Validation State of ServiceA[id=1] due to setting process group
      6869 [Time-limited test] DEBUG org.apache.nifi.controller.service.StandardControllerServiceNode - Resetting Validation State of ServiceA[id=2] due to setting process group
      6869 [Time-limited test] DEBUG org.apache.nifi.controller.service.StandardControllerServiceNode - Resetting Validation State of ServiceA[id=3] due to setting process group
      6870 [Time-limited test] DEBUG org.apache.nifi.controller.service.StandardControllerServiceNode - Resetting Validation State of ServiceB[id=4] due to setting process group
      6872 [Time-limited test] INFO  org.apache.nifi.controller.scheduling.StandardProcessScheduler - Enabling ServiceB[id=4]
      6873 [Time-limited test] DEBUG org.apache.nifi.controller.service.StandardControllerServiceProvider - Enabling the following Referencing Services for ServiceB[id=4]: [ServiceA[id=2], ServiceA[id=3], ServiceA[id=1], ServiceA[id=3]]
      6876 [Unit Test Thread-1] DEBUG org.apache.nifi.controller.service.StandardControllerServiceNode - Successfully enabled ServiceB[id=4]
      [ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 7.468 s <<< FAILURE! - in TestSuite
      [ERROR] testConcurrencyWithEnablingReferencingServicesGraph on testConcurrencyWithEnablingReferencingServicesGraph(org.apache.nifi.controller.service.StandardControllerServiceProviderIT)(org.apache.nifi.controller.service.StandardControllerServiceProviderIT)  Time elapsed: 0.049 s  <<< FAILURE!
      java.lang.IllegalStateException: Controller Service with ID 2 cannot be enabled because it is not currently valid
      	at org.apache.nifi.controller.service.StandardControllerServiceProviderIT.testEnableReferencingServicesGraph(StandardControllerServiceProviderIT.java:140)
      	at org.apache.nifi.controller.service.StandardControllerServiceProviderIT.testConcurrencyWithEnablingReferencingServicesGraph(StandardControllerServiceProviderIT.java:96)
      
      [INFO]
      [INFO] Results:
      [INFO]
      [ERROR] Failures:
      [ERROR]   StandardControllerServiceProviderIT.testConcurrencyWithEnablingReferencingServicesGraph:96->testEnableReferencingServicesGraph:140 ยป IllegalState
      [INFO]
      [ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0
      

      Attachments

        Activity

          People

            markap14 Mark Payne
            alopresto Andy LoPresto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: