Skip to content

Commit 3355baf

Browse files
committed
Merge branch 'ecchronos-1.0'
2 parents 82dacdb + 5e1b8c0 commit 3355baf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

core/src/main/java/com/ericsson/bss/cassandra/ecchronos/core/CASLockFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public Map<String, String> getLockMetadata(String dataCenter, String resource)
222222
}
223223
catch (Exception e)
224224
{
225-
LOG.error("Unable to retrieve metadata for resource {}", resource, e);
225+
LOG.warn("Unable to retrieve metadata for resource {}", resource, e);
226226
}
227227

228228
return null;
@@ -333,7 +333,7 @@ private DistributedLock doTryLock(String dataCenter, String resource, int priori
333333

334334
if (!sufficientNodesForLocking(dataCenter, resource))
335335
{
336-
LOG.error("Not sufficient nodes to lock resource {} in datacenter {}", resource, dataCenter);
336+
LOG.warn("Not sufficient nodes to lock resource {} in datacenter {}", resource, dataCenter);
337337
throw new LockException("Not sufficient nodes to lock");
338338
}
339339

core/src/main/java/com/ericsson/bss/cassandra/ecchronos/core/LockCollection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void close()
4949
}
5050
catch (Exception e)
5151
{
52-
LOG.error("Unable to release lock {} ", lock, e);
52+
LOG.warn("Unable to release lock {} ", lock, e);
5353
}
5454
}
5555
}

core/src/main/java/com/ericsson/bss/cassandra/ecchronos/core/repair/RepairLockFactoryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private void releaseLocks(Collection<LockFactory.DistributedLock> locks)
101101
}
102102
catch (Exception e)
103103
{
104-
LOG.error("Unable to release lock {} for {} ", lock, this, e);
104+
LOG.warn("Unable to release lock {} for {} ", lock, this, e);
105105
}
106106
}
107107
}

0 commit comments

Comments
 (0)