Super-sized Epoch

Moderator: NorbertKrupa

Post Reply
User avatar
Josh
Intermediate
Intermediate
Posts: 106
Joined: Thu Jan 26, 2012 9:38 pm

Super-sized Epoch

Post by Josh » Thu Feb 27, 2014 5:01 pm

This may be a dumb question, but what happens when the current epoch reaches a value of 9223372036854775807, the largest value that Vertica can store in an INT field?

I'm getting awfully close:

Code: Select all

dbadmin=> select get_current_epoch();
 get_current_epoch 
--------------------------------
             9012381236543125234
(1 row)
Thank you!
Joshua

NorbertKrupa
GURU
GURU
Posts: 527
Joined: Tue Oct 22, 2013 9:36 pm
Location: Chicago, IL
Contact:

Re: Super-sized Epoch

Post by NorbertKrupa » Thu Feb 27, 2014 5:36 pm

I suppose that since it's a signed integer, it could over flow into a negative integer. I would guess there would be a mechanism that would start it back at zero though. I'm curious as to how it actually works though and whether your cluster blows up.
Checkout vertica.tips for more Vertica resources.

scutter
Master
Master
Posts: 302
Joined: Tue Aug 07, 2012 2:15 am

Re: Super-sized Epoch

Post by scutter » Thu Feb 27, 2014 7:41 pm

That’s one heck of a large number of epochs. How did it get to be so high? I think the theory in engineering is that you would never run out of epoch numbers. I wouldn’t assume that something benign will happen if you get there. Is your epoch rate really increasing at a rate that you’d reach the limit? If yes…what are you doing with that cluster :-)

—sharon
Sharon Cutter
Vertica Consultant, Zazz Technologies LLC

User avatar
Josh
Intermediate
Intermediate
Posts: 106
Joined: Thu Jan 26, 2012 9:38 pm

Re: Super-sized Epoch

Post by Josh » Fri Feb 28, 2014 2:29 pm

Hi,

I was just kidding about the size of my current epoch (I edited the output) :lol: I just wanted to see if someone was actually reading my posts. But on a serious note, I am very curious if anyone knows what would happen if we actually reach the epoch size limit that we're never supposed to be able to reach! Never had that before... (Everyone forgets Y2K).

Thanks for responding!
Thank you!
Joshua

User avatar
JimKnicely
Site Admin
Site Admin
Posts: 1825
Joined: Sat Jan 21, 2012 4:58 am
Contact:

Re: Super-sized Epoch

Post by JimKnicely » Fri Feb 28, 2014 5:56 pm

This is what will happen to your host server when your epoch reaches 9223372036854775808:
  • OUCH.png
    OUCH.png (147.21 KiB) Viewed 12333 times
Jim Knicely

Image

Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.

NorbertKrupa
GURU
GURU
Posts: 527
Joined: Tue Oct 22, 2013 9:36 pm
Location: Chicago, IL
Contact:

Re: Super-sized Epoch

Post by NorbertKrupa » Tue Mar 04, 2014 12:45 am

According to my trainer, even if the epoch is refreshed a few times per second, it would take some 18,000 years before it overflows/explodes
Checkout vertica.tips for more Vertica resources.

User avatar
Josh
Intermediate
Intermediate
Posts: 106
Joined: Thu Jan 26, 2012 9:38 pm

Re: Super-sized Epoch

Post by Josh » Wed Mar 05, 2014 2:03 pm

it would take some 18,000 years before it overflows/explodes
Ok, I feel a lot safer now as I won't be around then :)
Thank you!
Joshua

Post Reply

Return to “New to Vertica”