|
27 | 27 | import org.apache.kafka.server.log.remote.metadata.storage.TopicBasedRemoteLogMetadataManager;
|
28 | 28 | import org.apache.kafka.server.log.remote.metadata.storage.TopicBasedRemoteLogMetadataManagerConfig;
|
29 | 29 | import org.apache.kafka.server.log.remote.storage.LocalTieredStorage;
|
| 30 | +import org.apache.kafka.storage.internals.log.CleanerConfig; |
30 | 31 | import org.apache.kafka.tiered.storage.TieredStorageTestContext;
|
31 | 32 |
|
32 | 33 | import org.junit.jupiter.api.Assertions;
|
|
53 | 54 | import static org.apache.kafka.server.log.remote.storage.RemoteLogManagerConfig.REMOTE_LOG_STORAGE_SYSTEM_ENABLE_PROP;
|
54 | 55 | import static org.apache.kafka.server.log.remote.storage.RemoteLogManagerConfig.REMOTE_STORAGE_MANAGER_CLASS_NAME_PROP;
|
55 | 56 | import static org.apache.kafka.server.log.remote.storage.RemoteLogManagerConfig.REMOTE_STORAGE_MANAGER_CONFIG_PREFIX_PROP;
|
56 |
| -import static org.apache.kafka.storage.internals.log.CleanerConfig.LOG_CLEANER_ENABLE_PROP; |
57 | 57 |
|
58 | 58 | public class TieredStorageTestUtils {
|
59 | 59 |
|
@@ -103,6 +103,7 @@ public static List<Record> tieredStorageRecords(TieredStorageTestContext context
|
103 | 103 | .toList();
|
104 | 104 | }
|
105 | 105 |
|
| 106 | + @SuppressWarnings("removal") |
106 | 107 | public static Properties createPropsForRemoteStorage(String testClassName,
|
107 | 108 | String storageDirPath,
|
108 | 109 | int brokerCount,
|
@@ -158,7 +159,7 @@ public static Properties createPropsForRemoteStorage(String testClassName,
|
158 | 159 | // Set 2 log dirs to make sure JBOD feature is working correctly
|
159 | 160 | overridingProps.setProperty(ServerLogConfigs.LOG_DIRS_CONFIG, TestUtils.tempDir().getAbsolutePath() + "," + TestUtils.tempDir().getAbsolutePath());
|
160 | 161 | // Disable unnecessary log cleaner
|
161 |
| - overridingProps.setProperty(LOG_CLEANER_ENABLE_PROP, "false"); |
| 162 | + overridingProps.setProperty(CleanerConfig.LOG_CLEANER_ENABLE_PROP, "false"); |
162 | 163 |
|
163 | 164 | return overridingProps;
|
164 | 165 | }
|
|
0 commit comments