TritonDataCenter / TritonDataCenter/sdc-cloudapi

ChangeFeed Events seem to come in out of order

Open
#70 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
8
Forks
22
Avg merge
3d 9h
Merged PRs (30d)
1

Description

It appears that the events aren't being sent in order, or are being sent out of order. The timestamps are a bit puzzling.

I believe the normal state changes would come in this order... shutting_down, down, stopped?

1st Stop

Change (2020-12-16T19:30:53.689Z) =>
    modified: state,zone_state
    state: shutting_down
    internal state: shutting_down
    object: 86586a47
Change (2020-12-16T19:30:55.691Z) =>
    modified: last_modified,state,zone_state,boot_timestamp,pid
    state: stopped
    internal state: stopped
    object: 86586a47
Change (2020-12-16T19:30:55.692Z) =>
    modified: last_modified,state,zone_state,pid
    state: down
    internal state: down
    object: 86586a47

shutting_down, stopped, down

2nd Stop

Change (2020-12-16T19:39:42.033Z) =>
    modified: last_modified,state,zone_state,boot_timestamp,pid
    state: stopped
    internal state: stopped
    object: 86586a47
Change (2020-12-16T19:39:42.037Z) =>
    modified: last_modified,state,zone_state,exit_timestamp,pid
    state: down
    internal state: down
    object: 86586a47
Change (2020-12-16T19:39:42.038Z) =>
    modified: state,zone_state,exit_status,exit_timestamp
    state: shutting_down
    internal state: shutting_down
    object: 86586a47

stopped, down, shutting_down

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the two ChangeFeed stop sequences shown in the issue and inspect the event ordering and timestamp behavior. The issue names no files, entry points, or tests; done means establishing the expected lifecycle order and resolving or clearly documenting the discrepancy.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.