gustavoschewinski commented on issue #125: URL: https://github.com/apache/plc4x-extras/issues/125#issuecomment-2346601805
Hello @chrisdutz, I have some updates regarding the issue. I could find the problem and do a quick fix. In `TriggeredScraperImpl.java`, the `getPlcConnection` function doesn’t get the correct `requestTimeoutMs` (as shown below), and it doesn’t have the default value mentioned on the website and in the OPC UA driver configuration. This is what was causing the timeout: ``` [2024-09-12 14:54:33,911] INFO SCRAPER DEBUG: request timeout before: 2000 (org.apache.plc4x.java.scraper.triggeredscraper.TriggeredScraperImpl) [2024-09-12 14:54:33,911] INFO SCRAPER DEBUG: request timeout after: 30000 (org.apache.plc4x.java.scraper.triggeredscraper.TriggeredScraperImpl) --> This value is hard-coded. ``` I fixed it by hard-coding the request timeout, and it worked for about 5 minutes, but then it started creating sessions every 2 seconds (see the image below).  Do you know why the values from the OPC UA driver don’t seem to pass to the scraper? I’d like to fix this for the community, but I’m still a bit lost with all the dependencies, which makes testing difficult. Also, do you have any idea what’s causing the session issue? I don’t see this problem when using OPC UA Java by itself, only when using it with the Kafka connector. I’d like to resolve this for the community too, but I’m still unsure where the issue lies. Thanks, and sorry for the continued messages, reply whenever you have time :) Best regards, Gustavo -- 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]
