Bug 1006745 - getSubmissionID: wrong list for big parameter "size"
Summary: getSubmissionID: wrong list for big parameter "size"
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: condor-aviary
Version: Development
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: grid-maint-list
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-11 08:44 UTC by Martin Kudlej
Modified: 2016-05-26 19:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-26 19:11:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Martin Kudlej 2013-09-11 08:44:25 UTC
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 19:11:23 UTC
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.