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
OAK-9757 : increased node name limit for mongo 4.2 version #560
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow. I would say that if we need to modify 109 files, there's something very wrong with this change.
Idea: Move (or copy) the util functions to the DocumentStore API, where they have access to metadata. |
Thanks @reschke, that's a good idea to move util function to DocumentStore and that would help us avoiding in calling metadata multiple times. |
d2409ef
to
decf195
Compare
I suggest we take a slightly different approach. To me it feels wrong that |
Also note that checks fails because two new files for classes |
Yes, I think it should be other way around i.e. node name too long should check whether path is long or not. |
9c61994
to
5ed7a64
Compare
...re-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoVersion.java
Outdated
Show resolved
Hide resolved
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentStore.java
Outdated
Show resolved
Hide resolved
...ore-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeState.java
Outdated
Show resolved
Hide resolved
...ument/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoDocumentStore.java
Outdated
Show resolved
Hide resolved
...tore-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoUtils.java
Outdated
Show resolved
Hide resolved
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/util/Utils.java
Outdated
Show resolved
Hide resolved
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/util/Utils.java
Show resolved
Hide resolved
...ore-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentSplitTest.java
Outdated
Show resolved
Hide resolved
...ocument/src/test/java/org/apache/jackrabbit/oak/plugins/document/MongoDocumentStoreTest.java
Outdated
Show resolved
Hide resolved
…d documentstore api name
...ore-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeState.java
Outdated
Show resolved
Hide resolved
...ore-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/CommitBuilderTest.java
Outdated
Show resolved
Hide resolved
...ocument/src/test/java/org/apache/jackrabbit/oak/plugins/document/MongoDocumentStoreTest.java
Outdated
Show resolved
Hide resolved
...tore-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoUtils.java
Outdated
Show resolved
Hide resolved
Use MongoStatus.isVersion() to decide on node name limit
…e creating/adding new node
…d documentstore api name
…limit" This reverts commit 20803aa.
OAK-9757: increased node name limit for mongo 4.2 version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look pretty good now but then I noticed a problem.
The new default method on the DocumentStore interfaces is not overridden in wrapper classes like LeaseCheckDocumentStoreWrapper. This means the increased node name capability of a MongoDocumentStore may be hidden behind one of those wrapper classes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, lgtm now.
(I agree, the other DocumentStore
classes in /src/test
do not necessarily have to implement getNodeNameLimit
- so that's fine to leave those out)
No description provided.