Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ private[internal] case class DeltaHistoryManager(deltaLog: DeltaLogImpl) extends
while (i < length - 1) {
val prevTimestamp = commits(i).getTimestamp
assert(commits(i).getVersion < commits(i + 1).getVersion, "Unordered commits provided.")
if (prevTimestamp >= commits(i + 1).getTimestamp) {
if (prevTimestamp > commits(i + 1).getTimestamp) {
logWarning(s"Found Delta commit ${commits(i).getVersion} with a timestamp $prevTimestamp " +
s"which is greater than the next commit timestamp ${commits(i + 1).getTimestamp}.")
commits(i + 1) = commits(i + 1).withTimestamp(prevTimestamp + 1).asInstanceOf[T]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ private static List<Commit> monotonizeCommitTimestamps(CloseableIterator<Commit>
while (commits.hasNext()) {
Commit newElem = commits.next();
assert (prevVersion < newElem.version); // Verify commits are ordered
if (prevTimestamp >= newElem.timestamp) {
if (prevTimestamp > newElem.timestamp) {
logger.warn(
"Found Delta commit {} with a timestamp {} which is greater than the next "
+ "commit timestamp {}.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ object DeltaHistoryManager extends DeltaLogging {
while (i < length - 1) {
val prevTimestamp = commits(i).getTimestamp
assert(commits(i).getVersion < commits(i + 1).getVersion, "Unordered commits provided.")
if (prevTimestamp >= commits(i + 1).getTimestamp) {
if (prevTimestamp > commits(i + 1).getTimestamp) {
logWarning(log"Found Delta commit ${MDC(DeltaLogKeys.VERSION, commits(i).getVersion)} " +
log"with a timestamp ${MDC(DeltaLogKeys.TIMESTAMP, prevTimestamp)} " +
log"which is greater than the next commit timestamp " +
Expand Down
Loading