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
When I start claudb with persistence enabled and then I quit claudb (and I can see both AOF and RDB files in the directory) , once restarted it looks like claudb overwrite the old files and in this way everything cached in the past is lost
The text was updated successfully, but these errors were encountered:
It seems that there's an issue when claudb restores the state using redo file. It seems that rdb file is restored correctly
Exception in thread "main" java.lang.ClassCastException: com.github.tonivade.resp.protocol.AbstractRedisToken$StringRedisToken cannot be cast to com.github.tonivade.resp.protocol.AbstractRedisToken$ArrayRedisToken
at com.github.tonivade.claudb.persistence.PersistenceManager.importRedo(PersistenceManager.java:107)
at com.github.tonivade.claudb.persistence.PersistenceManager.start(PersistenceManager.java:60)
at com.github.tonivade.purefun.type.Option.ifPresent(Option.java:82)
at com.github.tonivade.claudb.ClauDB.start(ClauDB.java:79)
at com.github.tonivade.resp.RespServer.start(RespServer.java:90)
at com.github.tonivade.claudb.Server.main(Server.java:50)
The commands are in this format:
- database
- command
- parameters
Then when the server starts, should execute first an select command and
finally then execute the real command
It seems that after master/slave replication was implemente, the AOF
file parse was broken
When I start claudb with persistence enabled and then I quit claudb (and I can see both AOF and RDB files in the directory) , once restarted it looks like claudb overwrite the old files and in this way everything cached in the past is lost
The text was updated successfully, but these errors were encountered: