-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-45771][CORE] Enable spark.eventLog.rolling.enabled by default
#43638
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -66,7 +66,7 @@ abstract class EventLogFileWritersSuite extends SparkFunSuite with LocalSparkCon | |||
| conf.set(EVENT_LOG_DIR, testDir.toString) | ||||
|
|
||||
| // default config | ||||
| buildWriterAndVerify(conf, classOf[SingleEventLogFileWriter]) | ||||
| buildWriterAndVerify(conf, classOf[RollingEventLogFilesWriter]) | ||||
|
|
||||
| conf.set(EVENT_LOG_ENABLE_ROLLING, true) | ||||
| buildWriterAndVerify(conf, classOf[RollingEventLogFilesWriter]) | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||
|
|
||||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -38,6 +38,7 @@ object EventLogTestHelper { | |||
| def getLoggingConf(logDir: Path, compressionCodec: Option[String] = None): SparkConf = { | ||||
| val conf = new SparkConf | ||||
| conf.set(EVENT_LOG_ENABLED, true) | ||||
| conf.set(EVENT_LOG_ENABLE_ROLLING, false) | ||||
|
||||
| * Get a SparkConf with event logging enabled. It doesn't enable rolling event logs, so caller |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,7 +33,7 @@ import org.apache.spark.deploy.SparkHadoopUtil | |
| import org.apache.spark.deploy.history.{EventLogFileReader, SingleEventLogFileWriter} | ||
| import org.apache.spark.deploy.history.EventLogTestHelper._ | ||
| import org.apache.spark.executor.{ExecutorMetrics, TaskMetrics} | ||
| import org.apache.spark.internal.config.{EVENT_LOG_COMPRESS, EVENT_LOG_DIR, EVENT_LOG_ENABLED} | ||
| import org.apache.spark.internal.config.{EVENT_LOG_COMPRESS, EVENT_LOG_DIR, EVENT_LOG_ENABLE_ROLLING, EVENT_LOG_ENABLED} | ||
| import org.apache.spark.io._ | ||
| import org.apache.spark.metrics.{ExecutorMetricType, MetricsSystem} | ||
| import org.apache.spark.resource.ResourceProfile | ||
|
|
@@ -163,6 +163,7 @@ class EventLoggingListenerSuite extends SparkFunSuite with LocalSparkContext wit | |
| test("SPARK-31764: isBarrier should be logged in event log") { | ||
| val conf = new SparkConf() | ||
| conf.set(EVENT_LOG_ENABLED, true) | ||
| conf.set(EVENT_LOG_ENABLE_ROLLING, false) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it failed without setting to false?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, this test case tries to read the event log file. |
||
| conf.set(EVENT_LOG_COMPRESS, false) | ||
| conf.set(EVENT_LOG_DIR, testDirPath.toString) | ||
| val sc = new SparkContext("local", "test-SPARK-31764", conf) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it redundant then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or we want to: