Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-18510

Sql. CompositePublisher is not thread safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • sql
    • Docs Required, Release Notes Required

    Description

      Currently our CompositePublisher is not threadsafe, but we have to deal with 3 types of potentially concurrent signals when arbitrating Flow.Subscriptions:

      1. request(long) call from downstream that has to be routed to the current Flow.Subscription
      2. cancel() call from downstream that has to be routed to the current Flow.Subscription and cancel any future Flow.Subscription.
      3. setSubscription(Flow.Subscription) that is called by the current Flow.Subscriber after subscribing to any Flow.Publisher which is not guaranteed to happen on the same thread subscribe() is called

      Let's reimplement our CompositePublisher

      Attachments

        Issue Links

          Activity

            People

              jooger Iurii Gerzhedovich
              jooger Iurii Gerzhedovich
              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 - 1h 40m
                  1h 40m