Skip to content

Commit

Permalink
[Test] Ensure correct initial datasetSize estimation (elastic#99896)
Browse files Browse the repository at this point in the history
This PR accounts for the extra file created by ExtraFS for initial
dataset size estimation.

Resolves: elastic#99762
  • Loading branch information
ywangd committed Sep 27, 2023
1 parent d8a9124 commit 191f65f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ public void testStoreSizes() throws IOException {
// directory that returns total written bytes as the data set size
final var directory = new ByteSizeDirectory(StoreTests.newDirectory(random())) {

final AtomicLong dataSetBytes = new AtomicLong(0L);
final AtomicLong dataSetBytes = new AtomicLong(estimateSizeInBytes(getDelegate()));

@Override
public long estimateSizeInBytes() throws IOException {
Expand Down

0 comments on commit 191f65f

Please sign in to comment.