Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@gerlowskija
Copy link
Owner

https://issues.apache.org/jira/browse/SOLR-16825

Description

SOLR-16825 added a new gradle module, 'api', which holds v2 API definitions as interfaces. This allows us to generate an OAS (and SolrRequest implementations from that) as a part of the solrj build.

But these artifacts (the OAS and generated Java code), only cover the v2 APIs that have interfaces in the 'api' module. We need to extract interfaces to live in 'api' for each v2 API in 'core' that doesn't already have one.

Solution

This PR creates 'api' interfaces for a number of v2 APIs, allowing SolrRequest implementations to be generated for them. The following APIs are covered in this PR:

  • various collection-prop APIs
  • various core-snapshot APIs
  • migrate-replicas API
  • reload-core
  • restore-core

Tests

PR is a refactor, so doesn't add any additional tests. But manual testing has been done to make sure the affected v2 APIs continue to work, and existing tests continue to pass.

Checklist

Please review the following and check all that apply:

  • I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
  • I have created a Jira issue and added the issue ID to my pull request title.
  • I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
  • I have developed this patch against the main branch.
  • I have run ./gradlew check.

pvcnt and others added 6 commits September 26, 2023 21:32
@gerlowskija gerlowskija changed the title Solr 16825 api module migration pt 5 SOLR-16825: 'api' module migration, pt 5 Sep 27, 2023
stillalex and others added 23 commits September 27, 2023 13:44
-- suggests CloudSolrStream concurency race condition
….22.0 (apache#1701)

* Update dependency com.google.errorprone:error_prone_annotations to v2.22.0

Co-authored-by: Kevin Risden <[email protected]>
solrbot and others added 22 commits October 2, 2023 20:19
Co-authored-by: Jan Høydahl <[email protected]>
Co-authored-by: Kevin Risden <[email protected]>
This commit covers the create APIs for collections, shards and replicas.
It also covers the collection and core level "install-shard-data" APIs.

Extracting annotated interfaces for these APIs includes them in the SolrRequest-
generation we now do in SolrJ
Wide variety of fixes to the docs related to indexing to account for evolution of Solr 9x and Lucene 9x
---------

Co-authored-by: Andrey Bozhko <[email protected]>
Co-authored-by: Eric Pugh <[email protected]>
…ESTAPPLYUPDATES (apache#1965)

RESTORECORE now sets the UpdateLog to ACTIVE state instead of requiring a separate REQUESTAPPLYUPDATES call in Collection restore. The latter will still happen in 9.x for backwards-compatibility.

---------

Co-authored-by: Julia Maimone <[email protected]>
Co-authored-by: David Smiley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.