Skip to content

Commit 022fbd6

Browse files
pradithyafeast-ci-bot
authored andcommitted
Catch all kind of exception to avoid retrying (#171)
1 parent 79abea3 commit 022fbd6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ingestion/src/main/java/feast/ingestion/transform/fn/LoggerDoFn.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
package feast.ingestion.transform.fn;
1919

20-
import com.google.protobuf.InvalidProtocolBufferException;
2120
import com.google.protobuf.Message;
2221
import com.google.protobuf.util.JsonFormat;
2322
import com.google.protobuf.util.JsonFormat.Printer;
@@ -46,7 +45,7 @@ public void processElement(ProcessContext context) {
4645
String message;
4746
try {
4847
message = prefix + printer.print(context.element());
49-
} catch (InvalidProtocolBufferException e) {
48+
} catch (Exception e) {
5049
log.error(e.getMessage(), e);
5150
message = prefix + context.element().toString();
5251
}

0 commit comments

Comments
 (0)