Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replier_id in a Reply seems to be not managed properly #1205

Open
stepkun opened this issue Jun 29, 2024 · 2 comments
Open

replier_id in a Reply seems to be not managed properly #1205

stepkun opened this issue Jun 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@stepkun
Copy link

stepkun commented Jun 29, 2024

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 stepkun added the bug Something isn't working label Jun 29, 2024
@stepkun
Copy link
Author

stepkun commented Jul 2, 2024

Same is with sample's source_info's source_id

@Mallets
Copy link
Member

Mallets commented Jul 4, 2024

Linked issue: #709

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants