-
Notifications
You must be signed in to change notification settings - Fork 686
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
SOLR-17211: HttpJdkSolrClient Support Async requests #2374
Merged
Merged
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
1f0bb6b
SOLR-17211
jdyer1 b2592ce
Test cancel and exception
jdyer1 305f9cc
test PUT and POST
jdyer1 844c2f7
tidy
jdyer1 05df331
Also test Http2SolrClient async
jdyer1 ad507b2
tidy
jdyer1 6e79aa4
no need for separate "put" test
jdyer1 d66c850
Comments in "testAsyncAndCancel"
jdyer1 1e5d274
slight improvement to AsyncListener doc comments
jdyer1 b17913a
Javadoc on Cancellable
jdyer1 ecb0051
tidy
jdyer1 d0b0e1e
tidy
jdyer1 5760fb5
fix test: was not testing POST
jdyer1 7451def
- fix test bugs
jdyer1 92e12a6
SOLR-17211
jdyer1 7d39ab2
tidy
jdyer1 cfaed30
test cleanup
jdyer1 d157dc7
Reference manual citation
jdyer1 a7956f7
CHANGES.txt entry
jdyer1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Seeing this class, to me, really underscores a mismatch between Solr's needless Async API helper classes (Cancellable is one), and using a CompletableFuture directly. See the parent JIRA issue where I direct you to a previous stalled effort that could be resumed.
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.
Yes I fully agree we should deprecate and replace the existing method, but we will need to keep the old API around for 9.x. I am interested in taking a closer look at SOLR-14763 and I appreciate your pointing me to that. But in any case I would like to do that separately from this issue.
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.
Okay. Note the old API is on exactly one class a user might use; it's being expanded here. But at least it's only other Http subclasses; isn't spreading further. If you can mark these methods Deprecated here (to be replaced by something coming (soon?)), people will be forewarned.
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.
I do not want to deprecate anything unless there is a replacement. But I hear and share your concern, and would like to make the API change, just not as part of this PR.