Skip to content

Conversation

@jeremiah-corrado
Copy link
Contributor

@jeremiah-corrado jeremiah-corrado commented Jun 18, 2024

Prior to these changes, Arkouda had three command maps: commandMap handled the vast majority of commands, commandMapBinary handled commands that return a bytes instead of a msgTuple, and commandMapArray handled one command that took a binary payload as an extra argument.

This PR unifies the command maps by folding the bytes return value into msgTuple and the binary payload argument into MessageArgs. As such, there is only one command map and all message handlers have the same signature. No changes to message serialization/deserialization on the frontend were required.

Also makes some ergonomic improvements for initializing a MsgTuple and simplifies error handling in ServerDaemon.

jeremiah-corrado and others added 5 commits June 18, 2024 13:14
…e. Fix misleading indentation in serverDaemon. Remove repeated error-handling code from ServerDaemon.

Signed-off-by: Jeremiah Corrado <jeremiah.corrado@hpe.com>
Signed-off-by: Jeremiah Corrado <jeremiah.corrado@hpe.com>
Signed-off-by: Jeremiah Corrado <jeremiah.corrado@hpe.com>
Copy link
Contributor

@bmcdonald3 bmcdonald3 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 to me, great savings of ~350 lines, nice work. Especially like the new way that binary payloads are handled.

Copy link
Member

@stress-tess stress-tess left a comment

Choose a reason for hiding this comment

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

This looks great!! nice work jeremiah

@stress-tess stress-tess added this pull request to the merge queue Jun 26, 2024
Merged via the queue into Bears-R-Us:master with commit 2ac5a23 Jun 26, 2024
@jeremiah-corrado jeremiah-corrado deleted the refactor-command-map branch June 26, 2024 22:56
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.

3 participants