Skip to content

Commit

Permalink
Fix compaction npe when set modified status (#12729)
Browse files Browse the repository at this point in the history
* fix compaction npe when set modified status

* check empty page
  • Loading branch information
shuwenwei authored Jun 17, 2024
1 parent 74212db commit d3f605f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ protected ModifiedStatus calculatePageModifiedStatus(PageHeader pageHeader) {
return this.modifiedStatus;
}
ModifiedStatus pageModifiedStatus = ModifiedStatus.NONE_DELETED;
if (pageHeader.getStatistics() == null || pageHeader.getStatistics().getCount() == 0) {
return pageModifiedStatus;
}
List<TimeRange> deleteIntervalList = chunkMetadata.getDeleteIntervalList();
long startTime = pageHeader.getStartTime();
long endTime = pageHeader.getEndTime();
Expand Down

0 comments on commit d3f605f

Please sign in to comment.