Skip to content

Data_id reached maximum value #78

@OxyMethylene

Description

@OxyMethylene

Hey

So today we got this error spamming on console..
[HawkEye] Exception: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value for column 'data_id' at row 1

I checked the maximum value from data_id and it was indeed at max value of an integer. So I've updated all id's to a lower value (current data_id - (min data_id - 1)) which worked fine for the database. They all changed, maximum value is now at 120 million, but when i started the server back up, it gave the same error again. Even if the maximum value is way under the maximum value of an integer.

I have a backup of the old database, so I can restore at any time, but how to reset the data_id the plugin is using?

Greetings Oxy.

Edit:
Database before: http://prntscr.com/d9xdxw
Database after edit: http://prntscr.com/d9xe2y

We are running a 1.7.10 FTb Infinity server, HawkEye version 1.0.7b

Edit 2:
I currently have it fixed. Forgot to reset the auto_increment value of the table.
But maybe best to keep in mind that some servers can cap an integer id :D

(We delete records older then 2 weeks every day and we still have 110mil records.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions