Skip to content

[porting] stress-test: Improve Node Count verification for work better in clusters (#669) #670

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

Merged

Conversation

bigmontz
Copy link
Contributor

No description provided.

@bigmontz bigmontz merged commit e8d0b4c into neo4j:4.2 Jan 27, 2021
@@ -449,7 +449,7 @@ function verifyNodeCount (context) {

const session = context.driver.session()
return session
.readTransaction(tx => tx.run('MATCH (n) RETURN count(n)'))
.writeTransaction(tx => tx.run('MATCH (n) RETURN count(n)'))
Copy link
Contributor

Choose a reason for hiding this comment

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

that's... counter-intuitive :)
out of curiosity, is the change done to force the query to be routed to the cluster leader?

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