KAFKA-16696: Removed the in-memory implementation of RSM and RLMM#15911
KAFKA-16696: Removed the in-memory implementation of RSM and RLMM#15911chia7712 merged 2 commits intoapache:trunkfrom
Conversation
|
|
||
| @Test | ||
| public void testFetchSegments() throws Exception { | ||
| try { |
There was a problem hiding this comment.
It seems to me TopicBasedRemoteLogMetadataManagerWrapperWithHarness can be removed also. We don't use the wrapper actually. This test can be modified by following style:
@Test
public void testFetchSegments() throws Exception {
try (TopicBasedRemoteLogMetadataManagerHarness remoteLogMetadataManagerHarness = new TopicBasedRemoteLogMetadataManagerHarness()) {
RemoteLogMetadataManager remoteLogMetadataManager = remoteLogMetadataManagerHarness.remoteLogMetadataManager();noted TopicBasedRemoteLogMetadataManagerHarness needs to implement AutoClosable, and remoteLogMetadataManager should be a public method.
There was a problem hiding this comment.
This can be addressed as follow-up I think :)
|
QA is re-triggered, and I will merge it if QA does not show the related error. |
|
Can you actually not remove this because I was starting to use it in the GetOffsetShellToolTest? The problem I faced with using the topic-based RLMM is that it requires the bootstrap-servers to initialise correctly. However, said bootstrap-servers are not present at initialisation time (due to determining the port dynamically) |
We can get the port from the Kafkabroker using the |
@clolov Could you take a look at #15917 ? I try to use another way to write tests for storage module. |
|
Okay, let's go forward with this so that you are not blocked on me, I will try to figure out a way forward and if not I will write again :) |
@clolov thanks! Please feel free to ping me if you have a draft PR. I'd like to make |
…che#15911) Reviewers: Satish Duggana <satishd@apache.org>, Luke Chen <showuon@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
…che#15911) Reviewers: Satish Duggana <satishd@apache.org>, Luke Chen <showuon@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
The in-memory implementation of RSM and RLMM were written to write the unit/integration tests: #10218
This is not used by any of the tests and superseded by the LocalTieredStorage framework which uses local-disk as secondary storage and topic as RLMM. Using the LocalTieredStorage framework is the preferred way to write the integration tests to capture any regression as it uses the internal topic as storage for RLMM which is the default implementation.
Committer Checklist (excluded from commit message)