mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
parent
edbb1e021f
commit
b231036f87
2 changed files with 0 additions and 4 deletions
|
@ -65,9 +65,6 @@ public final class DeadLetterQueueReader implements Closeable {
|
||||||
currentReader = new RecordIOReader(segment);
|
currentReader = new RecordIOReader(segment);
|
||||||
byte[] event = currentReader.seekToNextEventPosition(timestamp, (b) -> {
|
byte[] event = currentReader.seekToNextEventPosition(timestamp, (b) -> {
|
||||||
try {
|
try {
|
||||||
if (b == null){
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return DLQEntry.deserialize(b).getEntryTime();
|
return DLQEntry.deserialize(b).getEntryTime();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -263,7 +263,6 @@ public final class RecordIOReader implements Closeable {
|
||||||
this.channel.position(bufferState.channelPosition);
|
this.channel.position(bufferState.channelPosition);
|
||||||
this.channelPosition = channel.position();
|
this.channelPosition = channel.position();
|
||||||
this.currentBlockSizeReadFromChannel = bufferState.currentBlockSizeReadFromChannel;
|
this.currentBlockSizeReadFromChannel = bufferState.currentBlockSizeReadFromChannel;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
final static class BufferState {
|
final static class BufferState {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue