Skip to content

Remove Connector.getInitialMemoryRequirement()#25055

Merged
electrum merged 1 commit intotrinodb:masterfrom
electrum:remove-memory
Feb 18, 2025
Merged

Remove Connector.getInitialMemoryRequirement()#25055
electrum merged 1 commit intotrinodb:masterfrom
electrum:remove-memory

Conversation

@electrum
Copy link
Copy Markdown
Member

@electrum electrum commented Feb 18, 2025

Description

This functionality is not used by any connector in Trino, nor is it tested. This functionality should be replaced with a memory reservation API that is passed into the connector. We could then have the memory connector declare its used memory, the Hive connector could report memory used for caches, etc.

Release notes

(x) Release notes are required, with the following suggested text:

## SPI
* Remove `Connector.getInitialMemoryRequirement()`. ({issue}`25055`)

@electrum electrum requested a review from dain February 18, 2025 01:46
@cla-bot cla-bot bot added the cla-signed label Feb 18, 2025
@dain
Copy link
Copy Markdown
Member

dain commented Feb 18, 2025

For the new implementation, the reservation API should be passed in the ConnectorContext object.

@electrum electrum merged commit 01e9f0a into trinodb:master Feb 18, 2025
@electrum electrum deleted the remove-memory branch February 18, 2025 19:49
@github-actions github-actions bot added this to the 471 milestone Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants