From 7a0365d4d39ff9b570ac26fed7bf59997ad8d669 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Fri, 25 Oct 2024 13:30:29 +0200 Subject: [PATCH] Add MIGRATE entry about the fact that readVLong() may now read up to 10 bytes. (#13956) This may be of interest for custom `DataInput`/`IndexInput` implementations that extend `readVLong()`. --- lucene/MIGRATE.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lucene/MIGRATE.md b/lucene/MIGRATE.md index 456e867800f..1db50b7fdd8 100644 --- a/lucene/MIGRATE.md +++ b/lucene/MIGRATE.md @@ -19,6 +19,13 @@ ## Migration from Lucene 9.x to Lucene 10.0 +### DataInput#readVLong() may now read negative vlongs + +LUCENE-10376 started allowing `DataInput#readVLong()` to read negative vlongs. +In particular, this feature is used by the `DataInput#readZLong()` method. A +practical implication is that `DataInput#readVLong()` may now read up to 10 +bytes, while it would never read more than 9 bytes in Lucene 9.x. + ### Changes to DataInput.readGroupVInt and readGroupVInts methods As part of GITHUB#13820, GITHUB#13825, GITHUB#13830, this issue corrects DataInput.readGroupVInts