Question
Observing stale thread when executing data flow program
we are using Pega 7.3.1 and PM 7.31. In our production, we could see observe below error while data flow run is in progress.
Error : 2019-12-02 11:58:52,367 [Flow.Default-Pulse:6] [ STANDARD] [ ] [ ] (.AtLeastOnceResilienceStrategy) ERROR - Detected stale thread on node [ddf-XX.XXX.X.XX]
PFA, for logs. we had to restart the servers in order to fix that issue which is not good solution i feel.
we had gone through similar issue in https://community.pega.com/support/support-articles/dataflowstalethreadexception-stale-thread-detected where in solution was not suggested.
How do we prevent/fix this issue in future. Please suggest
Could you please attach complete logs.
The data flow has a mechanism that is executed frequently for maintenance which is called Pulse. During the Pulse, one of the operations executed is a Stale Thread detection in which the system identifies threads that are potentially stuck, either in as an infinite loop or waiting for a response from an external service such as a database call.
You might want to first check the reason for the stale thread.