apache / apache/lucene

In BufferedIndexInput to cleanup the bufferSize variable passed down to it as the default bufferSize(BUFFER_SIZE) is always used [LUCENE-3248]

Open
#4,321 0 comments 0 reactions 0 assignees View on GitHub
affects-version:4.0-ALPHA affects-version:IOContext branch legacy-jira-priority:Major module:core/store type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

After adding IOContext in (#3867) we can optimize the size of all the buffers accordingly. This patch would cleanup all the unused bufferSize variables.

---
Migrated from [LUCENE-3248](https://issues.apache.org/jira/browse/LUCENE-3248) by Varun Thacker (@vthacker)

Contributor guide

Open the contributing guide

Research direction

Start by reading BufferedIndexInput and tracing how IOContext and bufferSize are passed to it. Identify the unused bufferSize variables described in the issue, then verify that the cleanup preserves the IOContext-based buffer sizing and that the existing tests still pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.