zenoh icon indicating copy to clipboard operation
zenoh copied to clipboard

replier_id in a Reply seems to be not managed properly

Open stepkun opened this issue 1 year ago • 2 comments

Describe the bug

Accessing replier_id() of a Reply always returns None.

Tested with 1.0.0.alpha-2 from crates.io & dev/1.0.0 from repo.

Had a look into sources and it seems replier_id is not always managed properly.

To reproduce

let replies = session
   .get("query-selector")
   .target(QueryTarget::All)
   .consolidation(ConsolidationMode::None)
   .allowed_destination(Locality::Any);
   .wait()
   .unwrap();

while let Ok(reply) = replies.recv() {
   match reply.result() {
      Ok(sample) => match sample.kind() {
         SampleKind::Put => {
            let replier_id = reply.replier_id();
            dbg!(replier_id);
         SampleKind::Delete => {
            error!("Delete");
         }
      },
      Err(err) => error!("receive error: {:?})", err),
      }
   }
}

System info

Linux Debian Bookworm on AMD Ryzen 5700G

stepkun avatar Jun 29 '24 13:06 stepkun

Same is with sample's source_info's source_id

stepkun avatar Jul 02 '24 18:07 stepkun

Linked issue: https://github.com/eclipse-zenoh/zenoh/issues/709

Mallets avatar Jul 04 '24 07:07 Mallets