Giter VIP home page Giter VIP logo

redis-on-rocks's Issues

编译报错

环境:ubuntu 22.04
已执行apt install liburing-dev
make的时候报错

/usr/bin/ld: ../deps/rocksdb/librocksdb.a(fs_posix.o): in function `rocksdb::CreateIOUring()':
/data/ccode/Redis-On-Rocks/deps/rocksdb/./env/io_posix.h:266: undefined reference to `io_uring_queue_init'
/usr/bin/ld: ../deps/rocksdb/librocksdb.a(fs_posix.o): in function `rocksdb::(anonymous namespace)::PosixFileSystem::Poll(std::vector<void*, std::allocator<void*> >&, unsigned long)':
/usr/include/liburing.h:745: undefined reference to `__io_uring_get_cqe'
/usr/bin/ld: ../deps/rocksdb/librocksdb.a(fs_posix.o): in function `rocksdb::(anonymous namespace)::PosixFileSystem::AbortIO(std::vector<void*, std::allocator<void*> >&)':
/data/ccode/Redis-On-Rocks/deps/rocksdb/env/fs_posix.cc:1117: undefined reference to `io_uring_get_sqe'
/usr/bin/ld: /data/ccode/Redis-On-Rocks/deps/rocksdb/env/fs_posix.cc:1126: undefined reference to `io_uring_submit'
/usr/bin/ld: ../deps/rocksdb/librocksdb.a(fs_posix.o): in function `rocksdb::(anonymous namespace)::PosixFileSystem::AbortIO(std::vector<void*, std::allocator<void*> >&)':
/usr/include/liburing.h:745: undefined reference to `__io_uring_get_cqe'
/usr/bin/ld: ../deps/rocksdb/librocksdb.a(io_posix.o): in function `rocksdb::PosixRandomAccessFile::ReadAsync(rocksdb::FSReadRequest&, rocksdb::IOOptions const&, std::function<void (rocksdb::FSReadRequest const&, void*)>, void*, void**, std::function<void (void*)>*, rocksdb::IODebugContext*)':
/data/ccode/Redis-On-Rocks/deps/rocksdb/env/io_posix.cc:900: undefined reference to `io_uring_get_sqe'
/usr/bin/ld: /data/ccode/Redis-On-Rocks/deps/rocksdb/env/io_posix.cc:909: undefined reference to `io_uring_submit'
/usr/bin/ld: ../deps/rocksdb/librocksdb.a(io_posix.o): in function `rocksdb::CreateIOUring()':
/data/ccode/Redis-On-Rocks/deps/rocksdb/./env/io_posix.h:266: undefined reference to `io_uring_queue_init'
/usr/bin/ld: ../deps/rocksdb/librocksdb.a(io_posix.o): in function `rocksdb::PosixRandomAccessFile::MultiRead(rocksdb::FSReadRequest*, unsigned long, rocksdb::IOOptions const&, rocksdb::IODebugContext*)':
/data/ccode/Redis-On-Rocks/deps/rocksdb/env/io_posix.cc:673: undefined reference to `io_uring_get_sqe'
/usr/bin/ld: /data/ccode/Redis-On-Rocks/deps/rocksdb/env/io_posix.cc:683: undefined reference to `io_uring_submit_and_wait'
/usr/bin/ld: ../deps/rocksdb/librocksdb.a(io_posix.o): in function `rocksdb::PosixRandomAccessFile::MultiRead(rocksdb::FSReadRequest*, unsigned long, rocksdb::IOOptions const&, rocksdb::IODebugContext*)':
/usr/include/liburing.h:745: undefined reference to `__io_uring_get_cqe'
/usr/bin/ld: ../deps/rocksdb/librocksdb.a(io_posix.o): in function `rocksdb::CreateIOUring()':
/data/ccode/Redis-On-Rocks/deps/rocksdb/./env/io_posix.h:266: undefined reference to `io_uring_queue_init'
/usr/bin/ld: ../deps/rocksdb/librocksdb.a(io_posix.o): in function `rocksdb::PosixRandomAccessFile::MultiRead(rocksdb::FSReadRequest*, unsigned long, rocksdb::IOOptions const&, rocksdb::IODebugContext*)':
/usr/include/liburing.h:745: undefined reference to `__io_uring_get_cqe'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:374: redis-server] Error 1
make[1]: Leaving directory '/data/ccode/Redis-On-Rocks/src'
make: *** [Makefile:6: all] Error 2

[BUG] 内存中的key没有持久化到rocksdb

复现步骤:
1、使用redis-shake通过restore rdb file导入key
2、导入完成后执行info keyspace查看key信息,直到evicts值不再增加
#Keyspace
db0:keys=34897,evicts=142868,metas=0,expires=0,avg_ttl=0
3、shutdown save
4、重新启动xredis-ror
5、执行info keyspace查看key信息
#Keyspace
db0:keys=0,evicts=142868,metas=0,expires=0,avg_ttl=0

redis.conf参数
######################
swap-mode disk
swap-threads 4
swap-max-db-size 0
swap-evict-inprogress-growth-rate 5mb
swap-evict-inprogress-limit 128
swap-evict-step-max-subkeys 1024
swap-evict-step-max-memory 1mb
swap-ratelimit-policy pause
swap-ratelimit-maxmemory-percentage 200
swap-persist-enabled yes
swap-ratelimit-maxmemory-pause-growth-rate 20mb
#####################
gtid-enable yes
gtid-enabled-config-sync-with-master yes
gtid-uuid-gap-max-memory 10mb

[BUG]Can't restore from backup

Describe the bug

Cannot restore data from dump.rdb file

To reproduce

  1. create a simple key set str1 str1 and execute save command to generate backup file dump.rdb
  2. copy dump.rdb to ROR install directory in another node
  3. restart the second node
  4. execute keys in second node and it returns empty record, but dbsize command returns 1
  5. info keyspace shows there is 1 key got evicted

Expected behavior

The same data is restored in second node

Additional information

We are using ROR 1.2.2

AOF not supported in swap mode

Describe the bug

When attempting to enable AOF (append-only file) in Redis-On-Rocks (ROR), an error "ERR Invalid argument 'yes' for CONFIG SET 'appendonly' - swap mode is non-memory mode, cannot open aof" is encountered.

To reproduce

  1. Connect to ROR Redis server.
  2. Execute the command: CONFIG SET appendonly yes.
  3. Observe the error message returned.

Expected behavior

The AOF should be successfully enabled in ROR without encountering any errors.

Additional information

It seems that ROR is running in non-memory mode (swap mode), which prevents the AOF from being opened. Further investigation into the configuration and operating mode of ROR may be necessary to resolve this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.