#18461 added REST request size and concurrent request-body memory limits before #18499 migrated dev/1.3 from JavaX to Jakarta. Because the newly added limit filters were not present on the migration branch, they still imported javax.ws.rs after both PRs were merged, while the DataNode now provides the Jakarta JAX-RS API. This caused DataNode compilation to fail.
This PR migrates the JAX-RS imports in the REST request size filter, request-body memory manager/release filter, and the corresponding unit test from javax.ws.rs to jakarta.ws.rs.
There are no behavioral or configuration changes to the REST request limits.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
#18461 added REST request size and concurrent request-body memory limits before #18499 migrated dev/1.3 from JavaX to Jakarta. Because the newly added limit filters were not present on the migration branch, they still imported javax.ws.rs after both PRs were merged, while the DataNode now provides the Jakarta JAX-RS API. This caused DataNode compilation to fail.
This PR migrates the JAX-RS imports in the REST request size filter, request-body memory manager/release filter, and the corresponding unit test from javax.ws.rs to jakarta.ws.rs.
There are no behavioral or configuration changes to the REST request limits.
Testing
mvn spotless:apply -pl iotdb-core/datanode mvn test -pl iotdb-core/datanode -am \ -Dtest=RequestSizeLimitFilterTest,RequestValidationLimitTest,IoTDBRestServiceDescriptorTest \ -Dsurefire.failIfNoSpecifiedTests=falseThe JDK 17 reactor build completed successfully for all 26 selected modules. All 14 REST request-limit tests passed.
This PR has:
Key changed classes