Skip to content

Commit 7245b9d

Browse files
authored
Merge pull request #334 from Cumulocity-IoT/develop
Develop
2 parents 716118a + 1d6bfbb commit 7245b9d

File tree

10 files changed

+165
-289
lines changed

10 files changed

+165
-289
lines changed

dynamic-mapping-service/src/main/java/dynamic/mapping/connector/mqtt/MQTT3Callback.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public void accept(Mqtt3Publish mqttMessage) {
135135
}
136136
hasErrors = true;
137137
log.error(
138-
"{} - Error in processing context for topic: [{}], not sending ack to MQTT broker",
138+
"{} - Error in processing context for topic: [{}]",
139139
tenant, topic);
140140
break;
141141
}
@@ -151,7 +151,7 @@ public void accept(Mqtt3Publish mqttMessage) {
151151
} else if (httpStatusCode < 500) {
152152
// Errors found but not a server error, acknowledge the message
153153
log.warn(
154-
"{} - END: Sending manual ack for MQTT message: topic: [{}], QoS: {}, connector: {}",
154+
"{} - END: Sending manual ack due to non-Server error for MQTT message: topic: [{}], QoS: {}, connector: {}",
155155
tenant, mqttMessage.getTopic(), mqttMessage.getQos().ordinal(), connectorIdentifier);
156156
mqttMessage.acknowledge();
157157
} else {

dynamic-mapping-service/src/main/java/dynamic/mapping/connector/mqtt/MQTT5Callback.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public void accept(Mqtt5Publish mqttMessage) {
135135
}
136136
hasErrors = true;
137137
log.error(
138-
"{} - Error in processing context for topic: [{}], not sending ack to MQTT broker",
138+
"{} - Error in processing context for topic: [{}]",
139139
tenant, topic);
140140
break;
141141
}
@@ -151,7 +151,7 @@ public void accept(Mqtt5Publish mqttMessage) {
151151
} else if (httpStatusCode < 500) {
152152
// Errors found but not a server error, acknowledge the message
153153
log.warn(
154-
"{} - END: Sending manual ack for MQTT message: topic: [{}], QoS: {}, connector: {}",
154+
"{} - END: Sending manual ack due to non-Server error for MQTT message: topic: [{}], QoS: {}, connector: {}",
155155
tenant, mqttMessage.getTopic(), mqttMessage.getQos().ordinal(), connectorIdentifier);
156156
mqttMessage.acknowledge();
157157
} else {

dynamic-mapping-service/src/main/java/dynamic/mapping/processor/inbound/DispatcherInbound.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,13 @@ public List<ProcessingContext<?>> call() throws Exception {
195195
try {
196196
contextSemaphore.acquire();
197197
graalsContext = setupGraalVMContext(this.graalsEngine);
198-
// context.setGraalsContext(graalsContext);
198+
context.setGraalsContext(graalsContext);
199199
// context.setSharedSource(configurationRegistry.getGraalsSourceShared(tenant));
200200
// context.setSystemSource(configurationRegistry.getGraalsSourceSystem(tenant));
201201
// context.setMappingSource(configurationRegistry.getGraalsSourceMapping(tenant, mapping.id));
202202
context.setSharedCode(serviceConfiguration.getCodeTemplates()
203203
.get(TemplateType.SHARED.name()).getCode());
204-
context.setSystemCode(serviceConfiguration.getCodeTemplates()
204+
context.setSystemCode(serviceConfiguration.getCodeTemplates()
205205
.get(TemplateType.SYSTEM.name()).getCode());
206206
} catch (Exception e) {
207207
handleGraalVMError(tenant, mapping, e, context, mappingStatus);

0 commit comments

Comments
 (0)