Opened 2 weeks ago
JGDI updateJob() tries to update extra attributes
|Reported by:||nicoulaj||Owned by:|
Trying to update a single attribute on a job using JGDI, for instance:
final Job job = jgdi.getJob(jobId); job.setPriority(1024 + newPriority); jgdi.updateJob(job);
com.sun.grid.jgdi.JGDIException: nicoulaj at cluster sets job functional ticket share of job 6651842.1 to 0 nicoulaj at cluster sets override tickets of job 6651842 to 0 nicoulaj at cluster sets scheduling priority of job 6651842 to 288 nicoulaj at cluster sets job share of job 6651842 to 0 nicoulaj at cluster sets job advance reservation of job 6651842 to 0 job rejected: the user "nicoulaj" is no deadline initiation user
Tested on SGE 6.2u5 and SoGE 8.1.9.
From a little bit of digging, it seems like at some point in the native JGDI code, the attributes using primitive values are initialized to 0 instead of a null value when unset. As a result updateJob() thinks they have been updated.