Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: added tests for the info, setex, bgsave, flushdb management commands, and list base commands. #2897

Closed
wants to merge 638 commits into from

Conversation

tsinow
Copy link
Collaborator

@tsinow tsinow commented Sep 12, 2024

No description provided.

chenbt-hz and others added 30 commits December 18, 2023 15:04
…undation#2212)

* Fixed the slow log timestamp format is inconsistent with Redis (OpenAtomFoundation#2206)

* Fixed the slow log timestamp format is inconsistent with Redis (OpenAtomFoundation#2206)
* feat:unstable branch

* feat:handle merge

* feat:add lastsave cmd

* feat:update lastsave cmd

* feat:update lastsave cmd

* feat:fixed lastsave cmd

* feat:fixed server_test.go

* feat:fixed server_test.go

* feat:fixed server_test.go

* feat:fixed server_test.go

* feat:update modifies

* feat:fixed zpopmax etc. bug

* feat:add zpopmax ut

* feat:fixed ut bugs

* feat:fixed ut

* feat:update code

* feat:update ut
* First edition

* Exporter collects Proxy information.

* Improve metrics

* Dynamically adjust refresh time.
* [develop] finish StreamMetaValue, ParsedStreamMetaValue in stream_meta_value.h

* [develop] add other cgroup, consumer and pel meta value

* [develop] move stream metadata out of the storage layer and rewrite it.

* [develop] add two class :TreeIDGenerator, StreamUtil

* [develop] add some helper func

* [develop] xadd cmd's most function finished

* [develop] XREAD command parse

* [temp] add xgroup cmmand parse

* [develop] XGROUP commad parse, XGROUP CREATE, XGROUP CREATECONSUMER finished

* [develop] XRANGE, XREAD finished, add some unit test

* [develop] XREADGROUP finished

* [develop] XLEN finished

* [develop] XACK command finished

* [develop] DEL command support, XGROUP DESTORY finished, registered some command.

* [debug] fix the problem of CMakeFile in test/stream

* Add xgroup help command

* fix conflicts

* [debug] fix the compile problem in debug mode

* [develop] XTRIM command finished

* [debug] fix some problem of XTRIM command

* [develop] remove stream cpp utest, fix some bug and pass 23 unit test

* [develop] ajust code structure, add 2 tests

* [develop] XCLAIM command finished

* [test] now pass 30 tests

* [develop] ajust code structure, fix a return value bug of XRANGE

* [develop] XREVRANGE cmd finished and passed tests

* [develop]  add 4 more tests of XADD and XDEL

* [develop] Adjusting code structure

* [develop] change const shared_ptr & to raw pointer

* [develop] remove xgroup commands implementation

* [fix] fix compile problem on mac and centos

* [fix] add licence, fix compile problem

* [fix] code format

* [fix] fix compile problem on macos

* [fix] fix macos compile problem again, add log to find ubuntu test problem

* fix the change of config file

* [fix] fix a bug found by sanitizer

* [fix] add test: XADD large data, triggering flushing, XREAD, XLEN, XRANG, XTRIIM should work

* "fix: ./stream_test.go:76:6: randomInt redeclared in this block"

* fix: add replication test of stream

* fix: a bug of XADD replication and add a stronger replication test.

The XADD command in Redis has the capability to generate IDs based on timestamps.
To ensure that repeated execution of a command results in the same timestamp,
it is necessary to include the generated ID in the command when generating the binlog. This way,
when replaying or replicating, the same ID will be obtained.

* fix: compile bug.

* fix: add concurrency test of stream.

---------

Co-authored-by: Jinghui <[email protected]>
* feat: add big key tool

Signed-off-by: sjcsjc123 <[email protected]>

* modify heap to maxHeap

Signed-off-by: sjcsjc123 <[email protected]>

* modify comment

Signed-off-by: sjcsjc123 <[email protected]>

* add ci test

Signed-off-by: sjcsjc123 <[email protected]>

* add compress and decompress

Signed-off-by: sjcsjc123 <[email protected]>

* fix ci

Signed-off-by: sjcsjc123 <[email protected]>

* fix ci

Signed-off-by: sjcsjc123 <[email protected]>

* fix ci

Signed-off-by: sjcsjc123 <[email protected]>

* fix ci

Signed-off-by: sjcsjc123 <[email protected]>

* fix ci

Signed-off-by: sjcsjc123 <[email protected]>

---------

Signed-off-by: sjcsjc123 <[email protected]>
* fix:cache bug

* add cache test

* fix hash

* fix

* fix init ttl

* fix init

* change lock

* fix mget with ttl

* fix mget && add cache test

* delete log

* fix bitpop

* fix flag

* fix bitpop

---------

Co-authored-by: chejinge <[email protected]>
* fix cache layer crash and data confusion

* Delete the ACL flag and unused flags

* Modify the rediscache cmake parameter
* feat: Dynamically set disable_auto_compaction
1. disable_auto_compations  controls whether to automatically start compat.
2. Dynamic control via config get disable_auto_compations/config set disable_auto_compations true(false).
…oundation#2222)

* update benchmark_client to support more api commands and statistics

* reconnect server when connction closed by peer

---------

Co-authored-by: wangshaoyi <[email protected]>
copy from redis acl
---------

Co-authored-by: Chengyu Liu <[email protected]>
* delete binglog dead code

* fix acl complie

---------

Co-authored-by: wuxianrong <[email protected]>
QlQlqiqi and others added 27 commits July 29, 2024 20:15
* add multi.tcl

* Commented test cases in Tcl that cannot pass

* fix multi bug and compatible ACL test

---------

Co-authored-by: saz97 <[email protected]>
Co-authored-by: liuyuecai <[email protected]>
…omFoundation#2837)

* feat: Improve the RTC process of Read/Write model  (OpenAtomFoundation#2629)

* (Demo) Do read cmd before task queue. && add workflow_dispatch for manual action

* Check authed and write lock, fix go test error in MacOS and cache mode judge

* fix some ut error by  commands filter  and return logic

* rollback some flag,but add kCmdReadBeforeQueuefor get mget hget hget hgetall,hmget

* move mget and hmget;add before_queue_time metrics

* fix cost to copy cmd_table by remove c_ptr

---------

Co-authored-by: chenbt <[email protected]>
…#2808)

* add comment to explain the idea

* add mtx and waiting for test

* use lockfree implementation, some logs are waiting to remove

* change the call_back to an optional dtor call back of BGItem

* revised based on reviewer's opinion

* removed some comments

* change the declared position of async_write_db_task_count

---------

Co-authored-by: Xin.Zh <[email protected]>
…ch is existing (OpenAtomFoundation#2836)

* fix hincrby cmd

* add test for hincrby cmd
* 1 add a switch for RTC feature
2 avoid unnecessary cache read if rtc is already cache missed

* revised
…dation#2829)

* Added the serverlog periodic reclamation function


---------

Co-authored-by: cheniujh <[email protected]>
…undation#2822)

* change storage ttl time from seconds to milliseconds


---------

Co-authored-by: liuyuecai <[email protected]>
…clear space in CI after compile (OpenAtomFoundation#2853)

* fix:remove dependence in CI

* Revert "fix: change storage ttl time from seconds to milliseconds (OpenAtomFoundation#2822)"


---------

Co-authored-by: cjh <[email protected]>
Co-authored-by: chejinge <[email protected]>
* fix the problem of blpop don't update cache
* 1. make pika support redis sentinel
2. support client kill type pubsub/normal
3. ensure fd is removed in epoll if server wanna close fd

* fix exit process:
1. ensure NetWork Thread(Dispacher) can be stopped in time
2. ensure all queued Async WriteDB task can be done before exit

---------

Co-authored-by: chejinge <[email protected]>
* docs:add 355 changelog

---------

Co-authored-by: chejinge <[email protected]>
* fix:changelog

---------

Co-authored-by: Xin.Zh <[email protected]>
….0 to 4.0.1 (OpenAtomFoundation#2888)

* add a function for washing data after upgrading version from 4.0.0 to 4.0.1
…undation#2857)

* fix: change storage ttl time from seconds to milliseconds (OpenAtomFoundation#2822)

* change storage ttl time from seconds to milliseconds

---------

Co-authored-by: liuyuecai <[email protected]>

test space

* fix incr cmd time to millionsseconds

* rename SetRelativeTimeByMillsec to SetRelativeTimeInMillsec

---------

Co-authored-by: liuyuecai <[email protected]>
Copy link

coderabbitai bot commented Sep 12, 2024

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@tsinow tsinow changed the title Master test: added tests for the info, setex, bgsave, flushdb management commands, and list base commands. Sep 12, 2024
@tsinow tsinow closed this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.