Skip to content

Commit

Permalink
HBASE--28666 Dropping unclosed WALTailingReaders leads to leaked sock…
Browse files Browse the repository at this point in the history
…ets (#5994)

In WALEntryStream, always use current WALTailingReader if one exists

Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit bd8ad45)
  • Loading branch information
charlesconnell authored and Apache9 committed Jun 16, 2024
1 parent 31878b5 commit 5db6e5e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ private HasNext prepareReader() {
// we will read from the beginning so we should always clear the compression context
reader.resetTo(-1, true);
}
return HasNext.YES;
} catch (FileNotFoundException e) {
// For now, this could happen only when reading meta wal for meta replicas.
// In this case, raising UncheckedIOException will let the endpoint deal with resetting
Expand Down

0 comments on commit 5db6e5e

Please sign in to comment.