Skip to content

Commit

Permalink
Fix ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
horizonzy committed Feb 19, 2024
1 parent 3b7ed48 commit 3bef014
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ private static void readLedger(ClientConfiguration conf, long ledgerId, byte[] p
while (entries.hasMoreElements()) {
LedgerEntry e = entries.nextElement();
entriesRead++;
lastRead = e.getEntryId();
if ((entriesRead % 10000) == 0) {
LOG.info("{} entries read from ledger {}", entriesRead, ledgerId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ public void testBatchReadFailBackToSingleRead1() throws Exception {
}
try (LedgerHandle lh = bkc.openLedger(ledgerId, digestType, "testPasswd".getBytes())) {
assertEquals(numEntries - 1, lh.readLastConfirmed());
//V2 protocol not support batch read. In theory, it will throw UnsupportedOperationException.
//V3 protocol not support batch read. In theory, it will throw UnsupportedOperationException.
try {
lh.batchReadEntries(0, numEntries, 5 * 1024 * 1024);
fail("Should throw UnsupportedOperationException.");
Expand Down Expand Up @@ -684,7 +684,7 @@ public void testBatchReadFailBackToSingleRead2() throws Exception {
}
try (LedgerHandle lh = bkc.openLedger(ledgerId, digestType, "testPasswd".getBytes())) {
assertEquals(numEntries - 1, lh.readLastConfirmed());
//V2 protocol not support batch read, it will throw UnsupportedOperationException.
//V3 protocol not support batch read, it will throw UnsupportedOperationException.
try {
lh.batchReadEntries(0, numEntries, 5 * 1024 * 1024);
fail("Should throw UnsupportedOperationException.");
Expand Down

0 comments on commit 3bef014

Please sign in to comment.