Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rev-graph-update #157

Open
sanoel opened this issue Jun 3, 2022 · 0 comments
Open

Fix rev-graph-update #157

sanoel opened this issue Jun 3, 2022 · 0 comments

Comments

@sanoel
Copy link
Contributor

sanoel commented Jun 3, 2022

What occurred:

  1. target-helper had an error update and rejected a job.
  2. jobs deleted the job from the pending queue
  3. a rev-graph update came in late
  4. then the final job fail status came in

As a result a job entry only had a _rev key. We just want to make sure that final change is not lost entirely by the job watcher.

[
  {
    "resource_id": "resources/29xL9znRy5BfCNxdoOfo3pkxJ4N",
    "path": "",
    "body": {
      "2A1k6RS0YOuzlD4wtDiNTUZe3E8": null,
      "_meta": {
        "modifiedBy": "users/433",
        "modified": 1654267058.506,
        "_rev": 4087
      },
      "_rev": 4087
    },
    "type": "delete"
  }
]
[
  {
    "resource_id": "resources/29xL9znRy5BfCNxdoOfo3pkxJ4N",
    "path": "",
    "body": {
      "2A1k6RS0YOuzlD4wtDiNTUZe3E8": {
        "_rev": 8
      },
      "_meta": {
        "modifiedBy": "system/rev_graph_update",
        "modified": 1654267058.59,
        "_rev": 4088
      },
      "_rev": 4088
    },
    "type": "merge"
  },
  {
    "resource_id": "resources/2A1k6RS0YOuzlD4wtDiNTUZe3E8",
    "path": "/2A1k6RS0YOuzlD4wtDiNTUZe3E8",
    "body": {
      "status": "failure",
      "result": {
        "name": "TimeoutError"
      },
      "_meta": {
        "modifiedBy": "users/433",
        "modified": 1654267053.628,
        "_rev": 8
      },
      "_rev": 8
    },
    "type": "merge"
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant