-
Notifications
You must be signed in to change notification settings - Fork 909
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
domains table notified_serial needs bigint instead of integer #6815
Milestone
Comments
Wanted check on the progress On this issue. |
There's no progress, but I've moved it from 4.1.x to 4.2.0 so that we will likely look at it soon. |
MSSQL mildly suffers from this issue - in 4.2, it still does the mapping to negative like older versions of pdns did with postgres, so it does not error. |
Habbie
added a commit
to Habbie/pdns
that referenced
this issue
Jul 17, 2019
8 tasks
#8097 for postgres |
Habbie
changed the title
domains table notified_serial needs bigint instead of interger
domains table notified_serial needs bigint instead of integer
Jul 17, 2019
Habbie
added a commit
to Habbie/pdns
that referenced
this issue
Jul 25, 2019
Habbie
added a commit
to Habbie/pdns
that referenced
this issue
Jul 26, 2019
(cherry picked from commit 1953ba2)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Short description
It seems there was a change from PDNS 4.0 to PDNS 4.1 (or even earlier) how serials in the range from 2^31 - 2^32-1 were handled.
Old version: internally the notified_serial was treated as unsigned, but when written into the DB, it was stored as INTEGER (signed). Hence, serials > 2^31 where stored as negative values. When read from DB the notified_serial was transparently converted again into the correct unsigned value.
PDNS 4.1: now the database code wants to write the unsigned type as unsigned type into the DB, and this fails (testet with Postgresql backend):
Further, reading the old-style negative values will fail to:
Fix new installations:
Fix existing installations:
Environment
The text was updated successfully, but these errors were encountered: