Skip to content

Commit 09d3d26

Browse files
authored
Delegate primitive write methods with ByteSizeCachingDirectory wrapped IndexOutput (opensearch-project#19432)
* init Signed-off-by: gesong.samuel <[email protected]> * change Signed-off-by: gesong.samuel <[email protected]> * change Signed-off-by: gesong.samuel <[email protected]> --------- Signed-off-by: gesong.samuel <[email protected]>
1 parent 5e6ee97 commit 09d3d26

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4747
- Allow plugins to copy folders into their config dir during installation ([#19343](https://github.com/opensearch-project/OpenSearch/pull/19343))
4848
- Add failureaccess as runtime dependency to transport-grpc module ([#19339](https://github.com/opensearch-project/OpenSearch/pull/19339))
4949
- Migrate usages of deprecated `Operations#union` from Lucene ([#19397](https://github.com/opensearch-project/OpenSearch/pull/19397))
50+
- Delegate primitive write methods with ByteSizeCachingDirectory wrapped IndexOutput ([#19432](https://github.com/opensearch-project/OpenSearch/pull/19432))
5051

5152
### Fixed
5253
- Fix unnecessary refreshes on update preparation failures ([#15261](https://github.com/opensearch-project/OpenSearch/issues/15261))

server/src/main/java/org/opensearch/index/store/ByteSizeCachingDirectory.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,21 @@ public void writeByte(byte b) throws IOException {
177177
super.writeByte(b);
178178
}
179179

180+
@Override
181+
public void writeInt(int i) throws IOException {
182+
out.writeInt(i);
183+
}
184+
185+
@Override
186+
public void writeShort(short i) throws IOException {
187+
out.writeShort(i);
188+
}
189+
190+
@Override
191+
public void writeLong(long i) throws IOException {
192+
out.writeLong(i);
193+
}
194+
180195
@Override
181196
public void close() throws IOException {
182197
// Close might cause some data to be flushed from in-memory buffers, so

0 commit comments

Comments
 (0)