Browse Source

default state service: added warn on Device belongs to external partition

pull/4910/head
Sergey Matvienko 5 years ago
committed by Andrew Shvayka
parent
commit
8965ca2721
  1. 1
      application/src/main/java/org/thingsboard/server/service/state/DefaultDeviceStateService.java

1
application/src/main/java/org/thingsboard/server/service/state/DefaultDeviceStateService.java

@ -456,6 +456,7 @@ public class DefaultDeviceStateService extends TbApplicationEventListener<Partit
deviceIds.add(state.getDeviceId());
deviceStates.put(state.getDeviceId(), state);
} else {
log.warn("Device belongs to external partition {}" + tpi.getFullTopicName());
new RuntimeException("Device belongs to external partition " + tpi.getFullTopicName() + "!");
}
}

Loading…
Cancel
Save