apache-beam

GCP Dataflow Apache Beam writing output error handling

蹲街弑〆低调 提交于 2020-12-13 03:06:28
问题 I need to apply error handling to my Dataflow for multiple inserts to Spanner with the same primary key. The logic being that an older message may be received after the current message and I do not want to overwrite the saved values. Therefore I will create my mutation as an insert and throw an error when a duplicate insert is attempted. I have seen several examples of try blocks within DoFn's that write to a side output to log any errors. This is a very nice solution but I need to apply

GCP Dataflow Apache Beam writing output error handling

…衆ロ難τιáo~ 提交于 2020-12-13 03:05:53
问题 I need to apply error handling to my Dataflow for multiple inserts to Spanner with the same primary key. The logic being that an older message may be received after the current message and I do not want to overwrite the saved values. Therefore I will create my mutation as an insert and throw an error when a duplicate insert is attempted. I have seen several examples of try blocks within DoFn's that write to a side output to log any errors. This is a very nice solution but I need to apply