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

Downsampling don't work with wildcards in key expression #1202

Open
sashacmc opened this issue Jun 28, 2024 · 0 comments
Open

Downsampling don't work with wildcards in key expression #1202

sashacmc opened this issue Jun 28, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@sashacmc
Copy link
Contributor

Describe the bug

Seems that the method weight_at from the KeyExprTree works only with key expression without wildcards, it should be replaced with something other.

if let Some(id) = ke_id.weight_at(&key_expr.clone()) {

To reproduce

Run z_pub in router mode
Run z_sub in client mode with config

      "downsampling": [
          {
              "flow": "ingress",
              "rules": [
                  {
                      "freq": 0.1,
                      "key_expr": "demo/**"
                  }
              ]
          },
      ],

Downsampling not work.

When replacing demo/** with demo/example/zenoh-rs-pub everything works as expected

System info

Any platform

@sashacmc sashacmc added the bug Something isn't working label Jun 28, 2024
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

1 participant