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

Add redis_mode/kvrocks_mode fields in INFO SERVER #1927

Merged

Conversation

enjoy-binbin
Copy link
Member

@enjoy-binbin enjoy-binbin commented Dec 8, 2023

Although we will already show cluster_enabled in INFO CLUSTER,
some tools such as redis manger will need this field to determine
whether it is cluster mode.

If cluster mode is enabled, redis_mode is displayed as cluster,
otherwise it is standalone. We also use this opportunity to add
a kvrocks_mode field.

Fixes #1926.

Although we will already show cluster_enabled in INFO CLUSTER,
some tools such as redis manger will need this field to determine
whether it is cluster mode.

If cluster mode is enabled, redis_mode is displayed as cluster,
otherwise it is standalone.

Fixes apache#1926.
@enjoy-binbin
Copy link
Member Author

should we use this opportunity to add a kvrocks_mode?

@git-hulk
Copy link
Member

git-hulk commented Dec 8, 2023

should we use this opportunity to add a kvrocks_mode?

I think so.

@enjoy-binbin enjoy-binbin changed the title Add redis_mode field in INFO SERVER Add redis_mode/kvrocks_mode field in INFO SERVER Dec 8, 2023
Copy link

sonarqubecloud bot commented Dec 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
1.7% 1.7% Duplication

@enjoy-binbin enjoy-binbin changed the title Add redis_mode/kvrocks_mode field in INFO SERVER Add redis_mode/kvrocks_mode fields in INFO SERVER Dec 8, 2023
@git-hulk git-hulk merged commit 8ae7d54 into apache:unstable Dec 8, 2023
30 checks passed
git-hulk pushed a commit that referenced this pull request Dec 8, 2023
Although we will already show cluster_enabled in INFO CLUSTER,
some tools such as Redis Manager will need this field to determine
whether it is cluster mode.

If cluster mode is enabled, redis_mode is displayed as a cluster,
otherwise, it is standalone. We also use this opportunity to add
a kvrocks_mode field.

Fixes #1926.
@enjoy-binbin enjoy-binbin deleted the add_redis_mode_in_info_server branch December 8, 2023 09:50
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.

Missing redis_mode field in INFO command
2 participants