Skip to content

Update versioning fields for compatibility#47

Merged
madolson merged 12 commits into
valkey-io:unstablefrom
madolson:versioning
Apr 3, 2024
Merged

Update versioning fields for compatibility#47
madolson merged 12 commits into
valkey-io:unstablefrom
madolson:versioning

Conversation

@madolson

@madolson madolson commented Mar 27, 2024

Copy link
Copy Markdown
Member

New info information to be used to determine the valkey versioning info.

Internally, introduce new define values for "SERVER_VERSION" which is different from the Redis compatibility version, "REDIS_VERSION".

Add two new info fields:
server_version: The Valkey server version
server_name: Indicates that the server is valkey.

Add one new RDB field: server_ver, which indicates the valkey version that produced the server.

Add 3 new LUA globals: SERVER_VERSION_NUM, SERVER_VERSION, and SERVER_NAME. Which reflect the valkey version instead of the Redis compatibility version.

Also clean up various places where Redis and configuration was being used that is no longer necessary.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson madolson linked an issue Mar 27, 2024 that may be closed by this pull request
@madolson madolson added the major-decision-pending Major decision pending by TSC team label Mar 27, 2024
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson madolson requested review from a team, PingXie and hpatro March 27, 2024 22:35

@PingXie PingXie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

overall, the code change makes sense to me but since we have decided to not break existing redis clients in the first release I think this change should be made after the compat strategy discussion is closed.

@zuiderkwast zuiderkwast left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I had some pending comments since last week. Posting them now.

Comment thread deps/hiredis/test.c Outdated
Comment thread src/config.c Outdated
Comment thread src/debug.c Outdated
Comment thread src/version.h Outdated
Comment thread src/server.c Outdated
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Comment thread src/rdb.c Outdated
madolson added 2 commits April 2, 2024 16:27
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson madolson requested review from PingXie and zuiderkwast April 3, 2024 00:03

@zuiderkwast zuiderkwast left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Almost perfect.

I see it includes some Lua fields too. Nice.

Can you update the top comment?

Comment thread src/redis-cli.c Outdated
Comment thread src/script_lua.c Outdated
Comment thread src/sentinel.c Outdated
madolson added 2 commits April 3, 2024 08:24
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson madolson changed the title Update versioning strategy Update versioning fields for compatibility Apr 3, 2024
@madolson madolson requested a review from zuiderkwast April 3, 2024 16:04
Comment thread src/sentinel.c
Comment thread src/server.c
madolson added 2 commits April 3, 2024 11:14
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
madolson added 2 commits April 3, 2024 12:03
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson madolson merged commit 39d0f45 into valkey-io:unstable Apr 3, 2024
madolson added a commit to madolson/valkey that referenced this pull request Apr 7, 2024
New info information to be used to determine the valkey versioning info.

Internally, introduce new define values for "SERVER_VERSION" which is
different from the Redis compatibility version, "REDIS_VERSION".

Add two new info fields:
`server_version`: The Valkey server version
`server_name`: Indicates that the server is valkey.

Add one new RDB field: `server_ver`, which indicates the valkey version
that produced the server.

Add 3 new LUA globals: `SERVER_VERSION_NUM`, `SERVER_VERSION`, and
`SERVER_NAME`. Which reflect the valkey version instead of the Redis
compatibility version.

Also clean up various places where Redis and configuration was being
used that is no longer necessary.

---------

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
PatrickJS pushed a commit to PatrickJS/placeholderkv that referenced this pull request Apr 24, 2024
New info information to be used to determine the valkey versioning info.

Internally, introduce new define values for "SERVER_VERSION" which is
different from the Redis compatibility version, "REDIS_VERSION".

Add two new info fields:
`server_version`: The Valkey server version
`server_name`: Indicates that the server is valkey.

Add one new RDB field: `server_ver`, which indicates the valkey version
that produced the server.

Add 3 new LUA globals: `SERVER_VERSION_NUM`, `SERVER_VERSION`, and
`SERVER_NAME`. Which reflect the valkey version instead of the Redis
compatibility version.

Also clean up various places where Redis and configuration was being
used that is no longer necessary.

---------

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
kovan added a commit to kovan/valkey-doc that referenced this pull request Mar 26, 2026
- Fix: the INFO field is valkey_version, not server_version
  (renamed in valkey-io/valkey#232)
- Add Lua globals: SERVER_NAME, SERVER_VERSION, SERVER_VERSION_NUM
  (added in valkey-io/valkey#47)
kovan added a commit to kovan/valkey-doc that referenced this pull request May 14, 2026
- Fix: the INFO field is valkey_version, not server_version
  (renamed in valkey-io/valkey#232)
- Add Lua globals: SERVER_NAME, SERVER_VERSION, SERVER_VERSION_NUM
  (added in valkey-io/valkey#47)

Signed-off-by: Kit Dallege <xaum.io@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

major-decision-pending Major decision pending by TSC team

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

The output of INFO server

4 participants