cmccabe opened a new pull request, #13686:
URL: https://github.com/apache/kafka/pull/13686

   Metadata image classes such as MetadataImage, ClusterImage, FeaturesImage, 
and so forth contain numerous sub-images. This PR adds a structured way of 
traversing those sub-images. This is useful for the metadata shell, and also 
for implementing toString functions.
   
   In both cases, the previous solution was suboptimal. The metadata shell was 
previously implemented in an ad-hoc way by mutating text-based tree nodes when 
records were replayed. This was difficult to keep in sync with changes to the 
record types (for example, we forgot to do this for SCRAM). It was also pretty 
low-level, being done at a level below that of the image classes. For toString, 
it was difficult to keep the implementations consistent previously, and also 
support both redacted and non-redacted output.
   
   The metadata shell directory was getting crowded since we never had 
submodules for it. This PR creates glob/, command/, node/, and state/ 
directories to keep things better organized.


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to