PatrykGala commented on code in PR #962:
URL: https://github.com/apache/plc4x/pull/962#discussion_r1208525245
##########
plc4j/drivers/opcua/src/main/java/org/apache/plc4x/java/opcua/protocol/OpcuaProtocolLogic.java:
##########
@@ -195,7 +195,7 @@ public CompletableFuture<PlcReadResponse>
read(PlcReadRequest readRequest) {
future.complete(new DefaultPlcReadResponse(request,
status));
return;
}
- } catch (ParseException e) {
+ } catch (Exception e) {
Review Comment:
The uncaught PlcUnsupportedDataTypeException thrown by PlcValueHandler
prevents the CompletableFuture from completing, causing the thread to hang on
CompletableFuture.get(). By making this change, the test will now complete with
an Exception instead of hanging indefinitely.
--
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]