Skip to content

KAFKA-19752 Move parts of UnifiedLogTest to storage module#21686

Open
m1a2st wants to merge 6 commits intoapache:trunkfrom
m1a2st:KAFKA-19752
Open

KAFKA-19752 Move parts of UnifiedLogTest to storage module#21686
m1a2st wants to merge 6 commits intoapache:trunkfrom
m1a2st:KAFKA-19752

Conversation

@m1a2st
Copy link
Collaborator

@m1a2st m1a2st commented Mar 9, 2026

From testReadWithMinMessage to
testFetchLatestTieredTimestampWithRemoteStorage

@github-actions github-actions bot added core Kafka Broker storage Pull requests that target the storage module triage PRs from the community labels Mar 9, 2026
Copy link
Member

@mimaison mimaison left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, I left a few comments


@Test
public void testReadWithMinMessage() throws IOException {
var logConfig = new LogTestUtils.LogConfigBuilder()
Copy link
Member

Choose a reason for hiding this comment

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

We don't use var anywhere else in this file or even module. So maybe keep the types for consistency.


@Test
public void testRandomRecords() throws IOException {
var random = new java.util.Random();
Copy link
Member

Choose a reason for hiding this comment

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

We can import Random

Comment on lines -55 to -57
import net.jqwik.api.AfterFailureMode
import net.jqwik.api.ForAll
import net.jqwik.api.Property
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we use net.jqwik anywhere else in core. Can we remove testImplementation libs.jqwik from build.gradle?

assertEquals(expected, offsetResultHolder.futureHolderOpt().get().taskFuture().get().timestampAndOffset().orElse(null));
}

private KafkaConfig createKafkaConfigWithRLM() {
Copy link
Member

Choose a reason for hiding this comment

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

Could we get rid this method? It seems all the tests only require a broker id and an instance of RemoteLogManagerConfig

My thinking is that this would remove the dependency on KafkaConfig

@github-actions github-actions bot added the build Gradle build or GitHub Actions label Mar 10, 2026
@m1a2st
Copy link
Collaborator Author

m1a2st commented Mar 11, 2026

Thanks for @mimaison review, addressed all comments

@github-actions github-actions bot removed the triage PRs from the community label Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Gradle build or GitHub Actions core Kafka Broker storage Pull requests that target the storage module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants