corgy-w opened a new pull request, #11993: URL: https://github.com/apache/seatunnel/pull/11993
### Purpose of this pull request `ServerConnectorPackageClient.storageConnectorJarFile()` opens a `FileOutputStream` to persist the uploaded connector jar but never closes it on the success path, leaking a file handle on every connector jar upload (via `UploadConnectorJarOperation` / `SendConnectorJarToMemberNodeOperation`). The sibling implementation `AbstractConnectorJarStorageStrategy` already uses `Files.write()` which closes the stream automatically. This change makes `ServerConnectorPackageClient` consistent by using try-with-resources. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? - `./mvnw spotless:apply -pl seatunnel-engine/seatunnel-engine-server` - `./mvnw -pl seatunnel-engine/seatunnel-engine-server compile` -- 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]
