|
| 1 | +<!-- |
| 2 | + Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 | + contributor license agreements. See the NOTICE file distributed with |
| 4 | + this work for additional information regarding copyright ownership. |
| 5 | + The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 | + (the "License"); you may not use this file except in compliance with |
| 7 | + the License. You may obtain a copy of the License at |
| 8 | +
|
| 9 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +
|
| 11 | + Unless required by applicable law or agreed to in writing, software |
| 12 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | + See the License for the specific language governing permissions and |
| 15 | + limitations under the License. |
| 16 | +--> |
| 17 | + |
| 18 | +# Draft: Polaris Plugin Store Migration and Rollback |
| 19 | + |
| 20 | +This draft records the root-repository handoff for the Polaris plugin-store extension. Root publishing and aggregator wiring remain separate review steps. |
| 21 | + |
| 22 | +The plugin store owns these Polaris artifacts: |
| 23 | + |
| 24 | +- `shenyu-admin-listener-polaris` |
| 25 | +- `shenyu-sync-data-polaris` |
| 26 | +- `shenyu-registry-polaris` |
| 27 | +- `shenyu-spring-boot-starter-sync-data-polaris` |
| 28 | + |
| 29 | +The validated store lane targets ShenYu API artifacts `2.7.2-SNAPSHOT` and Polaris SDK `1.13.0`. Real-server tests use Docker API `1.44` (selected with `-Dapi.version=1.44`) and the pinned Polaris standalone image `polarismesh/polaris-standalone@sha256:22c75382080a260e5d9fc9839b6657ae73f3154e308b8da881e1fab58653911c`. |
| 30 | + |
| 31 | +## Migration draft |
| 32 | + |
| 33 | +1. Review and publish the plugin-store Polaris artifacts. |
| 34 | +2. Wire the root aggregator, dependency management, and CI paths only after store artifact ownership is approved. |
| 35 | +3. Add the Polaris sync starter to gateways that should consume Polaris-backed sync data. |
| 36 | +4. Configure admin listener and gateway sync settings with the same Polaris config namespace and file group. |
| 37 | +5. Configure registry clients with the Polaris naming gRPC address when Polaris instance discovery is required. |
| 38 | +6. Roll admin listener changes before gateway consumers so config files exist before gateways subscribe. |
| 39 | + |
| 40 | +## Rollback draft |
| 41 | + |
| 42 | +1. Stop Polaris listener writes and restore the previous admin sync channel. |
| 43 | +2. Roll gateways back to the previous sync-data starter and settings. |
| 44 | +3. Roll registry clients back to the previous registry implementation. |
| 45 | +4. Keep Polaris config and naming state until no clients depend on it, then clean it up operationally. |
| 46 | + |
| 47 | +## Tested boundary |
| 48 | + |
| 49 | +The store real-server tests prove the config path from `PolarisDataChangedListener` through the real Polaris config SDK into `PolarisSyncDataService`, `BaseDataCache`, and a real `ShenyuWebHandler` test server. They cover create, update, delete, recreate, close, and fresh-subscriber recovery. |
| 50 | + |
| 51 | +The registry real-server test proves `PolarisInstanceRegisterRepository` can register and query an instance against a real Polaris naming server, deregister that instance through the Polaris SDK boundary, observe removal through a fresh repository query, and close clients. |
| 52 | + |
| 53 | +The tests do not start the full `shenyu-admin` Spring Boot app, do not cover dashboard or database persistence, and do not cover client annotation registration flows. |
0 commit comments