8000 5.0 add storage engine check by gem-neo4j · Pull Request #169 · neo4j/apoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

5.0 add storage engine check #169

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
merged 3 commits into from
Sep 12, 2022
Merged

5.0 add storage engine check #169

merged 3 commits into from
Sep 12, 2022

Conversation

gem-neo4j
Copy link
Contributor

The apoc.warmup.run procedure can only be used with the currently available storage engines.

I've added a checker for checking which storage engine currently is set via config. Let me know thoughts on this! It is also possible to only have the docs updated :)

@gem-neo4j
Copy link
Contributor Author

Comment on lines 37 to 39
@Test(expected = RuntimeException.class)
public void testWarmupIsntAllowedWithOtherStorageEngines() {
testCall(session, "CALL apoc.warmup.run()", (r) -> {});
Copy link
Collaborator

Choose a reason for hiding this comment

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

Two nitpicks:

  • We are missing a positive test
  • Does this need to be an integration test (with a docker container)? Isn't there a way to test this with a unit test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can add specific positive tests :)

The only way to test the negative case was to use an enterprise db, is there a way to get a test on that without docker? When I searched for setting up enterprise in other tests this was how they did it, but maybe I misunderstood? If so let me know.

Copy link
Collaborator

Choose a reason for hiding this comment

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

That is a really good question. I don't know how we do it inside the Neo4j repo really, but there should be a way to test the enterprise version without docker containers right?

I'm happy for us to merge this and then revisit if we get ahold of how to do it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That sounds good :) I can make a card for finding that out

@gem-neo4j gem-neo4j force-pushed the 5.0_add_storage_engine_check branch from a877b3a to eb13787 Compare September 7, 2022 11:15
@gem-neo4j gem-neo4j merged commit a6e5087 into dev Sep 12, 2022
@gem-neo4j gem-neo4j deleted the 5.0_add_storage_engine_check branch September 12, 2022 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0