[
https://issues.apache.org/jira/browse/KAFKA-21692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chia-Ping Tsai resolved KAFKA-21692.
------------------------------------
Fix Version/s: 4.5.0
Resolution: Fixed
> Replace Json.parseFull with Json.tryParseFull and remove parseFull
> ------------------------------------------------------------------
>
> Key: KAFKA-21692
> URL: https://issues.apache.org/jira/browse/KAFKA-21692
> Project: Kafka
> Issue Type: Improvement
> Components: admin
> Reporter: Chia-Ping Tsai
> Assignee: Lucy Liu
> Priority: Minor
> Fix For: 4.5.0
>
>
> All callers of `Json.parseFull` throw an exception when the returned Optional
> is empty, so the Optional adds nothing. We could switch them to
> `Json.tryParseFull` and remove `parseFull`.
> Callers: `DeleteRecordsCommand`, `LeaderElectionCommand`,
> `ReassignPartitionsCommand`, and `JsonTest`.
> Please keep the error users see today when the input is not valid JSON.
> This is a follow-up to KAFKA-21412.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)