Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1363

callback invocation for docs added during couch_changes startup can be delayed by race condition

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.3, 1.1.1
    • Fix Version/s: 1.2, 1.2.1, 1.3
    • Component/s: Database Core
    • Labels:
      None

      Description

      After subscribing to notifications it's necessary to re-open the #db a so that the header points at all updates for which the updater notifier has already fired events. In practice, this is rarely problematic because the next change will cause everything to catch up, but if a quick burst of changes happens while, e.g., replication is starting the replication can go stale. Detected by intermittent replicator_db js test failures.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tilgovi Randall Leeds
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: