Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-46498][CORE] Remove shuffleServiceEnabled from o.a.spark.util.Utils#getConfiguredLocalDirs #44475

Closed
wants to merge 4 commits into from

Conversation

LuciferYang
Copy link
Contributor

@LuciferYang LuciferYang commented Dec 25, 2023

What changes were proposed in this pull request?

This PR cleans up an unused local variables from org.apache.spark.util.Utils#getConfiguredLocalDirs function, It is no longer used after the support for Mesos was removed in SPARK-44442 (#43135).

Why are the changes needed?

Code clean up

Does this PR introduce any user-facing change?

No

How was this patch tested?

Pass GitHub Actions

Was this patch authored or co-authored using generative AI tooling?

No

@LuciferYang LuciferYang marked this pull request as draft December 25, 2023 05:11
@github-actions github-actions bot added the CORE label Dec 25, 2023
@LuciferYang LuciferYang marked this pull request as ready for review December 25, 2023 05:23
@LuciferYang LuciferYang changed the title [SPARK-46498][CORE] Clean up unused methods and local variables in o.a.spark.util.Utils [SPARK-46498][CORE] Clean up unused functions and local variables in o.a.spark.util.Utils Dec 25, 2023
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry but let's not remove these Utils methods although they are private[spark]. There is no maintenance overhead for these util methods and these might be used by a new repository Spark Operator which is voted recently.

@@ -769,7 +769,6 @@ private[spark] object Utils
* logic of locating the local directories according to deployment mode.
*/
def getConfiguredLocalDirs(conf: SparkConf): Array[String] = {
val shuffleServiceEnabled = conf.get(config.SHUFFLE_SERVICE_ENABLED)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be clear, this is enough for a valid PR. We can merge if we have only this removal.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@LuciferYang LuciferYang changed the title [SPARK-46498][CORE] Clean up unused functions and local variables in o.a.spark.util.Utils [SPARK-46498][CORE] Remove an unused local variables from o.a.spark.util.Utils#getConfiguredLocalDirs Dec 26, 2023
@LuciferYang
Copy link
Contributor Author

Sorry but let's not remove these Utils methods although they are private[spark]. There is no maintenance overhead for these util methods and these might be used by a new repository Spark Operator which is voted recently.

OK

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Thank you for updating this PR.

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-46498][CORE] Remove an unused local variables from o.a.spark.util.Utils#getConfiguredLocalDirs [SPARK-46498][CORE] Remove shuffleServiceEnabled from o.a.spark.util.Utils#getConfiguredLocalDirs Dec 26, 2023
@LuciferYang
Copy link
Contributor Author

Thanks @dongjoon-hyun ~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants