cw-alexcroteau opened a new pull request, #52489: URL: https://github.com/apache/spark/pull/52489
### What changes were proposed in this pull request? - Added a new configuration property, `spark.skipUnixNativeRm`, to explicitly skip trying the Unix rm binary - Grouped boolean conditions for skipping the native rm binary into a helper, `shouldTryUnixNativeRm` ### Why are the changes needed? In some Unix setups such as when using minimal containers, the `rm` binary is not available. Receiving an error message every time a call to `deleteRecursively()` is made is confusing and noisy, even with the presence of the warning message. Making calls to an nonexistent binary also has a slight performance impact. As an application maintainer, I would like to be able to avoid this situation when I know my setup will never have the `rm` Unix binary. ### Does this PR introduce _any_ user-facing change? - When a user sets the `spark.skipUnixNativeRm` property, `deleteRecursivelyUsingUnixNative` in `deleteRecursively` is never called. ### How was this patch tested? No unit tests exist for this specific class, and change is minor enough that I do not consider it worth the risk to add unit tests to the file, especially given my limited knowledge of Spark and the intended behaviour of that file, including potentially unexpected side-effects. ### Was this patch authored or co-authored using generative AI tooling? No -- 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]
