Bug 1006745 - getSubmissionID: wrong list for big parameter "size"
getSubmissionID: wrong list for big parameter "size"
Status: CLOSED WONTFIX
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: condor-aviary (Show other bugs)
Development
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: grid-maint-list
MRG Quality Engineering
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-11 04:44 EDT by Martin Kudlej
Modified: 2016-05-26 15:11 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-05-26 15:11:23 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Martin Kudlej 2013-09-11 04:44:25 EDT
Description of problem:
For some number ranges of "size" parameter of function getSubmissionID returns wrong list of submissions.
This happens only on 64 bits on both RHELs.

Right result:
In [45]: client.service.getSubmissionID(1)
Out[45]: 
(reply){
   ids[] = 
      (SubmissionID){
         _scheduler = "_hostname_"
         _pool = "_hostname_"
         name = "_hostname_#1"
         owner = "test"
         qdate = 1378886640
      },
   remaining = 0
 }

1) "Max int on 32 bits" + 1
In[44]: client.service.getSubmissionID(2147483648)
Out[44]: 
(reply){
   remaining = 1
 }

2) 
Right:
In [55]: cl.service.getSubmissionID(100000000000)
Out[55]: 
(reply){
   ids[] = 
      (SubmissionID){
         _scheduler = "_hostname_"
         _pool = "_hostname_"
         name = "_hostname_#1"
         owner = "test"
         qdate = 1378886640
      },
   remaining = 0
 }

*Wrong*:
In [54]: cl.service.getSubmissionID(1000000000000)
Out[54]: 
(reply){
   remaining = 1
 }

Right:
In [57]: cl.service.getSubmissionID(10000000000000)
Out[57]: 
(reply){
   ids[] = 
      (SubmissionID){
         _scheduler = "_hostname_"
         _pool = "_hostname__"
         name = "_hostname_#1"
         owner = "test"
         qdate = 1378886640
      },
   remaining = 0
 }



Version-Release number of selected component (if applicable):
condor-aviary-7.8.8-0.4.3.*.x86_64

How reproducible:
100%

Steps to Reproduce:
1. install condor, condor-aviary
2. submit simple job
3. try above examples

Actual results:
There is wrong submission list for some number ranges of parameter "size".

Expected results:
In case of x submission in list no matter of x value: 
a) size <= 0 will return empty list with remaining==x
b) size < x will return list of submissions(size) with remaining == x-size(depends on other params)
c) size >= x will return full list of submissions
Comment 1 Anne-Louise Tangring 2016-05-26 15:11:23 EDT
MRG-G is in maintenance only and only customer escalations will be addressed from this point forward. This issue can be re-opened if a customer escalation associated with this issue occurs.

Note You need to log in before you can comment on or make changes to this bug.