Skip to content

[SPARK-53001][CORE][SQL][FOLLOW-UP] Disable spark.memory.unmanagedMemoryPollingInterval by default - #51778

Closed
ericm-db wants to merge 1 commit into
apache:masterfrom
ericm-db:rocksdb-mm-followup
Closed

[SPARK-53001][CORE][SQL][FOLLOW-UP] Disable spark.memory.unmanagedMemoryPollingInterval by default#51778
ericm-db wants to merge 1 commit into
apache:masterfrom
ericm-db:rocksdb-mm-followup

Conversation

@ericm-db

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Follow up of #51708, addressing nits and test feedback

Why are the changes needed?

To conform with Spark style standards and make tests less flaky

Does this PR introduce any user-facing change?

No

How was this patch tested?

Unit tests

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

No

@dongjoon-hyundongjoon-hyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for making a quick followup, @ericm-db .

.version("4.1.0")
.timeConf(TimeUnit.MILLISECONDS)
.createWithDefaultString("1s")
.createWithDefaultString("0s")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you.

}
// Check for memory tracking - the continuous stream should trigger memory updates
var initialRocksDBMemory = 0L
eventually(timeout(Span(20, Seconds)), interval(Span(500, Millis))) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for the change. Let's see the CI result.

@dongjoon-hyundongjoon-hyun changed the title [SPARK-53001][FOLLOW-UP] Integrate RocksDB Memory Usage with the Unified Memory Manager[SPARK-53001][CORE][SQL][FOLLOW-UP] Disable spark.memory.unmanagedMemoryPollingInterval by defaultAug 1, 2025
@dongjoon-hyundongjoon-hyun changed the title [SPARK-53001][CORE][SQL][FOLLOW-UP] Disable spark.memory.unmanagedMemoryPollingInterval by default[SPARK-53001][CORE][SQL][FOLLOW-UP] Disable spark.memory.unmanagedMemoryPollingInterval by defaultAug 1, 2025
@ericm-db

Copy link
Copy Markdown
ContributorAuthor

@dongjoon-hyun This job keeps timing out, but the tests are passing - I think there are simply too many tests to run here.

@dongjoon-hyun

Copy link
Copy Markdown
Member

@dongjoon-hyun This job keeps timing out, but the tests are passing - I think there are simply too many tests to run here.

Ya, you are correct. I'm trying to rebalance the CI via the following.

@dongjoon-hyundongjoon-hyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1, LGTM.

I verified this manually.

$ build/sbt "sql/testOnly *.RocksDBStateStoreIntegrationSuite"
...
[info] Run completed in 19 seconds, 890 milliseconds.
[info] Total number of tests run: 29
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 29, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
[success] Total time: 83 s (01:23), completed Aug 1, 2025, 1:56:13 PM

@ericm-db

Copy link
Copy Markdown
ContributorAuthor

Great, thanks for the help and the feedback here @dongjoon-hyun !

@dongjoon-hyun

Copy link
Copy Markdown
Member

Merged to master. Thank YOU, @ericm-db .

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@ericm-db@dongjoon-hyun