Skip to content

Address flakey Mango Elixir tests#2357

Merged
willholley merged 1 commit intomasterfrom
mango_test_fixes
Dec 16, 2019
Merged

Address flakey Mango Elixir tests#2357
willholley merged 1 commit intomasterfrom
mango_test_fixes

Conversation

@willholley
Copy link
Copy Markdown
Member

Overview

When creating a Mango index in the Elixir tests, we need to block until the database reports the index as available. This workaround was present in the python Mango tests but did not
get ported to Elixir when the partitioned Mango tests were added.

Presumably this is needed to workaround an underlying race condition between the index write and the ddoc cache.

Testing recommendations

let's see if it reliably passes in CI...

Related Issues or Pull Requests

Checklist

  • Code is written and works correctly
  • Changes are covered by tests
  • Any new configurable parameters are documented in rel/overlay/etc/default.ini
  • A PR for documentation changes has been made in https://github.com/apache/couchdb-documentation

@willholley willholley force-pushed the mango_test_fixes branch 2 times, most recently from b903db1 to 2c8983a Compare December 13, 2019 09:45
@garrensmith
Copy link
Copy Markdown
Member

@willholley this seems to break the tests.

When creating a Mango index in the Elixir tests, we need to
block until the database reports the index as available. This
workaround was present in the python Mango tests but did not
get ported to Elixir when the partitioned Mango tests were added.

Presumambly this is needed to workaround an underlying race condition
between the index write and the ddoc cache.
@willholley willholley changed the title WIP: address flakey Mango Elixir tests Address flakey Mango Elixir tests Dec 16, 2019
@willholley
Copy link
Copy Markdown
Member Author

@garrensmith oops - should be okay now. I think this may still be needed in addition #2363 given the python-based Mango tests have always run with n=1 iirc.

Copy link
Copy Markdown
Member

@garrensmith garrensmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@willholley willholley merged commit 789ffbc into master Dec 16, 2019
@willholley willholley deleted the mango_test_fixes branch December 16, 2019 10:30
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

Successfully merging this pull request may close these issues.

2 participants