Feature request: XmlDocumentManager.write() returns an updated DocumentDescriptor
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 58/100
Research direction
Start at XmlDocumentManager.write(DocumentDescriptor desc, WriteHandle handle) and inspect its interface, implementations, and existing tests. Update the API so the write operation returns the updated DocumentDescriptor containing the new document version, then verify the affected write behavior and callers.
Written by the indexing model from the issue text.
Description
We would like to use the optimistic read feature on XmlDocumentManager.read(DocumentDescriptor desc, String uri). To use it effiently we would store the latest DocumentDescriptor and document in memory on our client side, thus when XmlDocumentManager.read(DocumentDescriptor descr, String uri) returns null - signalling that the content on the server has not changed in between - we know that our descriptor and document in memory is up to date.
Request: to close the loop we would need to enhance the XmlDocumentManager's write method to return the updated DocumentDescriptor (with the updated document version number inside) like this:
DocumentDescriptor write(DocumentDescriptor desc, WriteHandle handle);
- Dominant language
- Java
- Stars
- 61
- Forks
- 74
- Avg merge
- 2d 53m
- Merged PRs (30d)
- 8
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from marklogic/java-client-api
-
Bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
marklogic/java-client-api#1886 · 7 comments ·
-
server-bug
Difficulty 4/5 3-5 days Newbie friendliness 52/100
marklogic/java-client-api#1643 · 7 comments ·
All issues in marklogic/java-client-api
Similar issues
-
bug untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
opensearch-project/ml-commons#5094 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
emitter:client:csharp feature
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
affects/8.10 affects/8.9 component/clients kind/bug likelihood/mid severity/mid
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Two open-case totals on one screen: the Programs tile says 15,858 and the nav badge says 15,868 Openbug frontend maui-pilot
Difficulty 2/5 1-3 hours Newbie friendliness 72/100