[ 
https://issues.apache.org/jira/browse/IGNITE-29373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roman Damaskin updated IGNITE-29373:
------------------------------------
    Description: 
h2. What to do:

Upgrade to Spring Framework 7.0.11, migrate the Ignite repository adapter to 
Spring Data 4.0, and align Spring Session and Security. Upgrade both existing 
Boot autoconfiguration extensions and their examples to Boot 4.0 while keeping 
standalone integrations independent of Boot.

Deliver in increments: core Spring and URI deployment; cache and transactions; 
Data repositories; Boot integration; Session and broader dependency validation.
h2. Implementation Decisions
 * Preserve Java 17 as the compilation and runtime acceptance baseline. Use a 
suitable JDK for the build;

 - Use Framework 7.0.11, Boot 4.2.0. Verify artifact availability and 
maintenance status when implementation starts;
 - Keep the existing dependency-property model where sufficient. Do not import 
Boot dependency management across the entire Ignite parent. Limit Boot-specific 
dependency management to the Boot integrations if needed.
 - Build and install the updated Ignite parent and matching artifacts before 
building extensions. The extensions resolve their parent through Maven 
repositories rather than directly from the sibling checkout. Keep Ignite core 
and its Spring adapter matched.
 - Update core Spring dependencies and validate Spring XML, lifecycle, resource 
injection, and URI deployment. Preserve implementations that already compile 
and behave correctly.
 - Preserve synchronous cache behavior and existing transaction contracts. 
Change production code only where compilation or behavior checks demonstrate 
incompatibility.
 - Migrate the Spring Data repository factory and query implementation to 
`ValueExpressionDelegate`, replace removed expression parsing APIs with 
`ValueExpressionQueryRewriter`, replace removed repository-instantiation 
helpers with supported instantiation APIs, and adopt the moved property-path 
types. Preserve expression evaluation extensions, binding semantics, and quoted 
query text.
 - Upgrade Spring Data itself rather than combining Data 3.5 with Framework 7. 
That combination references the removed `ListenableFuture` API.
 - Upgrade both embedded and thin-client Boot autoconfiguration modules. 
Preserve their existing autoconfiguration registration and property contracts. 
Adjust the examples' JDBC autoconfiguration exclusion: remove it when 
unnecessary, or use the Boot 4 type and required module when necessary. Do not 
add a JDBC starter solely to retain an unnecessary exclusion.
 - Align Session, Security, and Jakarta Servlet dependencies; remove the 
obsolete javax Servlet declaration. Preserve Java SE `javax.sql` and JCache 
`javax.cache` APIs.
 - Align Jupiter with Spring 7's test integration where used. Retain existing 
JUnit 4 suites and ensure the configured test runner executes both styles as 
applicable.
 - Keep Commons Logging aligned and remove obsolete `spring-jcl` from the 
target dependency graph and packaging. Verify effective dependencies and 
assembled artifacts, not only declared properties.
 - Review other modules that consume the changed Spring dependencies, including 
AOP, cloud integrations, yardstick, ML, Hibernate, and geospatial modules. 
Validate affected production, test, and example paths without broad unrelated 
dependency modernization.
 - Preserve existing public application configuration and behavior unless a 
verified upstream breaking change makes an adjustment unavoidable; document any 
required consumer migration.
 - Target the new Spring 7 release line. Do not introduce reflection-based 
compatibility with Spring 6 or Boot 3 in the same artifacts.

h2. Acceptance checks:

1. *{*}Core Spring and URI deployment:{*}* existing Spring suite plus 
deployment coverage verifies XML loading, excluded-property handling, context 
startup/shutdown, resource injection, proxy handling, and deployed task 
execution. Exercise actual node/client lifecycle rather than only a plain 
string bean.
2. *{*}Cache:{*}* reuse embedded and thin-client cache-manager tests to verify 
annotation-driven cache hits, loader behavior, writes, eviction, clearing, and 
context cleanup with actual caches.
3. *{*}Transactions:{*}* reuse transaction-manager and cache-store listener 
tests to verify commit, rollback, supported propagation/suspension, cleanup 
after exceptions, and JDBC participation.
4. *{*}Data:{*}* reuse repository CRUD, query, compound-key, conversion, and 
expression suites with embedded and thin-client implementations. Verify 
declared and derived queries, quoted text, named/positional binding, 
evaluation-context extensions, pagination, sorting, and projections.
5. *{*}Boot:{*}* reuse `ApplicationContextRunner` coverage for property 
binding, custom-bean backoff, optional repository conditions, and missing 
optional classes. Run the examples and lifecycle coverage with the newly 
migrated Data extension and Boot 4 dependency graph.
6. *{*}Session:{*}* reuse indexed-session repository and HTTP configuration 
tests for both storage modes; exercise the servlet filter for creation/access, 
expiry/deletion, principal indexing, and listeners.
7. *{*}Build and dependency acceptance:{*}* compile production and tests, run 
the relevant suites on Java 17, verify nonzero expected test discovery, and 
inspect effective dependency graphs. Framework modules must use the selected 
aligned 7.x version; Data/Boot/Session/Security must use their compatible 
generation where present. No stale Spring JCL or Servlet 6.0 may remain in the 
target runtime graph.
8. *{*}Artifact acceptance:{*}* prove extensions resolve the intended freshly 
built parent, core, Spring adapter, and migrated Data artifact. Validate 
representative packaged startup. Check affected surrounding modules after the 
focused suites pass.
9. *{*}Compatibility matrix:{*}* add current-Ignite/Spring-7 coverage. Do not 
automatically pair Spring 7 with every historical Ignite release in the 
existing Cartesian test matrices.

Completion requires passing the applicable behavior and packaging checks with 
recorded versions, JDK, commands, and test counts. Any unavailable environment 
or unrelated baseline failure must be reported explicitly; compilation probes 
alone do not satisfy acceptance. If OSGi support is claimed for this release, 
bundle resolution requires a separate deployment check.

The user approved these existing test seams: Spring-context integration suites 
with real Ignite nodes/clients, Boot's context runner, and Session HTTP/filter 
tests.
h2. Out of Scope
 - Converting Ignite into a Boot application or imposing Boot on standalone 
consumers.
 - Supporting Spring 6 and 7, or Boot 3 and 4, within the same integration 
artifacts.
 - Async/reactive cache retrieval, native-image/AOT support, Jackson 
modernization, or an Ignite major-version migration.
 - General refactoring, new repository features, changes to persistence schemas 
or wire protocols, and unrelated extension modernization.
 - Certification of historical Ignite releases or OSGi compatibility based only 
on Maven classpath tests.

  was:
h2. What to do:

Upgrade to Spring Framework 7.0, migrate the Ignite repository adapter to 
Spring Data 4.0, and align Spring Session and Security. Upgrade both existing 
Boot autoconfiguration extensions and their examples to Boot 4.0 while keeping 
standalone integrations independent of Boot.

Deliver in increments: core Spring and URI deployment; cache and transactions; 
Data repositories; Boot integration; Session and broader dependency validation.
h2. Implementation Decisions
 * Preserve Java 17 as the compilation and runtime acceptance baseline. Use a 
suitable JDK for the build;
- Use Framework 7.0.10, Boot 4.0.9, Data Commons 4.0.8, Session 4.0.5, Security 
7.0.8, and Servlet 6.1. Verify artifact availability and maintenance status 
when implementation starts;
- Keep the existing dependency-property model where sufficient. Do not import 
Boot dependency management across the entire Ignite parent. Limit Boot-specific 
dependency management to the Boot integrations if needed.
- Build and install the updated Ignite parent and matching artifacts before 
building extensions. The extensions resolve their parent through Maven 
repositories rather than directly from the sibling checkout. Keep Ignite core 
and its Spring adapter matched.
- Update core Spring dependencies and validate Spring XML, lifecycle, resource 
injection, and URI deployment. Preserve implementations that already compile 
and behave correctly.
- Preserve synchronous cache behavior and existing transaction contracts. 
Change production code only where compilation or behavior checks demonstrate 
incompatibility.
- Migrate the Spring Data repository factory and query implementation to 
`ValueExpressionDelegate`, replace removed expression parsing APIs with 
`ValueExpressionQueryRewriter`, replace removed repository-instantiation 
helpers with supported instantiation APIs, and adopt the moved property-path 
types. Preserve expression evaluation extensions, binding semantics, and quoted 
query text.
- Upgrade Spring Data itself rather than combining Data 3.5 with Framework 7. 
That combination references the removed `ListenableFuture` API.
- Upgrade both embedded and thin-client Boot autoconfiguration modules. 
Preserve their existing autoconfiguration registration and property contracts. 
Adjust the examples' JDBC autoconfiguration exclusion: remove it when 
unnecessary, or use the Boot 4 type and required module when necessary. Do not 
add a JDBC starter solely to retain an unnecessary exclusion.
- Align Session, Security, and Jakarta Servlet dependencies; remove the 
obsolete javax Servlet declaration. Preserve Java SE `javax.sql` and JCache 
`javax.cache` APIs.
- Align Jupiter with Spring 7's test integration where used. Retain existing 
JUnit 4 suites and ensure the configured test runner executes both styles as 
applicable.
- Keep Commons Logging aligned and remove obsolete `spring-jcl` from the target 
dependency graph and packaging. Verify effective dependencies and assembled 
artifacts, not only declared properties.
- Review other modules that consume the changed Spring dependencies, including 
AOP, cloud integrations, yardstick, ML, Hibernate, and geospatial modules. 
Validate affected production, test, and example paths without broad unrelated 
dependency modernization.
- Preserve existing public application configuration and behavior unless a 
verified upstream breaking change makes an adjustment unavoidable; document any 
required consumer migration.
- Target the new Spring 7 release line. Do not introduce reflection-based 
compatibility with Spring 6 or Boot 3 in the same artifacts.

h2. Acceptance checks:

1. **Core Spring and URI deployment:** existing Spring suite plus deployment 
coverage verifies XML loading, excluded-property handling, context 
startup/shutdown, resource injection, proxy handling, and deployed task 
execution. Exercise actual node/client lifecycle rather than only a plain 
string bean.
2. **Cache:** reuse embedded and thin-client cache-manager tests to verify 
annotation-driven cache hits, loader behavior, writes, eviction, clearing, and 
context cleanup with actual caches.
3. **Transactions:** reuse transaction-manager and cache-store listener tests 
to verify commit, rollback, supported propagation/suspension, cleanup after 
exceptions, and JDBC participation.
4. **Data:** reuse repository CRUD, query, compound-key, conversion, and 
expression suites with embedded and thin-client implementations. Verify 
declared and derived queries, quoted text, named/positional binding, 
evaluation-context extensions, pagination, sorting, and projections.
5. **Boot:** reuse `ApplicationContextRunner` coverage for property binding, 
custom-bean backoff, optional repository conditions, and missing optional 
classes. Run the examples and lifecycle coverage with the newly migrated Data 
extension and Boot 4 dependency graph.
6. **Session:** reuse indexed-session repository and HTTP configuration tests 
for both storage modes; exercise the servlet filter for creation/access, 
expiry/deletion, principal indexing, and listeners.
7. **Build and dependency acceptance:** compile production and tests, run the 
relevant suites on Java 17, verify nonzero expected test discovery, and inspect 
effective dependency graphs. Framework modules must use the selected aligned 
7.x version; Data/Boot/Session/Security must use their compatible generation 
where present. No stale Spring JCL or Servlet 6.0 may remain in the target 
runtime graph.
8. **Artifact acceptance:** prove extensions resolve the intended freshly built 
parent, core, Spring adapter, and migrated Data artifact. Validate 
representative packaged startup. Check affected surrounding modules after the 
focused suites pass.
9. **Compatibility matrix:** add current-Ignite/Spring-7 coverage. Do not 
automatically pair Spring 7 with every historical Ignite release in the 
existing Cartesian test matrices.

Completion requires passing the applicable behavior and packaging checks with 
recorded versions, JDK, commands, and test counts. Any unavailable environment 
or unrelated baseline failure must be reported explicitly; compilation probes 
alone do not satisfy acceptance. If OSGi support is claimed for this release, 
bundle resolution requires a separate deployment check.

The user approved these existing test seams: Spring-context integration suites 
with real Ignite nodes/clients, Boot's context runner, and Session HTTP/filter 
tests.
h2. Out of Scope

- Converting Ignite into a Boot application or imposing Boot on standalone 
consumers.
- Supporting Spring 6 and 7, or Boot 3 and 4, within the same integration 
artifacts.
- Async/reactive cache retrieval, native-image/AOT support, Jackson 
modernization, or an Ignite major-version migration.
- General refactoring, new repository features, changes to persistence schemas 
or wire protocols, and unrelated extension modernization.
- Certification of historical Ignite releases or OSGi compatibility based only 
on Maven classpath tests.


> Upgrade Ignite and Ignite Extensions to Spring Framework 7
> ----------------------------------------------------------
>
>                 Key: IGNITE-29373
>                 URL: https://issues.apache.org/jira/browse/IGNITE-29373
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Roman Damaskin
>            Priority: Major
>              Labels: ignite-2, spring-boot-4,
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> h2. What to do:
> Upgrade to Spring Framework 7.0.11, migrate the Ignite repository adapter to 
> Spring Data 4.0, and align Spring Session and Security. Upgrade both existing 
> Boot autoconfiguration extensions and their examples to Boot 4.0 while 
> keeping standalone integrations independent of Boot.
> Deliver in increments: core Spring and URI deployment; cache and 
> transactions; Data repositories; Boot integration; Session and broader 
> dependency validation.
> h2. Implementation Decisions
>  * Preserve Java 17 as the compilation and runtime acceptance baseline. Use a 
> suitable JDK for the build;
>  - Use Framework 7.0.11, Boot 4.2.0. Verify artifact availability and 
> maintenance status when implementation starts;
>  - Keep the existing dependency-property model where sufficient. Do not 
> import Boot dependency management across the entire Ignite parent. Limit 
> Boot-specific dependency management to the Boot integrations if needed.
>  - Build and install the updated Ignite parent and matching artifacts before 
> building extensions. The extensions resolve their parent through Maven 
> repositories rather than directly from the sibling checkout. Keep Ignite core 
> and its Spring adapter matched.
>  - Update core Spring dependencies and validate Spring XML, lifecycle, 
> resource injection, and URI deployment. Preserve implementations that already 
> compile and behave correctly.
>  - Preserve synchronous cache behavior and existing transaction contracts. 
> Change production code only where compilation or behavior checks demonstrate 
> incompatibility.
>  - Migrate the Spring Data repository factory and query implementation to 
> `ValueExpressionDelegate`, replace removed expression parsing APIs with 
> `ValueExpressionQueryRewriter`, replace removed repository-instantiation 
> helpers with supported instantiation APIs, and adopt the moved property-path 
> types. Preserve expression evaluation extensions, binding semantics, and 
> quoted query text.
>  - Upgrade Spring Data itself rather than combining Data 3.5 with Framework 
> 7. That combination references the removed `ListenableFuture` API.
>  - Upgrade both embedded and thin-client Boot autoconfiguration modules. 
> Preserve their existing autoconfiguration registration and property 
> contracts. Adjust the examples' JDBC autoconfiguration exclusion: remove it 
> when unnecessary, or use the Boot 4 type and required module when necessary. 
> Do not add a JDBC starter solely to retain an unnecessary exclusion.
>  - Align Session, Security, and Jakarta Servlet dependencies; remove the 
> obsolete javax Servlet declaration. Preserve Java SE `javax.sql` and JCache 
> `javax.cache` APIs.
>  - Align Jupiter with Spring 7's test integration where used. Retain existing 
> JUnit 4 suites and ensure the configured test runner executes both styles as 
> applicable.
>  - Keep Commons Logging aligned and remove obsolete `spring-jcl` from the 
> target dependency graph and packaging. Verify effective dependencies and 
> assembled artifacts, not only declared properties.
>  - Review other modules that consume the changed Spring dependencies, 
> including AOP, cloud integrations, yardstick, ML, Hibernate, and geospatial 
> modules. Validate affected production, test, and example paths without broad 
> unrelated dependency modernization.
>  - Preserve existing public application configuration and behavior unless a 
> verified upstream breaking change makes an adjustment unavoidable; document 
> any required consumer migration.
>  - Target the new Spring 7 release line. Do not introduce reflection-based 
> compatibility with Spring 6 or Boot 3 in the same artifacts.
> h2. Acceptance checks:
> 1. *{*}Core Spring and URI deployment:{*}* existing Spring suite plus 
> deployment coverage verifies XML loading, excluded-property handling, context 
> startup/shutdown, resource injection, proxy handling, and deployed task 
> execution. Exercise actual node/client lifecycle rather than only a plain 
> string bean.
> 2. *{*}Cache:{*}* reuse embedded and thin-client cache-manager tests to 
> verify annotation-driven cache hits, loader behavior, writes, eviction, 
> clearing, and context cleanup with actual caches.
> 3. *{*}Transactions:{*}* reuse transaction-manager and cache-store listener 
> tests to verify commit, rollback, supported propagation/suspension, cleanup 
> after exceptions, and JDBC participation.
> 4. *{*}Data:{*}* reuse repository CRUD, query, compound-key, conversion, and 
> expression suites with embedded and thin-client implementations. Verify 
> declared and derived queries, quoted text, named/positional binding, 
> evaluation-context extensions, pagination, sorting, and projections.
> 5. *{*}Boot:{*}* reuse `ApplicationContextRunner` coverage for property 
> binding, custom-bean backoff, optional repository conditions, and missing 
> optional classes. Run the examples and lifecycle coverage with the newly 
> migrated Data extension and Boot 4 dependency graph.
> 6. *{*}Session:{*}* reuse indexed-session repository and HTTP configuration 
> tests for both storage modes; exercise the servlet filter for 
> creation/access, expiry/deletion, principal indexing, and listeners.
> 7. *{*}Build and dependency acceptance:{*}* compile production and tests, run 
> the relevant suites on Java 17, verify nonzero expected test discovery, and 
> inspect effective dependency graphs. Framework modules must use the selected 
> aligned 7.x version; Data/Boot/Session/Security must use their compatible 
> generation where present. No stale Spring JCL or Servlet 6.0 may remain in 
> the target runtime graph.
> 8. *{*}Artifact acceptance:{*}* prove extensions resolve the intended freshly 
> built parent, core, Spring adapter, and migrated Data artifact. Validate 
> representative packaged startup. Check affected surrounding modules after the 
> focused suites pass.
> 9. *{*}Compatibility matrix:{*}* add current-Ignite/Spring-7 coverage. Do not 
> automatically pair Spring 7 with every historical Ignite release in the 
> existing Cartesian test matrices.
> Completion requires passing the applicable behavior and packaging checks with 
> recorded versions, JDK, commands, and test counts. Any unavailable 
> environment or unrelated baseline failure must be reported explicitly; 
> compilation probes alone do not satisfy acceptance. If OSGi support is 
> claimed for this release, bundle resolution requires a separate deployment 
> check.
> The user approved these existing test seams: Spring-context integration 
> suites with real Ignite nodes/clients, Boot's context runner, and Session 
> HTTP/filter tests.
> h2. Out of Scope
>  - Converting Ignite into a Boot application or imposing Boot on standalone 
> consumers.
>  - Supporting Spring 6 and 7, or Boot 3 and 4, within the same integration 
> artifacts.
>  - Async/reactive cache retrieval, native-image/AOT support, Jackson 
> modernization, or an Ignite major-version migration.
>  - General refactoring, new repository features, changes to persistence 
> schemas or wire protocols, and unrelated extension modernization.
>  - Certification of historical Ignite releases or OSGi compatibility based 
> only on Maven classpath tests.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to