Skip to content

Commit ea0b34d

Browse files
committed
Fix "Available pages" to "Total pages"
1 parent f78129e commit ea0b34d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fluss-common/src/main/java/com/alibaba/fluss/memory/LazyMemorySegmentPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public List<MemorySegment> allocatePages(int requiredPages) throws IOException {
131131
throw new EOFException(
132132
String.format(
133133
"Allocation request cannot be satisfied because the number of maximum available pages is "
134-
+ "exceeded. Available pages: %d. Requested pages: %d",
134+
+ "exceeded. Total pages: %d. Requested pages: %d",
135135
this.maxPages, requiredPages));
136136
}
137137

fluss-common/src/test/java/com/alibaba/fluss/memory/LazyMemorySegmentPoolTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void testCannotAllocateMorePagesThanAvailable() throws Exception {
190190

191191
assertThatThrownBy(() -> pool.allocatePages(3))
192192
.isInstanceOf(EOFException.class)
193-
.hasMessageContaining("Available pages: 2. Requested pages: 3");
193+
.hasMessageContaining("Total pages: 2. Requested pages: 3");
194194
}
195195

196196
@Test
@@ -213,7 +213,7 @@ void testUnsatisfiableRequestDoesNotBlockAndThrowsException() {
213213
LazyMemorySegmentPool pool = buildLazyMemorySegmentSource(1, 1024, Long.MAX_VALUE, 1024);
214214
assertThatThrownBy(() -> pool.allocatePages(2))
215215
.isInstanceOf(EOFException.class)
216-
.hasMessageContaining("Available pages: 1. Requested pages: 2");
216+
.hasMessageContaining("Total pages: 1. Requested pages: 2");
217217
assertThat(pool.queued()).isEqualTo(0);
218218
assertThat(pool.freePages()).isEqualTo(1);
219219
}

0 commit comments

Comments
 (0)