diff --git a/pom.xml b/pom.xml
index 9c987aba..e4179de8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -18,7 +18,7 @@
jar
- 1.5.2
+ 1.5.3
${sebserver-version}
${sebserver-version}
UTF-8
diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ClientConnectionDAOImpl.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ClientConnectionDAOImpl.java
index ba0abd37..a5ced324 100644
--- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ClientConnectionDAOImpl.java
+++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/dao/impl/ClientConnectionDAOImpl.java
@@ -436,9 +436,14 @@ public class ClientConnectionDAOImpl implements ClientConnectionDAO {
@Transactional
public Result saveSecurityCheckStatus(final Long connectionId, final Boolean checkStatus) {
return Result.tryCatch(() -> {
+
+ // NOTE: we use nanoseconds here to get a better precision to better avoid
+ // same value of real concurrent calls on distributed systems
+ final long nanosecondsNow = System.nanoTime();
this.clientConnectionRecordMapper.updateByPrimaryKeySelective(new ClientConnectionRecord(
connectionId,
- null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,
+ null, null, null, null, null, null, null, null, null, null, nanosecondsNow, null, null, null, null,
+ null,
Utils.toByte(checkStatus),
null, null));
return checkStatus;
@@ -450,9 +455,13 @@ public class ClientConnectionDAOImpl implements ClientConnectionDAO {
@Transactional
public Result saveSEBClientVersionCheckStatus(final Long connectionId, final Boolean checkStatus) {
return Result.tryCatch(() -> {
+ // NOTE: we use nanoseconds here to get a better precision to better avoid
+ // same value of real concurrent calls on distributed systems
+ final long nanosecondsNow = System.nanoTime();
this.clientConnectionRecordMapper.updateByPrimaryKeySelective(new ClientConnectionRecord(
connectionId,
- null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,
+ null, null, null, null, null, null, null, null, null, null, nanosecondsNow, null, null, null, null,
+ null,
null, null, Utils.toByte(checkStatus)));
return checkStatus;
})