Skip to content

PYTHON-1328: Add explicit wait to give cluster time to get initialized#1139

Merged
absurdfarce merged 2 commits intomasterfrom
python-1328
Mar 9, 2023
Merged

PYTHON-1328: Add explicit wait to give cluster time to get initialized#1139
absurdfarce merged 2 commits intomasterfrom
python-1328

Conversation

@absurdfarce
Copy link
Copy Markdown
Contributor

No description provided.

@absurdfarce absurdfarce requested a review from elliottrusso March 8, 2023 21:34
#
# Give the cluster enough time to startup (and perform necessary initialization)
# before executing the test.
if CASSANDRA_VERSION > Version('4.0-a'):
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Version string here pulled from the annotations defined in tests/integration/__init__.py

# Give the cluster enough time to startup (and perform necessary initialization)
# before executing the test.
if CASSANDRA_VERSION > Version('4.0-a'):
time.sleep(10)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This wait was happening within a test method but this relies on tests being executed in a specific order which is... not great. Moving to module initialization logic should resolve that issue.

@absurdfarce absurdfarce merged commit ff704d6 into master Mar 9, 2023
@absurdfarce absurdfarce deleted the python-1328 branch March 9, 2023 21:47
Lorak-mmk added a commit to Lorak-mmk/python-driver that referenced this pull request Mar 31, 2023
version 3.26.0

* tag '3.26.0' of https://github.com/datastax/python-driver: (22 commits)
  Release 3.26: changelog & version
  Going back to known good non-2.7 PyPy target.  PYTHON-1333 has more detail.
  Forgot to add complete extension
  Trying to get to a maximal working Pypy version.  Have to go back to 3.6 which isn't ideal...
  Update Travis config to only run versions that will be supported going forward
  Minor refactor of prior commit: now that we're dropping 2.7.x support we don't really need to leverage six for unit test functions.
  Remove references to unsupported Python versions from setup.py
  Refactor deprecated unittest aliases for Python 3.11 compatibility. (apache#1112)
  Merge pull request apache#1140 from python-driver/python-1327
  Merge pull request apache#1139 from python-driver/python-1328
  Merge pull request apache#1137 from python-driver/python-1329
  Merge pull request apache#1128 from python-driver/python-1304
  Fix jenkins builds (apache#1134)
  Minor refactor of prior commit
  Handle "log gone" case in the end of _run_loop (apache#1133)
  HostFilterPolicyInitTest fix for Python 3.11 (apache#1131)
  Groovy fixes
  Hey, let's actually update the right things, shall we?
  Smaller smoke test configuration to avoid explosion of test builds in AWS
  Fix to prior fix
  ...
Lorak-mmk added a commit to Lorak-mmk/python-driver that referenced this pull request Apr 12, 2023
version 3.26.0

* tag '3.26.0' of https://github.com/datastax/python-driver: (22 commits)
  Release 3.26: changelog & version
  Going back to known good non-2.7 PyPy target.  PYTHON-1333 has more detail.
  Forgot to add complete extension
  Trying to get to a maximal working Pypy version.  Have to go back to 3.6 which isn't ideal...
  Update Travis config to only run versions that will be supported going forward
  Minor refactor of prior commit: now that we're dropping 2.7.x support we don't really need to leverage six for unit test functions.
  Remove references to unsupported Python versions from setup.py
  Refactor deprecated unittest aliases for Python 3.11 compatibility. (apache#1112)
  Merge pull request apache#1140 from python-driver/python-1327
  Merge pull request apache#1139 from python-driver/python-1328
  Merge pull request apache#1137 from python-driver/python-1329
  Merge pull request apache#1128 from python-driver/python-1304
  Fix jenkins builds (apache#1134)
  Minor refactor of prior commit
  Handle "log gone" case in the end of _run_loop (apache#1133)
  HostFilterPolicyInitTest fix for Python 3.11 (apache#1131)
  Groovy fixes
  Hey, let's actually update the right things, shall we?
  Smaller smoke test configuration to avoid explosion of test builds in AWS
  Fix to prior fix
  ...
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.

1 participant