@@ -97,7 +97,7 @@ private Mono<InternalTopic> loadTopic(KafkaCluster c, String topicName) {
97
97
98
98
/**
99
99
* After creation topic can be invisible via API for some time.
100
- * To workaround this, we retyring topic loading until it becomes visible.
100
+ * To workaround this, we're retrying topic loading until it becomes visible.
101
101
*/
102
102
private Mono <InternalTopic > loadTopicAfterCreation (KafkaCluster c , String topicName ) {
103
103
return loadTopic (c , topicName )
@@ -137,8 +137,7 @@ private List<InternalTopic> createList(List<String> orderedNames,
137
137
.collect (toList ());
138
138
}
139
139
140
- private Mono <InternalPartitionsOffsets > getPartitionOffsets (Map <String , TopicDescription >
141
- descriptionsMap ,
140
+ private Mono <InternalPartitionsOffsets > getPartitionOffsets (Map <String , TopicDescription > descriptionsMap ,
142
141
ReactiveAdminClient ac ) {
143
142
var descriptions = descriptionsMap .values ();
144
143
return ac .listOffsets (descriptions , OffsetSpec .earliest ())
@@ -225,8 +224,7 @@ private Mono<InternalTopic> updateTopic(KafkaCluster cluster,
225
224
.then (loadTopic (cluster , topicName )));
226
225
}
227
226
228
- public Mono <InternalTopic > updateTopic (KafkaCluster cl , String topicName ,
229
- Mono <TopicUpdateDTO > topicUpdate ) {
227
+ public Mono <InternalTopic > updateTopic (KafkaCluster cl , String topicName , Mono <TopicUpdateDTO > topicUpdate ) {
230
228
return topicUpdate
231
229
.flatMap (t -> updateTopic (cl , topicName , t ));
232
230
}
@@ -298,7 +296,7 @@ private Map<TopicPartition, Optional<NewPartitionReassignment>> getPartitionsRea
298
296
var brokers = brokersUsage .entrySet ().stream ()
299
297
.sorted (Map .Entry .comparingByValue ())
300
298
.map (Map .Entry ::getKey )
301
- .collect ( toList () );
299
+ .toList ();
302
300
303
301
// Iterate brokers and try to add them in assignment
304
302
// while partition replicas count != requested replication factor
@@ -326,7 +324,7 @@ private Map<TopicPartition, Optional<NewPartitionReassignment>> getPartitionsRea
326
324
var brokersUsageList = brokersUsage .entrySet ().stream ()
327
325
.sorted (Map .Entry .comparingByValue (Comparator .reverseOrder ()))
328
326
.map (Map .Entry ::getKey )
329
- .collect ( toList () );
327
+ .toList ();
330
328
331
329
// Iterate brokers and try to remove them from assignment
332
330
// while partition replicas count != requested replication factor
0 commit comments