log an ping notification improvements
This commit is contained in:
parent
16582d0ce8
commit
23c63783d7
2 changed files with 3 additions and 11 deletions
|
@ -84,8 +84,8 @@ public abstract class AbstractClientIndicator implements ClientIndicator {
|
||||||
this.connectionId,
|
this.connectionId,
|
||||||
getType());
|
getType());
|
||||||
|
|
||||||
if (this.ditributedIndicatorValueRecordId == null) {
|
if (this.ditributedIndicatorValueRecordId == null && log.isDebugEnabled()) {
|
||||||
log.warn("Failed to recover from missing indicator value cache record: {} type: {}",
|
log.debug("Failed to recover from missing indicator value cache record: {} type: {}",
|
||||||
this.connectionId,
|
this.connectionId,
|
||||||
getType());
|
getType());
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,15 +30,7 @@ public abstract class AbstractPingIndicator extends AbstractClientIndicator {
|
||||||
public final void notifyPing(final long timestamp, final int pingNumber) {
|
public final void notifyPing(final long timestamp, final int pingNumber) {
|
||||||
super.currentValue = timestamp;
|
super.currentValue = timestamp;
|
||||||
|
|
||||||
if (!this.cachingEnabled) {
|
if (!this.cachingEnabled && super.ditributedIndicatorValueRecordId != null) {
|
||||||
|
|
||||||
if (super.ditributedIndicatorValueRecordId == null) {
|
|
||||||
tryRecoverIndicatorRecord();
|
|
||||||
if (this.ditributedIndicatorValueRecordId == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
this.distributedIndicatorValueService.updatePingAsync(this.ditributedIndicatorValueRecordId);
|
this.distributedIndicatorValueService.updatePingAsync(this.ditributedIndicatorValueRecordId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue