TINKERPOP-2436 The gremlin server starts even if all graphs instantiation has failed#1342
Conversation
|
We had it this way purposely. because you might want to configure the server with no graphs at all. I'd admit it an odd use case. I suppose we could think about changing it. Perhaps users would be better served to know that their graph configurations failed. If they wanted the corner use case to start with no graphs at all I suppose they could provide their own |
|
No comments from anyone so I suppose there are no high-priority concerns. I suppose this isn't a bad change and might actually help new users who might get their configurations wrong and then wonder why they are getting errors. I suppose that has happened before. Here's some things that I think need to be done to get this one ready for proper review:
I'm not sure if that's everything or not, but I can't see much further on this one without some of these changes in place. It's always interesting how software works - take something though to be "simple" and it quickly unravels into something quite the opposite. Please let me know if you have any questions @mmadoo |
|
I do not have change the Upgrade Documentation as this GraphManager is not the default, so it will not break anything. An option is to set like it in 3.4 branch and to make it default in master. Also, why does DefaultGraphManager was final (class and methods), this make harder to do a extension on this class. I have only removed final on class (I like the Jetty approach that allows override at nearly any level) |
See item 2 above. I was offering you the option to change to your new one. If you want to point this PR at
I made mention of this in item 1 - "You will need to alter DefaultGraphManager scopes to make this work". Yes, you will need to make I think I would also add another item:
|
gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/util/DefaultGraphManager.java
Show resolved
Hide resolved
|
This PR is looking pretty good. It looks like the only two issues from my first review that are still outstanding are:
I think an integration test would be good. We didn't have any "shutdown" tests for you to use as a model so I quickly added one, which would probably a good idea anyway, so you can add yours to that: 339551d
We don't have a breaking change anymore since we kept the As a final point of tidying, after you choose the branch you are aimed at, please clean up the git history a bit and squash your commits down to one as we prepare for a final merge. |
1e1329b to
14fafd5
Compare
|
I was a bit skeptical of the travis errors at first, but your pull request doesn't build for me and i'm not sure what's wrong. Were you able to get a basic |
I am able to run successfully the same commands as travis job: In travis build, I can see that openjdk 11 is used. May be, the issue is due to the PR was created to master and not 3.4-dev. When I latter changed the target branch, may be travis is still use the master travis configuration file. |
|
I noticed the travis issue with the jdk (which is why i was skeptical...i should have wrote that), but I'm building locally with: My errors are in Gremlin Server: They seem related to this stacktrace perhaps: I've tested to check with I think that the reason you don't see error is because you |
14fafd5 to
730d349
Compare
|
It should be fixed now, the server was not stopped in GremlinServerShutdownIntegrationTest |
|
ah - nice. sorry i suppose that was my mistake. i got too used to relying on the test infrastructure to cleanup Gremlin Server for me and that test didn't extend from that framework. Retesting on my end now - assuming it all passes I'll get this merged. VOTE +1 |
|
Merged - thanks for your work on this. Take care! |
https://issues.apache.org/jira/browse/TINKERPOP-2436
I could create a junit test if needed but I do not know where and how add such test