Skip to content

Multiple broadcast messages #4737

Closed

Description

@e-kayrakli

Right now, there are two broadcast messages being registered for different purposes. Both of the client functions sending a broadcast message to the server are seemingly tested. I am not entirely sure how this works, but I think their names should be different.

These functions are being registered in BroadcastMsg and ManipulationMsg modules

Activity

  1. added
    bug
    on Oct 1, 2025
  2. self-assigned this
    on Oct 15, 2025
  3. drculhane commented on Oct 17, 2025

    @drculhane
    Contributor

    This is entirely accurate, and I'm not sure how to address it.

    As you've noted, they do different things. For numpy, "broadcast" is the accepted term (this is the one in ManipulationMsg). For pandas (or at least the arkouda version of it, in BroadcastMsg), "broadcast" is a nickname for a scatter function, which would (I think) be implemented in "map" in the actual pandas package.

    As best I can tell, arkouda has called this pandas function "broadcast" since at least 2019.

    I'm very open to discussion on this. I'm not sure of the best way to proceed without breakage.

  4. e-kayrakli commented on Oct 20, 2025

    @e-kayrakli
    ContributorAuthor

    I wanted to understand how the server can function with two messages with same names. I think what's happening is one of the messages uses old registerFunction function to register the name broadcast. The other implementation uses newer instantiateAndRegister attribute with broadcast name. This generates a mangled function for the message handler, and for the message, it suffixes it with <type,...>.

    So, even though the server name-matches incoming messages, one message will be exactly broadcast, whereas the other will look more like broadcast<...>.

    I'm not sure of the best way to proceed without breakage.

    To be clear, we can fix this by not changing anything on the client API, right? We can literally call one of the drculhanes_broadcast, and as long as we use the same on both sides, things should work?

  5. drculhane commented on Oct 21, 2025

    @drculhane
    Contributor

    Yes, that would definitely work, and is probably the best short-term plan. Amanda and I are talking about the long-term approach, because the one in BroadcastMsg probably should never have been called "broadcast" in the first place, but it has been for 6 years. Well, I guess I rambled enough about that yesterday. I will look into renaming one or both of them.

  6. added a commit that references this issue on Oct 24, 2025
    c0c53f3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions