Register - Login
Views: 99802159
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
05-03-22 07:03:17 AM
Jul - General Chat - Well, that was interesting. New poll - New thread - New reply
Pages: 1 2Next newer thread | Next older thread
Xkeeper

Level: 263


Posts: 19901/25353
EXP: 297141034
For next: 1819419

Since: 07-03-07

Pronouns: they/them/????????

Since last post: 3 days
Last activity: 2 min.

Posted on 11-29-11 05:43:09 PM Link | Quote
Those of you who paid attention (like me) may have noticed that, for the past while, we only had one guest on at any given time.


Turns out that the auto_increment field for that row reached 16777216. It's also a MEDIUMINT, so it ran out of space. A new guest would only be added when the old one was deleted (after 5 minutes).


Needless to say this issue is fixed and we hopefully shouldn't have that particular issue again. (Oddly, this is the only instance of MEDIUMINT being used that I can recall.)

____________________
You might think that this layout is specifically EarthBound themed, but it might just be a reference to one of my favorite games.
Liliana
"A horrible person". That's what it says. "A horrible person."

We weren't even testing for that.


Level: NaN


Posts: 3453/-3841
EXP: NaN
For next: 0

Since: 07-23-07


Since last post: 10.3 years
Last activity: 10.1 years

Posted on 11-29-11 05:45:44 PM Link | Quote
Hah. I started to wonder if we somehow disappeared from search engines.

Weird bug... though I don't get it, what does this thing count?

____________________
Xkeeper

Level: 263


Posts: 19903/25353
EXP: 297141034
For next: 1819419

Since: 07-03-07

Pronouns: they/them/????????

Since last post: 3 days
Last activity: 2 min.

Posted on 11-29-11 05:47:35 PM Link | Quote
It's just a unique identifier for each guest, though it isn't tracked or updated. (Basically it's just a primary key for the sake of having a primary key.)

____________________
You might think that this layout is specifically EarthBound themed, but it might just be a reference to one of my favorite games.
Lyskar
12210
-The Chaos within trumps the Chaos without-
Level: 192


Posts: 10585/12211
EXP: 99321125
For next: 552446

Since: 07-03-07

From: 52-2-88-7

Since last post: 7.4 years
Last activity: 7.3 years

Posted on 11-29-11 05:52:27 PM Link | Quote
Stats
Time/Date
11-29-11 11:52:27 AM
Posts
10585
Days Here
1610
Level
152
Metal_Man88's Post
Guessing it'd make the most sense for it to eventually reset after filling up, but of course Acmlmboard is ancient code so such an idea probably was never thought of back when.

____________________
Life is not an either-or proposition.
Eisnaught - SSQ² - Mobius Roleplay - SSS
Adelheid


Posted on 11-29-11 06:03:38 PM Link | Quote
What exactly was just counting up here? I can't imagine why the functionality for counting the total number of unique visitors to ever visit would be tied to counting the number of guests currently visiting in any way that would cause this. Just... How.

____________________
Pay attention. This will be on the test.
Sukasa

Level: 123


Posts: 3554/4326
EXP: 20935706
For next: 295560

Since: 07-07-07


Since last post: 1.1 years
Last activity: 1.1 years

Posted on 11-29-11 06:09:28 PM Link | Quote
Probably just nobody ever expected the guest-view-count to reach 16.7 million?

____________________
Insert witty text here
Nicole

Disk-kun
Level: 146


Posts: 5423/6469
EXP: 38284774
For next: 228520

Since: 07-07-07

Pronouns: she/her
From: Boston, MA

Since last post: 78 days
Last activity: 1 day

Posted on 11-29-11 06:41:16 PM Link | Quote
I'm surprised this never happened before, but I guess in the past boards there weren't as many bots around as there are today...

____________________
Bloodstar
11360
Buy me a trip to the moon
So I can laugh at my mistakes


Post 9718/11363

Joined
07-06-07
Active
1 day ago
Posted on 11-29-11 07:00:40 PM Link | Quote
Originally posted by Nicole
I'm surprised this never happened before, but I guess in the past boards there weren't as many bots around as there are today...


It never happened on the board's first incarnation? I'm kinda surprised...

This reminds me of when view counts were stuck at 65535 for some certain huge threads. Ah well, I guess you have to bump into some weird issues to fix them sometimes...

____________________
1607 Days




9718 Posts




38410426 EXP




102868 EXP Next




5928 EXP per post




7.232 seconds Idle Time




Overall Ranking: 6
Nicole

Disk-kun
Level: 146


Posts: 5424/6469
EXP: 38284774
For next: 228520

Since: 07-07-07

Pronouns: she/her
From: Boston, MA

Since last post: 78 days
Last activity: 1 day

Posted on 11-29-11 07:03:30 PM Link | Quote
Originally posted by Bloodstar
Originally posted by Nicole
I'm surprised this never happened before, but I guess in the past boards there weren't as many bots around as there are today...


It never happened on the board's first incarnation? I'm kinda surprised...

Well, I just assumed it didn't happen because the way I read Xk's post it sounded like no one had run across this before.

____________________
Orlandu


Holy SwordsMan
Level: 137


Posts: 5543/5913
EXP: 30478744
For next: 394111

Since: 01-12-10

From: Las Vegas, NV

Since last post: 4.0 years
Last activity: 208 days

Posted on 11-29-11 07:04:23 PM (last edited by Orlandu at 11-29-11 04:04 PM) Link | Quote
If it had happened before, more than likely the table was just emptied out since it isn't vital and starts to repopulate anyway.

____________________
 
Xkeeper

Level: 263


Posts: 19908/25353
EXP: 297141034
For next: 1819419

Since: 07-03-07

Pronouns: they/them/????????

Since last post: 3 days
Last activity: 2 min.

Posted on 11-29-11 10:44:01 PM Link | Quote
It's hard to say if it would've been hit in prior boards, but Acmlm can definitely take a look at the old backup and see where it's at.

Otherwise, do remember that we've been here for about 3 years, now (the old board survived 4), and we're in an age where internet bots are a lot more common than they were back then.

____________________
You might think that this layout is specifically EarthBound themed, but it might just be a reference to one of my favorite games.
Sukasa

Level: 123


Posts: 3556/4326
EXP: 20935706
For next: 295560

Since: 07-07-07


Since last post: 1.1 years
Last activity: 1.1 years

Posted on 11-29-11 10:45:51 PM Link | Quote
Originally posted by Orlandu
If it had happened before, more than likely the table was just emptied out since it isn't vital and starts to repopulate anyway.


Not quite; the table didn't have 16.7 million rows, it's that the stored AUTO_INCREMENT value for the primary key hit the numeric limit of MEDIUMINT.

____________________
Insert witty text here
Xkeeper

Level: 263


Posts: 19910/25353
EXP: 297141034
For next: 1819419

Since: 07-03-07

Pronouns: they/them/????????

Since last post: 3 days
Last activity: 2 min.

Posted on 11-29-11 10:48:35 PM (last edited by Xkeeper at 11-29-11 07:49 PM) Link | Quote
To further clarify, here's how it works:


- Guests views page
- All entries with that connection's IP address are deleted
- All entries older than 5 minutes are deleted
- The guest's view is logged into the guest table and eats a auto-increment ID


The auto-incrementing ID counter would go up each time (it doesn't get reused or roll over on its own), so after 3+ years of abuse it finally pinned itself at the maximum value.



To give you an idea of the volume of bots, there are about 29 guests from varying IPs in the table right now, though it's impossible to say how many times they've loaded pages between them.

____________________
You might think that this layout is specifically EarthBound themed, but it might just be a reference to one of my favorite games.
Colin
Missing: One avatar. Will be restored at some point.

Post 9130/10052
Active
8.3 years ago
Posted on 11-30-11 04:00:12 AM Link | Quote
For once, internet bots have a purpose.

(Granted, MINOR bug, but still.)

____________________
Orlandu


Holy SwordsMan
Level: 137


Posts: 5551/5913
EXP: 30478744
For next: 394111

Since: 01-12-10

From: Las Vegas, NV

Since last post: 4.0 years
Last activity: 208 days

Posted on 11-30-11 01:16:22 PM Link | Quote
Originally posted by Xkeeper
To give you an idea of the volume of bots, there are about 29 guests from varying IPs in the table right now, though it's impossible to say how many times they've loaded pages between them.

Robots love Jul just as much as we humans do.

How much space did this field take up when full?

____________________
 
stag019

Red Koopa
Level: 26


Posts: 19/129
EXP: 91340
For next: 10935

Since: 09-11-11


Since last post: 5.6 years
Last activity: 2.1 years

Posted on 11-30-11 01:25:48 PM Link | Quote
It took up 3 bytes, same amount as when it's empty.

Someone should probably explain how auto_increment works, because there seems to be a lot of misconceptions in this thread. I'd do it, but I'm bad at explaining things.
Orlandu


Holy SwordsMan
Level: 137


Posts: 5562/5913
EXP: 30478744
For next: 394111

Since: 01-12-10

From: Las Vegas, NV

Since last post: 4.0 years
Last activity: 208 days

Posted on 11-30-11 01:47:39 PM Link | Quote
I was thinking of it backwards as a separate row per auto increment. But I know how it works, counting up for each new row inserted.

____________________
 
Xkeeper

Level: 263


Posts: 19918/25353
EXP: 297141034
For next: 1819419

Since: 07-03-07

Pronouns: they/them/????????

Since last post: 3 days
Last activity: 2 min.

Posted on 11-30-11 04:44:57 PM Link | Quote
Originally posted by Orlandu
I was thinking of it backwards as a separate row per auto increment. But I know how it works, counting up for each new row inserted.

The misconception here is that the ID was incrementing regardless of the fact that the previous entries were all deleted; by the time I fixed this bug there was only a single row in the table taking up about 1 K of space (most of it overhead from deletions).

____________________
You might think that this layout is specifically EarthBound themed, but it might just be a reference to one of my favorite games.
Orlandu


Holy SwordsMan
Level: 137


Posts: 5581/5913
EXP: 30478744
For next: 394111

Since: 01-12-10

From: Las Vegas, NV

Since last post: 4.0 years
Last activity: 208 days

Posted on 11-30-11 07:20:34 PM (last edited by Orlandu at 11-30-11 04:20 PM) Link | Quote
At least we're back up to our healthy dose of 30+ bots now.

I don't know why I was thinking of auto_increment as a rows of data. I remember VBulletin had a table that made a record for every new word that was posted.

____________________
 
Bloodstar
11360
Buy me a trip to the moon
So I can laugh at my mistakes


Post 9766/11363

Joined
07-06-07
Active
1 day ago
Posted on 11-30-11 11:16:19 PM Link | Quote
Now that I think about it, I did notice this - when I was checking user agents on another browser, I noticed I was the only guest.

I just chalked it up to thinking I was the only guest on the board at the time, though.

____________________
1608 Days




9766 Posts




38709527 EXP




728574 EXP Next




5945 EXP per post




7.181 seconds Idle Time




Overall Ranking: 6
Pages: 1 2Next newer thread | Next older thread
Jul - General Chat - Well, that was interesting. New poll - New thread - New reply


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

29 database queries, 1 query cache hits.
Query execution time: 0.100816 seconds
Script execution time: 0.048862 seconds
Total render time: 0.149679 seconds