adequate
adequate
adequate
adequate
 

JPPF
 Home   About   Download   Documentation   Forums 
June 19, 2013, 10:32:20 AM *
Welcome,
Please login or register.

Login with username, password and session length
Advanced search  
News: Registered users, your contribution is requested! Please participate in our JDK support poll
New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]   Go Down

Author Topic: Bug in Cancelling jobs on nodes  (Read 417 times)

Tzbob

  • JPPF Knight
  • **
  • Posts: 18
Bug in Cancelling jobs on nodes
« on: April 25, 2012, 04:33:39 PM »

Code: [Select]
public void cancelJob(JPPFJob job) throws Exception{
JMXDriverConnectionWrapper drvCon = ((JPPFClientConnectionImpl) client.getClientConnection()).getJmxConnection();

if (drvCon.isConnected()) drvCon.cancelJob(job.getUuid());
}

With client being a JPPFClient instance. This cancel method runs without any errors but the behavior is very weird.

Lets say I run job A and cancel it before it completes. The method returns without Exceptions.
After running and cancelling job A I run job B. Both jobs hold the same type of tasks.

Job B returns instantly with the results that job A should have given.

It seems like cancelling the job does not remove it from the queue.

This problem occurs in all kinds of scenarios. I used blocking and non-blocking jobs and submitted JPPFTasks and regular Callables.

Should I list this as a bug somewhere or am I doing something wrong in cancelling the job?
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 1472
    • JPPF Web site
Re: Bug in Cancelling jobs on nodes
« Reply #1 on: April 26, 2012, 08:39:26 PM »

Hi Bob,

Thanks for your report. I can reproduce the very same issue on my side, and registered it as a JPPF bug: 3521725 - Cancelling a job causes the server to keep the job in queue.
I am working on a fix and will integrate it as part of patch 01 for JPPF 3.0.1

Sincerely,
-Laurent
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 1472
    • JPPF Web site
Re: Bug in Cancelling jobs on nodes
« Reply #2 on: April 26, 2012, 09:40:43 PM »

Hello again,

The fix is now available there: http://www.jppf.org/patch_info.php?patch_id=19

Sincerely,
-Laurent
Logged

Tzbob

  • JPPF Knight
  • **
  • Posts: 18
Re: Bug in Cancelling jobs on nodes
« Reply #3 on: April 27, 2012, 04:49:23 PM »

I can confirm that everything cancels as it should after the patch.

Thanks for the quick reply!
Logged
Pages: [1]   Go Up
 
Support This Project Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Powered by Parallel Matters Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads