Skip to content

feat(inkless): allow diskless switch only when remote storage is enabled [KC-217]#662

Closed
EelisK wants to merge 1 commit into
mainfrom
EelisK/KC-86
Closed

feat(inkless): allow diskless switch only when remote storage is enabled [KC-217]#662
EelisK wants to merge 1 commit into
mainfrom
EelisK/KC-86

Conversation

@EelisK

@EelisK EelisK commented Jun 23, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR tightens classic→diskless topic switching by requiring remote.storage.enable (remote log storage) to be enabled before allowing initiation of the diskless switch, and updates unit/integration tests to reflect the new precondition.

Changes:

  • Added a controller-side precondition check to reject initiating a diskless switch unless remote storage is enabled.
  • Updated ReplicationControlManagerTest scenarios to set remote.storage.enable=true where switches are expected to be evaluated/allowed.
  • Updated InklessTopicTypeSwitcherClusterTest to set remote.storage.enable=true alongside diskless.enable=true during switch operations.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
metadata/src/main/java/org/apache/kafka/controller/ReplicationControlManager.java Adds remote-storage-enabled gating during initiation of classic→diskless switch.
metadata/src/test/java/org/apache/kafka/controller/ReplicationControlManagerTest.java Updates existing tests and adds new ones to cover acceptance/rejection based on remote storage enablement.
core/src/test/java/kafka/server/InklessTopicTypeSwitcherClusterTest.java Ensures integration switch flows explicitly enable remote storage when enabling diskless.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread metadata/src/main/java/org/apache/kafka/controller/ReplicationControlManager.java Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

@EelisK EelisK force-pushed the EelisK/KC-86 branch 2 times, most recently from aa0ec1c to 3e7e905 Compare June 25, 2026 05:25
@EelisK EelisK marked this pull request as ready for review June 30, 2026 12:29
@EelisK EelisK changed the title feat(inkless): allow diskless switch only when remote storage is enabled [KC-86] feat(inkless): allow diskless switch only when remote storage is enabled [KC-293] Jun 30, 2026
@EelisK EelisK changed the title feat(inkless): allow diskless switch only when remote storage is enabled [KC-293] feat(inkless): allow diskless switch only when remote storage is enabled [KC-217] Jun 30, 2026
@EelisK

EelisK commented Jun 30, 2026

Copy link
Copy Markdown
Member Author

Closing in favor of https://aiven.atlassian.net/browse/KC-293

@EelisK EelisK closed this Jun 30, 2026
@EelisK EelisK deleted the EelisK/KC-86 branch June 30, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants