Skip to content

How to migrate data from old versions to new one?

Yi Lin edited this page Mar 1, 2024 · 8 revisions

Problem:

TickTockDB v0.20 uses a new binary format and it is not backward compatible. If you are upgrading TickTockDB from an old version to v0.20, TickTockDB will require you to manually migrate your old data to the new binary format. Otherwise, TickTockDB will exit immediately, as the following.

ylin30@rpi4:~/ticktock $  TickTockDB v0.20.0,  Maintained by
 Yongtao You (yongtao.you@gmail.com) and Yi Lin (ylin30@gmail.com).
 This program comes with ABSOLUTELY NO WARRANTY. It is free software,
 and you are welcome to redistribute it under certain conditions.
 For details, see <https://www.gnu.org/licenses/>.
Initialization failed: ticktockdb.version config missing; TickTockDB version mismatch!

[1]+  Exit 9                  ./bin/tt -c conf/tt.conf --tsdb.timestamp.resolution millisecond --http.server.port 6182,6183 --http.listener.count 8,8
ylin30@rpi4:~/ticktock $

How to migrate data:

Basically, you need to read the old data with a program(Inspect), and generate a list of write statements, and send the statements to the new TickTockDB v0.20.

Clone this wiki locally