You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "dongjoon-hyun (via GitHub)" <gi...@apache.org> on 2023/11/04 00:11:06 UTC

[PR] [SPARK-45785][CORE] Support `spark.deploy.appNumberModulo` to rotate app number [spark]

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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-45785][CORE] Support `spark.deploy.appNumberModulo` to rotate app number [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #43654:
URL: https://github.com/apache/spark/pull/43654#issuecomment-1793330837

   Could you review this PR when you have some time, @LuciferYang ?


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-45785][CORE] Support `spark.deploy.appNumberModulo` to rotate app number [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #43654:
URL: https://github.com/apache/spark/pull/43654#issuecomment-1793342552

   Could you review this when you have a chance, @yaooqinn ?


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-45785][CORE] Support `spark.deploy.appNumberModulo` to rotate app number [spark]

Posted by "LuciferYang (via GitHub)" <gi...@apache.org>.
LuciferYang commented on PR #43654:
URL: https://github.com/apache/spark/pull/43654#issuecomment-1793347347

   late LGTM


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-45785][CORE] Support `spark.deploy.appNumberModulo` to rotate app number [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #43654: [SPARK-45785][CORE] Support `spark.deploy.appNumberModulo` to rotate app number
URL: https://github.com/apache/spark/pull/43654


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-45785][CORE] Support `spark.deploy.appNumberModulo` to rotate app number [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #43654:
URL: https://github.com/apache/spark/pull/43654#issuecomment-1793346676

   Merged to master for Apache Spark 4.0.0.


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-45785][CORE] Support `spark.deploy.appNumberModulo` to rotate app number [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #43654:
URL: https://github.com/apache/spark/pull/43654#issuecomment-1793346491

   Thank you so much for review and approval, @yaooqinn !


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org