Commit 4ea397b4d59fadaf54585b8b607e66e26a10fe27
1 parent
d25c605a
ClusterService - pushNotificationToTransport - fire callback.onSuccess(null) if serviceId is empty
Showing
1 changed file
with
3 additions
and
0 deletions
@@ -198,6 +198,9 @@ public class DefaultTbClusterService implements TbClusterService { | @@ -198,6 +198,9 @@ public class DefaultTbClusterService implements TbClusterService { | ||
198 | public void pushNotificationToTransport(String serviceId, ToTransportMsg response, TbQueueCallback callback) { | 198 | public void pushNotificationToTransport(String serviceId, ToTransportMsg response, TbQueueCallback callback) { |
199 | if (serviceId == null || serviceId.isEmpty()){ | 199 | if (serviceId == null || serviceId.isEmpty()){ |
200 | log.trace("pushNotificationToTransport: skipping message without serviceId [{}], (ToTransportMsg) response [{}]", serviceId, response); | 200 | log.trace("pushNotificationToTransport: skipping message without serviceId [{}], (ToTransportMsg) response [{}]", serviceId, response); |
201 | + if (callback != null) { | ||
202 | + callback.onSuccess(null); //callback that message already sent, no useful payload expected | ||
203 | + } | ||
201 | return; | 204 | return; |
202 | } | 205 | } |
203 | TopicPartitionInfo tpi = partitionService.getNotificationsTopic(ServiceType.TB_TRANSPORT, serviceId); | 206 | TopicPartitionInfo tpi = partitionService.getNotificationsTopic(ServiceType.TB_TRANSPORT, serviceId); |