Skip to content

Low Priority - Issue creating accounts simultaneously on different devices #21

@hdsbbrooks

Description

@hdsbbrooks

Low Priority - Issue creating accounts simultaneously on different devices
This year we started using multiple computers in different rooms to speed up the login process. We ran into an issue during the account creations process wherein new accounts over-write each other.

I meant to get around to writing, testing and contributing a fix to this before build season but I didn't manage to get around to it. I'm posting this here just in case anyone else plans to run multiple kiosks. I plan to add some validation to fix this issue, but won't be able to write and contribute it back until after the 2022 build season.

To Reproduce
Steps to reproduce the behavior:

  1. Have grizzly time running on two separate machines.
  2. Create two accounts at the same time on each machine.
  3. If you watch the spreadsheet during this processing you can see one account being overwritten by the other on the main profile page.

Workaround
Only allow students to create accounts on a single machine. Once accounts are created having students log-in across different machines works fine.

Cause
I suspect the issue is a race condition caused by grizzly time grabbing a duplicate "blank" row number in the createNewUser method before a previous write has finished. I have not tested this supposition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions