rollback(topicPartition); } catch (final Exception rollbackException) { logger.warn("Attempted to rollback Kafka message offset but was unable to do so", rollbackException); rollback(topicPartition); } catch (final Exception rollbackException) { logger.warn("Attempted to rollback Kafka message offset but was unable to do so", rollbackException);
} catch (final IOException e) { yield(); rollback(topicPartition); handleParseFailure(consumerRecord, session, e, "Failed to parse message from Kafka due to comms failure. Will roll back session and try again momentarily."); closeWriter(writer); logger.error("Failed to obtain Schema for FlowFile. Will roll back the Kafka message offsets.", e); rollback(topicPartition); yield(); rollback(topicPartition);
} catch (final IOException e) { yield(); rollback(topicPartition); handleParseFailure(consumerRecord, session, e, "Failed to parse message from Kafka due to comms failure. Will roll back session and try again momentarily."); closeWriter(writer); logger.error("Failed to obtain Schema for FlowFile. Will roll back the Kafka message offsets.", e); rollback(topicPartition); yield(); rollback(topicPartition);
} catch (final IOException e) { yield(); rollback(topicPartition); handleParseFailure(consumerRecord, session, e, "Failed to parse message from Kafka due to comms failure. Will roll back session and try again momentarily."); closeWriter(writer); logger.error("Failed to obtain Schema for FlowFile. Will roll back the Kafka message offsets.", e); rollback(topicPartition); yield(); rollback(topicPartition);
rollback(topicPartition); } catch (final Exception rollbackException) { logger.warn("Attempted to rollback Kafka message offset but was unable to do so", rollbackException); rollback(topicPartition); } catch (final Exception rollbackException) { logger.warn("Attempted to rollback Kafka message offset but was unable to do so", rollbackException);
} catch (final IOException e) { yield(); rollback(topicPartition); handleParseFailure(consumerRecord, session, e, "Failed to parse message from Kafka due to comms failure. Will roll back session and try again momentarily."); closeWriter(writer); logger.error("Failed to obtain Schema for FlowFile. Will roll back the Kafka message offsets.", e); rollback(topicPartition); yield(); rollback(topicPartition);
} catch (final IOException e) { yield(); rollback(topicPartition); handleParseFailure(consumerRecord, session, e, "Failed to parse message from Kafka due to comms failure. Will roll back session and try again momentarily."); closeWriter(writer); logger.error("Failed to obtain Schema for FlowFile. Will roll back the Kafka message offsets.", e); rollback(topicPartition); yield(); rollback(topicPartition);