Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hi,
I wonder why the TransferExecutor sometimes rejected a FileCopyTask when active threads are still less than pool size
JavaException: java.util.concurrent.RejectedExecutionException: Task com.thingworx.system.subsystems.filetransfer.engine.FileCopyTask@659cadf7 rejected from com.thingworx.system.subsystems.filetransfer.engine.TransferExecutor@1d58682b[Running, pool size = 50, active threads = 16, queued tasks = 1, completed tasks = 100193]
...
JavaException: java.util.concurrent.RejectedExecutionException: Task com.thingworx.system.subsystems.filetransfer.engine.FileCopyTask@75ec5668 rejected from com.thingworx.system.subsystems.filetransfer.engine.TransferExecutor@1d58682b[Running, pool size = 50, active threads = 0, queued tasks = 0, completed tasks = 101136]
{
"async": false,
"sourceRepo": "DEVICE_225016",
"targetRepo": "ABCD",
"targetFile": "test225016.txt",
"targetPath": "/",
"sourceFile": "test.txt",
"sourcePath": "/ABCD",
"timeout": 600
}
Any comment would be highly appreciated.
My Bests,
Hung Tran
Hi,
There were 188 such errors, transfer tasks were rejected when active threads was just 3
JavaException: java.util.concurrent.RejectedExecutionException: Task com.thingworx.system.subsystems.filetransfer.engine.FileCopyTask@45c855fc rejected from com.thingworx.system.subsystems.filetransfer.engine.TransferExecutor@11865eb9[Running, pool size = 100, active threads = 3, queued tasks = 1, completed tasks = 691071]
My Bests,
Hung Tran