File tree Expand file tree Collapse file tree
main/java/com/influxdb/v3/client/internal
test/java/com/influxdb/v3/client/integration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -374,7 +374,8 @@ private boolean isV3PartialWriteError(@Nullable final String errorMessage) {
374374 }
375375 String normalized = errorMessage .toLowerCase (Locale .ROOT );
376376 return normalized .contains ("partial write of line protocol occurred" )
377- || normalized .contains ("parsing failed for write_lp endpoint" );
377+ || normalized .contains ("parsing failed for write_lp endpoint" ) // for Core 3.9 and earlier
378+ || normalized .contains ("line protocol parsing error" ); // for Core 3.10 and later
378379 }
379380
380381 private boolean errIsJsonLikeContentType (@ Nullable final String contentType ) {
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ public void testWriteErrorWithoutAcceptPartial() throws Exception {
261261 Throwable thrown = Assertions .catchThrowable (() -> client .writeRecord (points , options ));
262262 Assertions .assertThat (thrown ).isInstanceOf (InfluxDBPartialWriteException .class );
263263 Assertions .assertThat (thrown .getMessage ())
264- .contains ("parsing failed for write_lp endpoint " );
264+ .contains ("line protocol parsing error " );
265265
266266 InfluxDBPartialWriteException partialError = (InfluxDBPartialWriteException ) thrown ;
267267 Assertions .assertThat (partialError .lineErrors ()).hasSize (1 );
You can’t perform that action at this time.
0 commit comments