Skip to content

Conversation

@thecoop
Copy link
Contributor

@thecoop thecoop commented Apr 30, 2025

ReadAdvice.RANDOM_PRELOAD just maps to the same madvise as NORMAL - so remove it completely.

case NORMAL -> POSIX_MADV_NORMAL;
case RANDOM -> POSIX_MADV_RANDOM;
case SEQUENTIAL -> POSIX_MADV_SEQUENTIAL;
case RANDOM_PRELOAD -> POSIX_MADV_NORMAL;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It just results in the same madvice as NORMAL

@thecoop
Copy link
Contributor Author

thecoop commented Apr 30, 2025

Is it actually worth keeping SerialIOCountingDirectory and TestDefaultCodecParallizesIO? Those are assuming specific loading behaviour from the OS. Essentially, they're testing that specific ReadAdvice are passed to a Directory, not that the pages are actually loaded as expected from disk. Especially since ReadAdvice is moving into being a MMapDirectory-specific thing.

Copy link
Contributor

@ChrisHegarty ChrisHegarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree that it is not being used, and with the upcoming refactoring in this area it should not be needed. LGTM

@ChrisHegarty ChrisHegarty merged commit 7cbe0fa into apache:main May 2, 2025
7 checks passed
ChrisHegarty pushed a commit to ChrisHegarty/lucene that referenced this pull request May 2, 2025
…#14593)

ReadAdvice.RANDOM_PRELOAD just maps to the same madvise as NORMAL - so remove it completely.
weizijun added a commit to weizijun/lucene that referenced this pull request May 7, 2025
* main: (27 commits)
  deps(java): bump com.github.luben:zstd-jni from 1.5.7-2 to 1.5.7-3 (apache#14621)
  Improve user-facing docs for geo package (apache#14534)
  Enabling histogram collection for PointRangeQuery (apache#14560)
  Move sloppySin into SloppyMath from GeoUtils (apache#14516)
  Rewrite APIJAR extractor to use Java 24 classfile API and kill ASM dependency also for build system (apache#14613)
  CHANGES entry for apache#14226 (optimistic KNN Query)
  OptimisticKnnVectorQuery (apache#14226)
  Fix for Windows (spaces in paths) apache#14608
  Update jdk requirements in README to OpenJDK 24 (apache#14610)
  Always check gradle wrapper sha checksum and download if necessary (apache#14608)
  Fix changelog verifier (apache#14606)
  MultiRange query for SortedNumeric DocValues (apache#14404)
  Remove RANDOM_PRELOAD read advice, which is not actually used (apache#14593)
  Remove duplicate test (apache#14602)
  Refactor the expressions compiler to use official ClassData BSM with indexed lookup (apache#14602)
  Disallow EA versions to run Gradle (apache#14601)
  Add back-compat indices for 10.2.1
  Add Lucene 10.2.1 version constant
  DOAP changes for release 10.2.1
  Revert "An attempt to make jenkins pass with the currently installed jdk24-ea. To be reverted later. apache#14600"
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants