Opened 7 months ago

#1605 new defect

JGDI updateJob() tries to update extra attributes

Reported by: nicoulaj Owned by:
Priority: normal Milestone:
Component: sge Version: 8.1.9
Severity: minor Keywords: jgdi
Cc:

Description

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);

I get:

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.

Change History (0)

Note: See TracTickets for help on using tickets.