Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual devices have statically assigned IDs #917

Merged
merged 1 commit into from Apr 22, 2024

Conversation

bjyoungblood
Copy link
Member

Virtual device IDs are currently unstable, as they are assigned as the
count of existing virtual devices + 1. This will also cause major issues
if a virtual device process ever crashes, as it will not be able to be
reregistered without restarting all virtual devices in the process tree.

Instead, IDs should be assigned by the API consumer at the time of
registration. This will assure that {:virtual, 1} doesn't switch
implementations with {:virtual, 2} because of a change in their
startup order.

Breaking change

Virtual device IDs are currently unstable, as they are assigned as the
count of existing virtual devices + 1. This will also cause major issues
if a virtual device process ever crashes, as it will not be able to be
reregistered without restarting all virtual devices in the process tree.

Instead, IDs should be assigned by the API consumer at the time of
registration. This will assure that `{:virtual, 1}` doesn't switch
implementations with `{:virtual, 2}` because of a change in their
startup order.

**Breaking change**
Copy link
Contributor

@jfcloutier jfcloutier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as advertised

@bjyoungblood bjyoungblood merged commit 3c579dd into main Apr 22, 2024
1 check passed
@bjyoungblood bjyoungblood deleted the virtual-device-static-ids branch April 22, 2024 16:04
@bjyoungblood bjyoungblood added the enhancement New feature or request label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants