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

fix: v3.5.5 changelog patch #2877

Merged
merged 10 commits into from
Aug 20, 2024
Merged

Conversation

chejinge
Copy link
Collaborator

@chejinge chejinge commented Aug 19, 2024

Summary by CodeRabbit

  • New Features

    • Enhanced the PkPatternMatchDel command to ensure simultaneous deletion of database and cache entries, improving data integrity.
    • Revised client watch functionality for more intuitive and reliable behavior.
  • Bug Fixes

    • Resolved parsing errors linked to the min-blob-size parameter.
    • Fixed incorrect state reversal during master-slave switches.
    • Corrected return values for the Zverank command to prevent erroneous calculations.
    • Ensured proper TTL handling in the RedisCache layer to avoid data inconsistencies.
  • Improvements

    • Optimized read locks to enhance data synchronization in distributed systems.
    • Transitioned CI environment from CentOS to Rocky Linux for improved build reliability.
    • Updated the flushall logic to reduce data loss risks during unified processing.

Copy link

coderabbitai bot commented Aug 19, 2024

Warning

Rate limit exceeded

@AlexStocks has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 11 minutes and 53 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

Commits

Files that changed from the base of the PR and between 335f5bc and b95b56f.

Walkthrough

The recent updates to the Pika system significantly enhance functionality, performance, and data integrity. Key improvements include better synchronization between cache and database entries, a transition of the CI environment to Rocky Linux for increased stability, and optimizations that prevent data inconsistencies. Bug fixes address various command behaviors and ensure reliable failover processes. Overall, these enhancements create a more reliable and efficient system.

Changes

Files Change Summary
CHANGELOG.MD, CHANGELOG_CN.MD Updated summaries reflect improvements in data integrity, command functionality, CI environment transition, and bug fixes.
Commands (PkPatternMatchDel, Pksetat, Pksetexat, Zverank) Ensured synchronization of cache and database updates, preventing inconsistencies; corrected return values for accuracy.
CI Environment Transitioned from CentOS to Rocky Linux to resolve compilation issues and improve build reliability.
Read Locks Optimized read lock scope to address inconsistencies in distributed systems due to repeated binlog consumption.
Client Watch Functionality Revised to invalidate watches on all modifications to watched keys, enhancing reliability.
RedisCache Layer Ensured correct TTL usage to prevent expired data persistence, addressing issues with RocksDB compaction for Stream type data.

Poem

🐇 In fields of code, we leap with glee,
Data flows smoothly, as it should be!
Bugs squashed flat, like a carrot in stew,
Cache and database dance, all shiny and new.
Hooray for the changes, let’s hop and play,
In the world of Pika, it’s a bright, sunny day! 🌼✨


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 as 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.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

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.

@github-actions github-actions bot added ☢️ Bug Something isn't working 📒 Documentation Improvements or additions to documentation labels Aug 19, 2024
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 6cb8bf1 and b8e2419.

Files selected for processing (2)
  • CHANGELOG.MD (4 hunks)
  • CHANGELOG_CN.MD (2 hunks)
Additional context used
Markdownlint
CHANGELOG_CN.MD

57-57: null
Spaces inside link text

(MD039, no-space-in-links)

CHANGELOG.MD

729-729: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)

CHANGELOG_CN.MD Outdated
@@ -54,6 +54,8 @@

- `PkPatternMatchDel` 命令在删除 DB 的同时删除 cache,避免出现数据库、缓存不一致的情况[#2839](https://github.com/OpenAtomFoundation/pika/pull/2839)@[chejinge](https://github.com/chejinge)

- 用 rocky 环境替代 centos CI, 解决 CI 编译无法通过的事情[#2823](https://github.com/OpenAtomFoundation/pika/pull/2823)@[QlQlqiqi ](https://github.com/QlQlqiqi)
Copy link

@coderabbitai coderabbitai bot Aug 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix spaces inside link text.

Remove spaces inside the link text to adhere to markdownlint rules.

- [#2823](https://github.com/OpenAtomFoundation/pika/pull/2823)@[QlQlqiqi ]
+ [#2823](https://github.com/OpenAtomFoundation/pika/pull/2823)@[QlQlqiqi]
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- 用 rocky 环境替代 centos CI, 解决 CI 编译无法通过的事情[#2823](https://github.com/OpenAtomFoundation/pika/pull/2823)@[QlQlqiqi ](https://github.com/QlQlqiqi)
- 用 rocky 环境替代 centos CI, 解决 CI 编译无法通过的事情[#2823](https://github.com/OpenAtomFoundation/pika/pull/2823)@[QlQlqiqi](https://github.com/QlQlqiqi)
Tools
Markdownlint

57-57: null
Spaces inside link text

(MD039, no-space-in-links)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rocky -> Rocky, centos -> CentOS

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlexStocks, here's the updated text with the correct capitalization:

- 用 Rocky 环境替代 CentOS CI, 解决 CI 编译无法通过的事情[#2823](https://github.com/OpenAtomFoundation/pika/pull/2823)@[QlQlqiqi](https://github.com/QlQlqiqi)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用 rocky 环境替代 centos, github CI 流程总体支持 MacOS/Ubuntu/Rocky 三个环境

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlexStocks, thank you for the additional information regarding the CI environment's support for MacOS, Ubuntu, and Rocky. I'll make sure to remember this for future reference.


Learnings added
Learnt from: AlexStocks
PR: OpenAtomFoundation/pika#2877
File: CHANGELOG_CN.MD:57-57
Timestamp: 2024-08-19T12:35:13.597Z
Learning: The GitHub CI process for the Pika project supports MacOS, Ubuntu, and Rocky environments.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用 rocky 环境替代 centos, github CI 流程总体支持 MacOS/Ubuntu/Rocky 三个环境

done

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!

* Replaced fprintf with glog. [#1421](https://github.com/OpenAtomFoundation/pika/pull/1421) [@Mixficsol](https://github.com/Mixficsol)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unify unordered list style.

Change the asterisk to a dash to maintain consistency with the rest of the document.

- * Replaced fprintf with glog. [#1421](https://github.com/OpenAtomFoundation/pika/pull/1421) [@Mixficsol](https://github.com/Mixficsol)
+ - Replaced fprintf with glog. [#1421](https://github.com/OpenAtomFoundation/pika/pull/1421) [@Mixficsol](https://github.com/Mixficsol)
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
* Replaced fprintf with glog. [#1421](https://github.com/OpenAtomFoundation/pika/pull/1421) [@Mixficsol](https://github.com/Mixficsol)
- Replaced fprintf with glog. [#1421](https://github.com/OpenAtomFoundation/pika/pull/1421) [@Mixficsol](https://github.com/Mixficsol)
Tools
Markdownlint

729-729: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)

@cheniujh cheniujh removed the ☢️ Bug Something isn't working label Aug 19, 2024
@github-actions github-actions bot added the ☢️ Bug Something isn't working label Aug 20, 2024
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between b8e2419 and 06c52e2.

Files selected for processing (1)
  • CHANGELOG_CN.MD (2 hunks)
Additional context used
Markdownlint
CHANGELOG_CN.MD

57-57: null
Spaces inside link text

(MD039, no-space-in-links)

Additional comments not posted (2)
CHANGELOG_CN.MD (2)

57-57: Skip duplicate comment.

The issue with spaces inside the link text has already been addressed in previous reviews.

Tools
Markdownlint

57-57: null
Spaces inside link text

(MD039, no-space-in-links)


99-99: LGTM!

The description of the bug fix related to Pksetexat is clear and well-formatted.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 06c52e2 and 335f5bc.

Files selected for processing (1)
  • CHANGELOG.MD (4 hunks)
Additional context used
Markdownlint
CHANGELOG.MD

729-729: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)

Additional comments not posted (1)
CHANGELOG.MD (1)

729-729: Unify unordered list style.

Change the asterisk to a dash to maintain consistency with the rest of the document.

- * Replaced fprintf with glog. [#1421](https://github.com/OpenAtomFoundation/pika/pull/1421) [@Mixficsol](https://github.com/Mixficsol)
+ - Replaced fprintf with glog. [#1421](https://github.com/OpenAtomFoundation/pika/pull/1421) [@Mixficsol](https://github.com/Mixficsol)
Tools
Markdownlint

729-729: Expected: dash; Actual: asterisk
Unordered list style

(MD004, ul-style)

@AlexStocks AlexStocks changed the title fix:355changelog fix: v3.5.5 changelog patch Aug 20, 2024
@chejinge chejinge merged commit 3a232f2 into OpenAtomFoundation:unstable Aug 20, 2024
11 checks passed
chejinge added a commit that referenced this pull request Aug 20, 2024
* fix:changelog

---------

Co-authored-by: Xin.Zh <[email protected]>
cheniujh pushed a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
* fix:changelog

---------

Co-authored-by: Xin.Zh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
☢️ Bug Something isn't working 📒 Documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants