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

Flush before kill on Windows. Add retry on deletion in cluster.remove() #356

Merged
merged 1 commit into from Aug 18, 2015

Conversation

jmckenzie-dev
Copy link
Contributor

Reference CASSANDRA-10075: The retry is an attempt to remedy an intermittent
failure in dtests where commitlogs cannot be deleted during cluster stop.
Flush before kill is an attempt to address a class of problems that has
shown up in various dtests while stabilizing Windows tests for 2.2.

@@ -209,7 +209,7 @@ def balanced_tokens_across_dcs(self, dcs):

def remove(self, node=None):
if node is not None:
if not node.name in self.nodes:
if node.name not in self.nodes:
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh boy who had that backwards.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

flake8 for ccm is... not a pretty picture. I figured "leave the place cleaner than when I got here".

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, I'll flake8 it. I already ran some pep8, and isort.

Reference CASSANDRA-10075: The retry is an attempt to remedy an intermittent
failure in dtests where commitlogs cannot be deleted during cluster stop.
Flush before kill is an attempt to address a class of problems that has
shown up in various dtests while stabilizing Windows tests for 2.2.

# We want the node to flush its data before shutdown as some tests rely on small writes being present.
# The default Periodic sync at 10 ms may not have flushed data yet, causing tests to fail.
if gently is True:
Copy link
Contributor

Choose a reason for hiding this comment

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

Next time, better just to do if gently:

ptnapoleon added a commit that referenced this pull request Aug 18, 2015
Flush before kill on Windows. Add retry on deletion in cluster.remove()
@ptnapoleon ptnapoleon merged commit 0dadc33 into riptano:master Aug 18, 2015
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.

None yet

2 participants