You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've failed with usage of monotonic clock on linux within distributed system.
In general monotonic clock specified as "monotonic time since some unspecified starting point". On some system it equals to unix timestamp. But on other it contains in fact uptime of system. So, just by machine reboot (or having several replicated nodes) time consistency became broken
Clock will be changed to realtime clock.
I will consider timestamps, earlier than 10 years ago as monotonic timestamps
to avoid deletion of data with ttl tasks or early fireups of delayed tasks
(I don't believe in hosts with 10y uptime running tarantool with xqueue)
It is recommeded to upgrage all runat fields.
for updating space the following snipped may be used
localsp=box.space.spacenamelocalix=sp.index.runatlocalfn=ix.parts[1].fieldnolocalclock=require'clock'locallog=require'log'whiletruedolocalc=0for_,tinix:pairs({ 0 }, { iterator='GT' }):take(100) doift[fn] >10*365*86400thenbreakendlocalnewval=t[fn] -clock.monotonic() +clock.realtime()
ifnewval<10*365*86400thenerror("Failed to correct runat") endlog.info("Fix %s time %s to %s",t[1],t[fn], newval)
sp:update({t[1]},{{'=',fn, newval }})
c=c+1endifc==0thenbreakend;
end
The text was updated successfully, but these errors were encountered:
I've failed with usage of monotonic clock on linux within distributed system.
In general monotonic clock specified as "monotonic time since some unspecified starting point". On some system it equals to unix timestamp. But on other it contains in fact uptime of system. So, just by machine reboot (or having several replicated nodes) time consistency became broken
Clock will be changed to realtime clock.
I will consider timestamps, earlier than 10 years ago as monotonic timestamps
to avoid deletion of data with ttl tasks or early fireups of delayed tasks
(I don't believe in hosts with 10y uptime running tarantool with xqueue)
It is recommeded to upgrage all runat fields.
for updating space the following snipped may be used
The text was updated successfully, but these errors were encountered: