Merge pull request #10075 from YevhenBondarenko/fix/stack-overflow
fixed stack overflow error
This commit is contained in:
commit
ac555df9e9
@ -283,7 +283,7 @@ public class DefaultEntitiesVersionControlService implements EntitiesVersionCont
|
|||||||
return cachePut(ctx.getRequestId(), result);
|
return cachePut(ctx.getRequestId(), result);
|
||||||
} catch (LoadEntityException e) {
|
} catch (LoadEntityException e) {
|
||||||
return cachePut(ctx.getRequestId(), onError(e.getExternalId(), e.getCause()));
|
return cachePut(ctx.getRequestId(), onError(e.getExternalId(), e.getCause()));
|
||||||
} catch (Exception e) {
|
} catch (Throwable e) {
|
||||||
log.info("[{}] Failed to process request [{}] due to: ", ctx.getTenantId(), request, e);
|
log.info("[{}] Failed to process request [{}] due to: ", ctx.getTenantId(), request, e);
|
||||||
return cachePut(ctx.getRequestId(), VersionLoadResult.error(EntityLoadError.runtimeError(e)));
|
return cachePut(ctx.getRequestId(), VersionLoadResult.error(EntityLoadError.runtimeError(e)));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -237,7 +237,6 @@ public class DefaultTelemetrySubscriptionService extends AbstractSubscriptionSer
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
||||||
public void saveAndNotify(TenantId tenantId, EntityId entityId, String scope, List<AttributeKvEntry> attributes, FutureCallback<Void> callback) {
|
public void saveAndNotify(TenantId tenantId, EntityId entityId, String scope, List<AttributeKvEntry> attributes, FutureCallback<Void> callback) {
|
||||||
saveAndNotify(tenantId, entityId, scope, attributes, true, callback);
|
saveAndNotify(tenantId, entityId, scope, attributes, true, callback);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -256,7 +256,7 @@ public class CachedAttributesService implements AttributesService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ListenableFuture<List<String>> save(TenantId tenantId, EntityId entityId, String scope, List<AttributeKvEntry> attributes) {
|
public ListenableFuture<List<String>> save(TenantId tenantId, EntityId entityId, String scope, List<AttributeKvEntry> attributes) {
|
||||||
return save(tenantId, entityId, scope, attributes);
|
return save(tenantId, entityId, AttributeScope.valueOf(scope), attributes);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user