-
Notifications
You must be signed in to change notification settings - Fork 810
SOLR-7003: Remove unused boolean waitFlush from SolrClients #4058
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # See https://github.com/apache/solr/blob/main/dev-docs/changelog.adoc | ||
| title: Remove unused waitFlush boolean from SolrClients | ||
| type: removed # added, changed, fixed, deprecated, removed, dependency_update, security, other | ||
| authors: | ||
| - name: Eric Pugh | ||
| links: | ||
| - name: SOLR-7003 | ||
| url: https://issues.apache.org/jira/browse/SOLR-7003 | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -247,7 +247,7 @@ private static UpdateResponse softCommit( | |||||
| HttpJettySolrClient solrClient, String baseUrl, String coreName) | ||||||
| throws SolrServerException, IOException { | ||||||
| UpdateRequest ureq = new UpdateRequest(); | ||||||
| ureq.setAction(AbstractUpdateRequest.ACTION.COMMIT, false, true, true); | ||||||
| ureq.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true); | ||||||
|
||||||
| ureq.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true); | |
| ureq.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true, true); |
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 don't think this is true...
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.
err, you are right, I still have some changes to AbstractUpdateRequest to do.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -295,7 +295,7 @@ void addCommit(UpdateRequest ureq, CommitUpdateCommand cmd) { | |||||
| if (cmd == null) return; | ||||||
| ureq.setAction( | ||||||
| cmd.optimize ? AbstractUpdateRequest.ACTION.OPTIMIZE : AbstractUpdateRequest.ACTION.COMMIT, | ||||||
| false, | ||||||
| true, // waitFlush - ignored | ||||||
|
||||||
| true, // waitFlush - ignored | |
| true, // waitFlush (not used by server but required by API) |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -91,7 +91,7 @@ public void test() throws Exception { | |||||
|
|
||||||
| // soft-commit so searchers are open on un-committed but flushed segment files | ||||||
| AbstractUpdateRequest request = | ||||||
| new UpdateRequest().setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true, true); | ||||||
| new UpdateRequest().setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true); | ||||||
|
||||||
| new UpdateRequest().setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true); | |
| new UpdateRequest().setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true, true); |
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.
should clarify it's association to
commit