How to stop the data source when a DM worker encounters error 38008

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: dm一个worker出现38008错误,如何停止该数据源

| username: Jjjjayson_zeng

[TiDB Usage Environment] Production Environment
[TiDB Version] dm v5.4.0
[Reproduction Path] Operations performed that led to the issue
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]
As shown in the image, an error is reported for a data source, and I want to stop it.
It shows that the task needs to be stopped first.
However, the task reports error 38045 and still cannot be stopped.
Obviously, operate-source show is also stuck, and I don’t know which worker it is bound to.

| username: Jjjjayson_zeng | Original post link

Waited for a long time, and then the worker appeared.

| username: liuis | Original post link

Last week, I also saw someone asking the same question dm错误38008 - #8,来自 Jjjjayson_zeng - TiDB 的问答社区. Restarting resolved it. Check if the resources of the work node are insufficient.

| username: Jjjjayson_zeng | Original post link

Thank you for your reply. Since this issue occurs every week during testing, I am considering upgrading the version. However, the worker is currently stuck and cannot be upgraded, which is quite frustrating. Also, how can I estimate the hardware requirements for DM? I am not sure about it right now.

| username: liuis | Original post link

Sorry, I didn’t notice it was your post before. It seems like you might not have enough resources. If that’s the case, just add more resources.