Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-393

Revise AbstractConcurrentDataBrokerTest design

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Medium Medium
    • 14.0.0
    • None
    • Binding runtime

      The design of AbstractConcurrentDataBrokerTest constructor is very misleading, as "single threaded executor" is in fact directExecutor(). There is no provision for controlling timing of delivered DTCLs and users are not guided towards a proper alternative.

      This is highly misleading, as users doing integration tests with predictable DTCL delivery use directExecutor(), which ties together producers and consumers - hence deadlocking and users are lead to believe there is something from in their code.

      A replacement should really have two favors:

      • don't care about DTCL delivery, run asynchronously
      • postpone DTCLs and allow the test to deliver them as needed (all or one by one)

       

            Unassigned Unassigned
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: