apache/beam

JsonToRow can catch errors in downstream transforms

已关闭

#20,935 创建于 2022年6月4日

 (2 条评论) (0 个反应) (1 位负责人)Java (4,097 个派生)batch import
P3bugcoregood first issuejava

仓库指标

星标
 (7,313 个星标)
PR 合并指标
 (平均合并 6天) (30 天内合并 243 个 PR)

描述

JsonToRow :

  |try {| | | | | |output.get(PARSED_LINE).output(jsonToRow(objectMapper(), element));| | | | | |} catch (Exception ex) {|

Can catch errors thrown downstream with runners that have fusion. This can be confusing as it can appear that the issue happens in the parse operation , when its really happening in a transform further down the DAG. This is made worse as different runners can show different behaviour in this situation.

 

Replace with try{i = parse}catch{}  if i not null output

Imported from Jira BEAM-11940. Original Jira may contain additional context. Reported by: rarokni@gmail.com.

贡献者指南