Skip to content

Commit 51a2cad

Browse files
committed
fix test
1 parent 5de891e commit 51a2cad

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lang/java/avro/src/test/java/org/apache/avro/TestDataFileCorruption.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ void corruptedFile() throws IOException {
8787
assertEquals("fig", r.next().toString());
8888
assertFalse(r.hasNext());
8989
} catch (AvroRuntimeException e) {
90-
assertEquals("Invalid sync!", e.getCause().getMessage());
90+
assertEquals("Invalid sync marker! The sync marker in the data block doesn't match the file "
91+
+ "header's sync marker. This likely indicates data corruption, truncated file, "
92+
+ "or incorrectly concatenated Avro files. Verify file integrity and ensure proper "
93+
+ "file transmission or creation.", e.getCause().getMessage());
9194
}
9295

9396
}

0 commit comments

Comments
 (0)