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

Skip to content

Conversation

@gerlowskija
Copy link
Owner

@gerlowskija gerlowskija commented Apr 25, 2023

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

Description

Solr is currently making slow progress in moving its v2 APIs in a more REST-ful direction. Many APIs have been improved, but many remaining including the API to restore to a new or existing collection.

Solution

This commit makes various cosmetic improvements to Solr's v2 restore-collection API, to bring it more into line with the more REST-ful v2 design. This mostly consists of moving the API under the /api/backups/backupName path, and removing the top-level "command" specification from the request body.

Tests

Existing tests continue to pass. New unit tests in RestoreCollectionAPITest.

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.
  • I have added tests for my changes.
  • I have added documentation for the Reference Guide

gerlowskija and others added 3 commits April 26, 2023 11:02
)

This commit makes various cosmetic improvements to Solr's v2
create alias API, to bring it more into line with the more REST-ful
direction we're targeting for our v2 API.  The v2 API is now available
at: `POST /api/aliases`.  The request body has also been restructured
slightly: the top-level "create-alias" command property has been
removed, the router "name" field has been renamed to "type", and
routers now are always defined in a list.

This commit also migrates the API to JAX-RS.
This commit tweaks the v2 binding for our "restore collection" API to be
more intuitive for users.  Restore now lives at:

  - POST /api/backups/backupName {...}

This commit also switches it over to using the JAX-RS framework.
@gerlowskija gerlowskija force-pushed the SOLR-16394-only-restore-collection-conversion branch from 9a4e5f0 to 5148904 Compare April 26, 2023 17:08
tflobbe and others added 5 commits April 26, 2023 12:49
…pache#1577)

Add the option in AffinityPlacementFactory to spread replicas across domains within each AZ. Optionally, the request can fail if more than a configurable number of replicas will be placed in a single spread domain

---------

Co-authored-by: Houston Putman <[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.

6 participants