thswlsqls opened a new pull request, #8611: URL: https://github.com/apache/paimon/pull/8611
### Purpose fix #8607 - `MigrateTableActionFactory.create()` and `MigrateDatabaseActionFactory.create()` parsed the optional `--parallelism` with an unguarded `Integer.parseInt(params.get(PARALLELISM))`, throwing `NumberFormatException` on `parseInt(null)` when the argument was omitted. - Guard the parse with `params.has(PARALLELISM) ? Integer.parseInt(...) : null`, matching sibling `CloneActionFactory`/`ExpireSnapshotsActionFactory`; the downstream procedures already treat null as `availableProcessors()`. - List the missing `[--parallelism <parallelism>]` option in both `printHelp()` blocks. - Follow-up to migrate PR #4177, which introduced the parameter without the null guard. ### Tests - Added `MigrateTableActionFactoryTest` and `MigrateDatabaseActionFactoryTest`, each with `testCreateWithoutParallelismDoesNotThrow` (reproduces the bug) and `testCreateWithParallelism`. - `mvn -pl paimon-flink/paimon-flink-common -Pflink1 test` — 4 tests pass; `spotless:check` and `checkstyle:check` clean. -- 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]
