[SERVER-85314] schedule_patch_autotasks does not depend on schedules_global_autotasks anymore Created: 17/Jan/24  Updated: 29/Jan/24  Resolved: 18/Jan/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Simon Eismann Assignee: John Daniels
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

schedule_patch_autotasks requires schedules_global_autotasks to run first. It seems we have somehow lost this dependency, causing schedule_patch_autotasks to fail. For example, here or here



 Comments   
Comment by Githook User [ 17/Jan/24 ]

Author:

{'name': 'John Daniels', 'email': 'john.daniels@mongodb.com', 'username': 'johndaniels'}

Message: SERVER-85314: Fix schedule_patch_auto_tasks dependencies. (#18104)

GitOrigin-RevId: 211d00955ee5d7557f02e8df44dc127a54c2a7e7
Branch: master
https://github.com/mongodb/mongo/commit/ce25316d4675bb0b3e169204967e92e4c8375fda

Comment by Memento Slack Bot [ 17/Jan/24 ]

Slack Thread captured from #privategroup by simon.eismann@mongodb.com

  • lungang.fang@mongodb.com: I am trying to re-run the task schedule_patch_auto_tasks:
    ```[2024/01/17 13:33:21.654] Command 'generate.tasks' in function 'f_schedule_tasks' (step 1.4 of 1) failed: polling for generate tasks job: error translating project: error translating project: evaluating task selector: connections_buildup: nothing named 'connections_buildup'

[2024/01/17 13:33:21.654] connections_buildup: nothing named 'connections_buildup'.```
Any idea?

Comment by Memento Slack Bot [ 17/Jan/24 ]

Slack Thread captured from #performance-tooling-users by simon.eismann@mongodb.com

  • nandini.bhartiya@mongodb.com: Hello, I am trying to run a new genny workload, but I see `System Failed` errors while running the the `schedule_patch_auto_tasks` task.
    Am I missing some steps to get my new workload configured correctly ? Followed these instructions
    ```
    [2024/01/16 18:30:13.074] Command 'generate.tasks' in function 'f_schedule_tasks' (step 1.4 of 1) failed: polling for generate tasks job: error translating project: error translating project: evaluating task selector: update_one_without_shard_key_with_id: nothing named 'update_one_without_shard_key_with_id'
    [2024/01/16 18:30:13.074] update_one_without_shard_key_with_id: nothing named 'update_one_without_shard_key_with_id'.
    [2024/01/16 18:30:13.074] Finished command 'generate.tasks' in function 'f_schedule_tasks' (step 1.4 of 1) in 643.241737ms.
    [2024/01/16 18:30:13.074] Running task commands failed: running command: command failed: polling for generate tasks job: error translating project: error translating project: evaluating task selector: update_one_without_shard_key_with_id: nothing named 'update_one_without_shard_key_with_id'
    [2024/01/16 18:30:13.074] update_one_without_shard_key_with_id: nothing named 'update_one_without_shard_key_with_id'
    [2024/01/16 18:30:13.074] Finished running task commands in 1m54.684792862s.
    [2024/01/16 18:30:13.087] Task completed - FAILURE.```
  • ahmad.shah@mongodb.com: Can you please link your patch
  • nandini.bhartiya@mongodb.com: Patch
  • ahmad.shah@mongodb.com: I think you accidentally linked the documentation, or is that error you're seeing from a local run?
  • nandini.bhartiya@mongodb.com: Sorry - it is here
  • ahmad.shah@mongodb.com: I'm not 100% sure whats going on :meow_sad: , your patch looks fine to me
  • ahmad.shah@mongodb.com: Trying to replicate the issue here
  • james.littlejohn@mongodb.com: john.daniels@mongodb.com is this potentially related to the work you've been doing in this area?
  • ahmad.shah@mongodb.com: Can confirm I get the same error as well.
  • simon.eismann@mongodb.com: schedule_patch_autotasks requires schedules_global_autotasks to run first. It seems we have somehow lost this dependency :sweat_smile:

I’ve manually reconfigured Ahmad’s patch to first run schedules_global_autotasks, then restarted schedule_patch_autotasks and it completed successfully. nandini.bhartiya@mongodb.com Could you check if this workaround works for you as well?

I’ve opened DEVPROD-3830 to fix this issue. john.daniels@mongodb.com Could you take a look at this issue? It likely is related to your changes around auto-generated tasks.

Generated at Thu Feb 08 06:57:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.