Skip to content

Commit

Permalink
fix: sanity check startPosition (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcosentino11 authored Aug 22, 2024
1 parent 7353d30 commit c54c70c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public CloudWatchAttempt processLogFiles(ComponentLogFileInformation componentLo
long startPosition = logFileInformation.getStartPosition();
String fileHash = logFileInformation.getFileHash();
//This has been handled in the service, but leave here to prevent processor crash
if (logFile.isEmpty() || startPosition == logFile.length()) {
if (logFile.isEmpty() || startPosition >= logFile.length()) {
componentLogFileInformation.getLogFileInformationList().remove(0);
continue;
}
Expand Down

0 comments on commit c54c70c

Please sign in to comment.