Skip to content

Quest progress is not atomic when two events for one character run in parallel #3265

Closed

Description

@erwan-joly

Every quest progress path in QuestService updates an objective and then decides whether the quest is complete, with nothing that serialises two events for the same character. This covers kills, captures, collects and enemy-player defeats. If two events for one character run on different threads, both can see the quest as just completed and both can call CompleteQuestAsync, which would grant the reward twice. For example, an area skill could kill the last two monsters at once, or two enemy players could be defeated at the same moment in Glacernon.

CompleteQuestAsync doesn't refuse a second call, so a fix belongs in QuestService for all paths at once. One option is a per-character gate around progress plus completion, or an atomic claim on ObjectivesCompletedOn. A test should fire two concurrent events and check that the reward is given once.

This came up in the review of #3262.

Activity

  1. added a commit that references this issue on Nov 15, 2026
    adbcfb3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions