Merge "Add function to compare the partitions' extents in metadata"