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

[bJ4pn0Bj] PeriodicTest.testTerminateCommit is flaky #331

Merged
merged 2 commits into from
Feb 21, 2023

Conversation

vga91
Copy link
Collaborator

@vga91 vga91 commented Feb 16, 2023

I didn't notice it at first glance because locally it works even without the fix.

However the inner query was wrong because it returned a node, instead it is supposed to return a long.

My guess is that it's a timing problem, because if for example we remove the limit 1000 the query fails almost immediately,
while with return n instead of return count(n) it fails after a while.

So probably doing markForTermination() almost at the same time as it fails causes the flaky assertion error.

@vga91 vga91 added the dev label Feb 16, 2023
Copy link
Contributor

@gem-neo4j gem-neo4j left a comment

Choose a reason for hiding this comment

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

LGTM :)

@vga91 vga91 merged commit 9a83638 into dev Feb 21, 2023
@vga91 vga91 deleted the fix-flaky-testTerminateCommit branch February 21, 2023 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants