File tree 1 file changed +4
-1
lines changed
connector/src/main/java/io/questdb/kafka 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,10 @@ private void onTcpSenderException(Exception e) {
255
255
256
256
private void onHttpSenderException (Exception e ) {
257
257
closeSenderSilently ();
258
- if (reporter != null & e .getMessage () != null && e .getMessage ().contains ("error in line" )) { // hack to detect data parsing errors
258
+ if (
259
+ (reporter != null && e .getMessage () != null ) // hack to detect data parsing errors
260
+ && (e .getMessage ().contains ("error in line" ) || e .getMessage ().contains ("failed to parse line protocol" ))
261
+ ) {
259
262
// ok, we have a parsing error, let's try to send records one by one to find the problematic record
260
263
// and we will report it to the error handler. the rest of the records will make it to QuestDB
261
264
sender = createSender ();
You can’t perform that action at this time.
0 commit comments