soarez commented on code in PR #16672:
URL: https://github.com/apache/kafka/pull/16672#discussion_r1699879848
##########
server/src/main/java/org/apache/kafka/server/AssignmentsManager.java:
##########
@@ -204,7 +222,11 @@ public void onAssignment(
topicIdPartition, directoryId, nowNs, successCallback);
ready.put(topicIdPartition, assignment);
if (log.isTraceEnabled()) {
- log.trace("Registered assignment {}: {}", assignment, reason);
+ log.trace("Registered assignment {}: {}, moving {} into {}",
+ assignment,
+ reason,
+
topicIdToDescription.apply(assignment.topicIdPartition().topicId()),
Review Comment:
Since we now have `metadataImageSupplier`, we no longer need the
`topicIdToDescription ` constructor parameter.
```java
Optional.ofNullable(
metadataImageSupplier.get().topics()
.getTopic(assignment.topicIdPartition().topicId())
)
.map(TopicImage::name)
.orElse("[unknown topicid path]");
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]