chaokunyang opened a new pull request, #3472: URL: https://github.com/apache/fory/pull/3472
## What does this PR do?\n- Adds a no-progress guard to so invalid/truncated deflate streams fail fast instead of spinning forever.\n- Introduces (subclass of ) and raises it for malformed/truncated meta-compression input.\n- Adds coverage for roundtrip + truncated/corrupt payload failures (with timeout guard).\n- Registers in .\n\n## Why is this needed?\nIssue #3471 reports an infinite loop ( while ) that can peg CPU at 100% for corrupt or truncated streams.\n\n## Verification\n- [[1;34mINFO[m] Scanning for projects... [[1;34mINFO[m] [[1;34mINFO[m] Using the MultiThreadedBuilder implementation with a thread count of 16 [[1;34mINFO[m] [[1;34mINFO[m] [1m---------------------< [0;36morg.apache.fory:fory-core[0;1m >----------------------[m [[1;34mINFO[m] [1mBuilding fory-core 0.16.0-SNAPSHOT[m [[1;34mINFO[m] [1m--------------------------------[ jar ]---------------------------------[m Downloading from apache.snapshots: https://repository.apache.org/snapshots/org/apache/fory/fory-test-core/0.16.0-SNAPSHOT/maven-metadata.xml [[1;33mWARNING[m] Could not transfer metadata org.apache.fory:fory-test-core:0.16.0-SNAPSHOT/maven-metadata.xml from/to apache.snapshots (https://repository.apache.org/snapshots): Transfer failed for https://repository.apache.org/snapshots/org/apache/fory/fory-test-core/0.16.0-SNAPSHOT/maven-metadata.xml [[1;33mWARNING[m] Failure to transfer org.apache.fory:fory-test-core:0.16.0-SNAPSHOT/maven-metadata.xml from https://repository.apache.org/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of apache.snapshots has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.fory:fory-test-core:0.16.0-SNAPSHOT/maven-metadata.xml from/to apache.snapshots (https://repository.apache.org/snapshots): Transfer failed for https://repository.apache.org/snapshots/org/apache/fory/fory-test-core/0.16.0-SNAPSHOT/maven-metadata.xml [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-enforcer-plugin:3.1.0:enforce[m [1m(enforce-maven-version)[m @ [36mfory-core[0;1m ---[m [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-enforcer-plugin:3.1.0:enforce[m [1m(enforce-java-version)[m @ [36mfory-core[0;1m ---[m [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-remote-resources-plugin:1.7.0:process[m [1m(process-resource-bundles)[m @ [36mfory-core[0;1m ---[m [[1;34mINFO[m] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4 [[1;34mINFO[m] Copying 3 resources from 1 bundle. [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-resources-plugin:3.3.0:resources[m [1m(default-resources)[m @ [36mfory-core[0;1m ---[m [[1;34mINFO[m] Copying 5 resources [[1;34mINFO[m] Copying 3 resources [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-compiler-plugin:3.14.0:compile[m [1m(default-compile)[m @ [36mfory-core[0;1m ---[m [[1;34mINFO[m] Nothing to compile - all classes are up to date. [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-resources-plugin:3.3.0:testResources[m [1m(default-testResources)[m @ [36mfory-core[0;1m ---[m [[1;34mINFO[m] skip non existing resourceDirectory /Users/chaokunyang/Desktop/dev/fory/java/fory-core/src/test/resources [[1;34mINFO[m] Copying 3 resources [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-compiler-plugin:3.14.0:testCompile[m [1m(default-testCompile)[m @ [36mfory-core[0;1m ---[m [[1;34mINFO[m] Nothing to compile - all classes are up to date. [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-surefire-plugin:3.5.4:test[m [1m(default-test)[m @ [36mfory-core[0;1m ---[m [[1;34mINFO[m] Using auto detected provider org.apache.maven.surefire.testng.TestNGProvider [[1;34mINFO[m] [[1;34mINFO[m] ------------------------------------------------------- [[1;34mINFO[m] T E S T S [[1;34mINFO[m] ------------------------------------------------------- [[1;34mINFO[m] Running org.apache.fory.meta.[1mDeflaterMetaCompressorTest[m [[1;34mINFO[m] [1;32mTests run: [0;1;32m3[m, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.121 s -- in org.apache.fory.meta.[1mDeflaterMetaCompressorTest[m [[1;34mINFO[m] [[1;34mINFO[m] Results: [[1;34mINFO[m] [[1;34mINFO[m] [1;32mTests run: 3, Failures: 0, Errors: 0, Skipped: 0[m [[1;34mINFO[m] [[1;34mINFO[m] [1m------------------------------------------------------------------------[m [[1;34mINFO[m] [1;32mBUILD SUCCESS[m [[1;34mINFO[m] [1m------------------------------------------------------------------------[m [[1;34mINFO[m] Total time: 6.257 s (Wall Clock) [[1;34mINFO[m] Finished at: 2026-03-12T15:46:08+08:00 [[1;34mINFO[m] [1m------------------------------------------------------------------------[m\n\nCloses #3471 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
