Skip to content

Commit

Permalink
fix(core): remove stale read warning (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgogerly committed Jun 24, 2021
1 parent 4751d87 commit 83710af
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,20 +405,6 @@ private Set<T> fetchAllItems(Set<T> existingItems) {
String key = entry.getKey();
T object = (T) service.loadObject(objectType, key);

Long expectedLastModifiedTime = keyUpdateTime.get(key);
Long currentLastModifiedTime = object.getLastModified();

if (expectedLastModifiedTime != null
&& currentLastModifiedTime != null) {
if (currentLastModifiedTime < expectedLastModifiedTime) {
log.warn(
"Unexpected stale read for {} (current: {}, expected: {})",
key,
new Date(currentLastModifiedTime),
new Date(expectedLastModifiedTime));
}
}

if (!key.equals(buildObjectKey(object))) {
mismatchedIdCounter.increment();
log.warn(
Expand Down

0 comments on commit 83710af

Please sign in to comment.