dongjoon-hyun opened a new pull request, #43654: URL: https://github.com/apache/spark/pull/43654
### What changes were proposed in this pull request? This PR aims to support to rotate app number by introducing a new configuration, `spark.deploy.appNumberModulo`. ### Why are the changes needed? Historically, Apache Spark's App ID has a style, `app-yyyyMMddHHmmss-1234`. Since the 3rd part, `1234`, is a simple sequentially incremented number without any rotation, the generated IDs are like the following. ``` app-yyyyMMddHHmmss-0000 app-yyyyMMddHHmmss-0001 ... app-yyyyMMddHHmmss-9999 app-yyyyMMddHHmmss-10000 ``` If we support rotation by modulo 10000, it will keep 4 digits. ``` app-yyyyMMddHHmmss-0000 app-yyyyMMddHHmmss-0001 ... app-yyyyMMddHHmmss-9999 app-yyyyMMddHHmmss-0000 ``` Please note that the second part changes every seconds. In general, modulo by 10000 is enough to generate unique AppIDs. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs with newly added test case. ### 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]
