Skip to content

Commit

Permalink
fix: sanity check startPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
jcosentino11 committed Aug 21, 2024
1 parent 7353d30 commit d7fcaee
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 d7fcaee

Please sign in to comment.