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

   Minor change to how the describe topic output is parsed in system tests, to 
ensure that the output is preserved, even if only some fields are relevant to 
the test for now (which is what it used to do before recent changes)
   
   Initial problem: System tests were parsing the describe topic output in 
kafka.py assuming all fields would include a value. The describe API was 
recently changed, breaking this logic, because it included new fields for which 
there may not be values (ex. LastKnownElr). 
   
   Initial fix: The initial fix for this was to drop all fields from the output 
except for the ones currently used in the test, where in reality only the 
fields without values are the problematic ones. 
   
   Proposed improvement: A more extensible approach would be to drop only the 
fields that have no values and preserve the full output, which is what the test 
did before the initial fix mentioned above. This allows to easily extend the 
test to include more fields as needed, which could follow as the describe API 
and tests evolves (it will only require to add the fields to the returned value 
when needed, without having to change how the `fields` object is stripped). 
   


-- 
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