cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Why TransferExecutor rejected a FileCopyTask sometimes?

htran-21
15-Moonstone

Why TransferExecutor rejected a FileCopyTask sometimes?

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

1 REPLY 1
htran-21
15-Moonstone
(To:htran-21)

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

Top Tags