Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-1191 Continuous Query Changes
  3. IGNITE-426

Make sure continuous queries notifications are not missed in case primary node fails

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 1.5.0.final
    • cache

    Description

      • Maintain updates queue on backup node(s) in addition to primary node.
      • If primary node crushes, this queue is flushed to listening clients.
      • To avoid notification duplicates we will have a per-partition update counter. Once an entry in some partition is updated, counter for this partition is incremented on both primary and backups. The value of this counter is also sent along with the update to the client, which also maintains the copy of this mapping. If at some moment it receives an update with the counter less than in its local map, this update is a duplicate and can be discarded.
      • To cleanup the backup queue we will use communication acks. When batch receival is acked by the client, we will send special ack message to backup nodes that will remove items that are not longer needed. This message has to contain partition to latest update counter map.

      Attachments

        Issue Links

          Activity

            People

              ntikhonov Nikolay Tikhonov
              yzhdanov Yakov Zhdanov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: