dajac opened a new pull request, #23505: URL: https://github.com/apache/kafka/pull/23505
TopicIds exposes the subscribed topic names of a member as a set of topic ids, resolving the names lazily through the metadata image. Its two toArray methods threw UnsupportedOperationException, so an assignor wanting the subscription in an array had to iterate the set itself. This patch implements both methods. They fill the array with the ids of the topic names which resolve, in iteration order. Like the iterator, they skip the names of deleted topics, so the array may be shorter than the size, in which case it is trimmed. An array which is large enough is filled in place, with the element after the last id set to null, as the Collection contract says. Tests cover the two methods, filling an array which is large enough, and a topic name which does not resolve. -- 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]
