carloea2 opened a new issue, #8263:
URL: https://github.com/apache/texera/issues/8263

   ### What happened?
   
   Input port zero can arrive from protobuf as an unset `PortIdentity()`. It 
compares equal to the registered `PortIdentity(id=0, internal=False)`, but the 
generated messages have different hashes. `InputManager.get_port` uses direct 
dictionary lookup, so the equal incoming identity raises `KeyError`.
   
   Before: an unset protobuf identity for input port zero can fail lookup.
   
   Expected: input ports resolve by protobuf value equality, while unknown 
ports still fail clearly.
   
   ### How to reproduce?
   
   1. Register input port `PortIdentity(id=0, internal=False)`.
   2. Call `get_port` with `PortIdentity()` as received when zero-valued fields 
are omitted.
   3. Observe that the identities compare equal but direct lookup raises 
`KeyError`.
   
   ### Version or branch
   
   1.3.0-incubating-SNAPSHOT on main
   
   ### Commit hash
   
   50321e403c82df299a13deb50a7f9849dd93bdba
   
   ### Relevant log output
   
   KeyError: PortIdentity()


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to