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

Drupal reassigns node IDs #1215

Closed
mjordan opened this issue Jul 11, 2019 · 3 comments
Closed

Drupal reassigns node IDs #1215

mjordan opened this issue Jul 11, 2019 · 3 comments

Comments

@mjordan
Copy link
Contributor

mjordan commented Jul 11, 2019

I have narrowed down circumstances in which Drupal reassigns node IDs. The conditions for this to happen are that that no nodes exist (in other words, the highest node ID value at the time is 0), and it only happens just after you boot the Vagrant. You can replicate this behavior by doing the following:

  1. delete all nodes from your Vagrant and vagrant halt it.
  2. vagrant up it.
  3. create a new node (content type doesn't matter).
  4. it will have the node ID of 1.

I am assuming that this behavior is a side effect of how MySQL's autoincrement fields work, so it should not be a problem in production (where you wouldn't be restarting at 0). But, at least I can say I was not imagining this.

not crazy

@dannylamb
Copy link
Contributor

Wow...

Artifact of mysql peculiarities plus virtualization subtleties...

That's a scary one.

@mjordan
Copy link
Contributor Author

mjordan commented Jul 11, 2019

Could also explain things @manez was describing, since orphaned media would be associated with a node ID that was reused.

@mjordan
Copy link
Contributor Author

mjordan commented Jul 17, 2019

Closed during July 17 tech call.

@mjordan mjordan closed this as completed Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants