1. 25 May, 2017 5 commits
    • Tim Wickberg's avatar
      Prevent a race between completing jobs on a user-exclusive node from · a02d04f1
      Tim Wickberg authored
      leaving the node owned.
      
      Two jobs completing simultaneously leads to make_node_idle()
      returning before it has a chance to decrement node_ptr->owner_job_cnt,
      which can result in the node being "owned" by that user even
      through no jobs are running on it.
      
      Move the decrement block to the end at a fini label, and make sure
      all return paths pass through it. While moving that add a guard
      against node_ptr->owner_job_cnt underflowing.
      
      Bug 3771.
      a02d04f1
    • Tim Wickberg's avatar
      Prevent a job tested on multiple partitions from being marked · 9128476a
      Tim Wickberg authored
      WHOLE_NODE_USER.
      
      If a job is considered on a partition with ExclusiveUser=YES
      then it would be marked as if it was submitted with the
      --exclusive flag, which would lead to delays launching it
      on ExclusiveUser=NO partitions, and cause lower-than-expected
      cluster usage.
      
      As a side effect, the job_ptr->part_ptr->flags need to be
      tested wherever WHOLE_NODE_USER is considered, instead of
      just job_ptr->details->whole_node.
      
      Bug 3771.
      9128476a
    • Alejandro Sanchez's avatar
      Fix WithSubAccounts option to not include WithDeleted unless requested. · 29ebc4b2
      Alejandro Sanchez authored
      _setup_assoc_cond_limits was using the table 'prefix' passed by argument
      in the where clause to select the where clause prefix.deleted=something.
      
      It turns out that _setup_assoc_cond_limits is called by these functions:
      as_mysql_modify_assocs
      as_mysql_remove_assocs
      as_mysql_get_assocs
      as_mysql_acct_no_users
      
      which set the prefix to 't2' before the call if a QOS is provided or if
      WithSubAccounts is provided. The 't2' prefix is fine for other where
      conditions in that case, but for choosing the deleted we need the t1
      which is the table we're selecting the records off.
      
      Bug 3835
      29ebc4b2
    • Alejandro Sanchez's avatar
    • Tim Shaw's avatar
      Correction to capmc JSON formatting · c4a64107
      Tim Shaw authored
      c4a64107
  2. 24 May, 2017 10 commits
  3. 23 May, 2017 5 commits
  4. 22 May, 2017 1 commit
  5. 19 May, 2017 9 commits
  6. 18 May, 2017 3 commits
  7. 17 May, 2017 6 commits
  8. 16 May, 2017 1 commit