aldettinger commented on a change in pull request #3681:
URL: https://github.com/apache/camel-quarkus/pull/3681#discussion_r839610460
##########
File path:
integration-tests/paho/src/main/java/org/apache/camel/quarkus/component/paho/PahoResource.java
##########
@@ -87,4 +88,11 @@ public String mqttExceptionDuringReconnectShouldSucceed() {
return mqex.getMessage();
}
+ @Path("/readThenWriteWithFilePersistenceShouldSucceed")
+ @GET
+ @Produces(MediaType.TEXT_PLAIN)
+ public String
readThenWriteWithFilePersistenceShouldSucceed(@QueryParam("message") String
message) throws Exception {
+
producerTemplate.requestBody("paho:withFilePersistence?retained=true&cleanSession=false&persistence=FILE",
message);
Review comment:
A theroy could be that the lock is not being released (in native mode
only then):
https://github.com/eclipse/paho.mqtt.java/blob/master/org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/internal/FileLock.java#L76
Maybe, I messed up the reflection config and
`fileLock.getClass().getMethod("release",new Class[]{});` is throwing ?
##########
File path:
integration-tests/paho/src/main/java/org/apache/camel/quarkus/component/paho/PahoResource.java
##########
@@ -87,4 +88,11 @@ public String mqttExceptionDuringReconnectShouldSucceed() {
return mqex.getMessage();
}
+ @Path("/readThenWriteWithFilePersistenceShouldSucceed")
+ @GET
+ @Produces(MediaType.TEXT_PLAIN)
+ public String
readThenWriteWithFilePersistenceShouldSucceed(@QueryParam("message") String
message) throws Exception {
+
producerTemplate.requestBody("paho:withFilePersistence?retained=true&cleanSession=false&persistence=FILE",
message);
Review comment:
A theory could be that the lock is not being released (in native mode
only then):
https://github.com/eclipse/paho.mqtt.java/blob/master/org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/client/internal/FileLock.java#L76
Maybe, I messed up the reflection config and
`fileLock.getClass().getMethod("release",new Class[]{});` is throwing ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]