Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Intermittent follow_replication test failure #464

Closed
ricellis opened this issue Apr 15, 2020 · 1 comment · Fixed by #486
Closed

Intermittent follow_replication test failure #464

ricellis opened this issue Apr 15, 2020 · 1 comment · Fixed by #486
Assignees
Milestone

Comments

@ricellis
Copy link
Member

Please read these guidelines before opening an issue.

Bug Description

1. Steps to reproduce and the simplest code sample possible to demonstrate the issue

Run tests.unit.replicator_tests.ReplicatorTests.test_follow_replication

2. What you expected to happen

Test to pass.

3. What actually happened

Test failed with:

[2020-04-14T12:10:17.930Z] FAIL: Test that follow_replication(...) properly iterates updated
[2020-04-14T12:10:17.930Z]----------------------------------------------------------------------
[2020-04-14T12:10:17.930Z] Traceback (most recent call last):
[2020-04-14T12:10:17.930Z]   File "/home/jenkins/workspace/_cloudant_prepare-2.13.0-release/tests/unit/replicator_tests.py", line 417, in test_follow_replication
[2020-04-14T12:10:17.930Z]     self.assertIn(doc.get(state_key), valid_states)
[2020-04-14T12:10:17.930Z] AssertionError: 'initializing' not found in ('completed', 'error', 'triggered', 'running', None)

Environment details

  • Version(s) that are affected by this issue.

    master

  • Python version

    3.5.2

Looks like we need to add initializing to the list of valid states.

@ricellis
Copy link
Member Author

ricellis commented Nov 20, 2020

Looks like a timing change has exposed the initializing state that wasn't in the list of valid states (maybe it is a newer addition on the server side, maybe it was just missed out). Either way we should fix this so that we don't have intermittent failures blocking patch releases.

@ricellis ricellis added this to the 2.next milestone Nov 20, 2020
@ricellis ricellis self-assigned this Nov 20, 2020
@ricellis ricellis mentioned this issue Nov 20, 2020
4 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant