Skip to content

Conversation

@MeirShpilraien
Copy link

@MeirShpilraien MeirShpilraien commented Dec 13, 2021

Base on conversion on #9923, added FUNCTION FLUSH command. The new sub-command allows delete all the functions. An optional [SYNC|ASYNC] argument can be given to control whether or not to flush the functions synchronously or asynchronously. if not given the default flush mode is chosen by lazyfree-lazy-user-flush configuration values.

Add the missing functions.tcl test to the list of tests that are executed in test_helper.tcl, and call FUNCTION FLUSH in between servers in external mode

The new FUNCTION sub-command allows delete all the functions.
An optional [SYNC|ASYNC] argument can be given to control whether
or not to flush the function synchronously or asynchronously.
if not given the default flush mode is chosen by lazyfree-lazy-user-flush
configuration values.
@oranagra oranagra added the state:major-decision Requires core team consensus label Dec 13, 2021
@oranagra
Copy link
Member

@redis/core-team please approve another small step in the functions project.

Copy link
Contributor

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

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

Looks good. Didn't review the tests.

Co-authored-by: Viktor Söderqvist <viktor@zuiderkwast.se>
Copy link
Contributor

@madolson madolson left a comment

Choose a reason for hiding this comment

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

Approving the API, and a minor wording note.

@oranagra oranagra added 7.0-must-have approval-needed Waiting for core team approval to be merged release-notes indication that this issue needs to be mentioned in the release notes labels Dec 14, 2021
Copy link
Member

@itamarhaber itamarhaber left a comment

Choose a reason for hiding this comment

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

API lgtm

meir added 2 commits December 15, 2021 18:58
Use `server.dirty++` instead of `forceCommandPropagation` to make sure
the command will be counted as changing the data (for persistence configuration).
Use `addReplySubcommandSyntaxError` on `FUNCTION FLUSH`
meir added 3 commits December 15, 2021 19:58
unit/functions was missing from test_helper.tcl which caused
functions tests not to run when not directly specify.

Also, added `function flush` to server.tcl to make sure
functions will be cleaned between tests on external server.
Meir Shpilraien (Spielrein) and others added 2 commits December 16, 2021 09:31
@oranagra oranagra merged commit 687210f into redis:unstable Dec 16, 2021
hwware pushed a commit to hwware/redis that referenced this pull request Dec 20, 2021
Added `FUNCTION FLUSH` command. The new sub-command allows delete all the functions.
An optional `[SYNC|ASYNC]` argument can be given to control whether or not to flush the
functions synchronously or asynchronously. if not given the default flush mode is chosen by
`lazyfree-lazy-user-flush` configuration values.

Add the missing `functions.tcl` test to the list of tests that are executed in test_helper.tcl,
and call FUNCTION FLUSH in between servers in external mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval-needed Waiting for core team approval to be merged release-notes indication that this issue needs to be mentioned in the release notes state:major-decision Requires core team consensus

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

7 participants