apache/beam

JsonToRow can catch errors in downstream transforms

Chiusa

#20.935 aperta il 4 giu 2022

 (2 commenti) (0 reazioni) (1 assegnatario)Java (4097 fork)batch import
P3bugcoregood first issuejava

Metriche repository

Star
 (7313 stelle)
Metriche merge PR
 (Merge medio 6g) (243 PR mergiate in 30 g)

Descrizione

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.

Guida contributor