GithubHelp home page GithubHelp logo

Comments (11)

kzangeli avatar kzangeli commented on August 30, 2024 1

Ok! I was just curious :)
I'll see if I can reproduce the issue first thing tomorrow and if so it should be quite easy to fix.
I'll let you know as soon as I know more

from context.orion-ld.

kzangeli avatar kzangeli commented on August 30, 2024

Ok. duly noted.
Thanks for reporting!
Seems like a bug in the subscription cache.
Question: are you using tenants?

from context.orion-ld.

theguate avatar theguate commented on August 30, 2024

/ngsi-ld/ex/v1/tenants nothing is shown, so I assume there are no tenants used in the environment.

from context.orion-ld.

kzangeli avatar kzangeli commented on August 30, 2024

Ok, thanks. I'll have a look tomorrow.
You're using undocumented non-NGSI-LD "features" ...
Have you been looking at the source code?
(I'm curious as to how you know about "fromDb" and the /ex/ url paths ...)

from context.orion-ld.

theguate avatar theguate commented on August 30, 2024

fromDb --> I was looking at other issues comments in this repo ( I think you show it as a workaround) . and since for me was looking like a cache issue , I was temped to try! and actually help me to review and validate the issue..
about the /ex/ you commented over here: https://stackoverflow.com/questions/74641013/how-to-deal-with-ngsi-ld-tenants-create-list-delete
I'm very new on this topics.. I have read it before and I was looking if this was implemented in Ali's STF. but is pointing back to you! haha btw many thanks for your help! if fixed or any updates, will ask Ali to also update his repo.

from context.orion-ld.

kzangeli avatar kzangeli commented on August 30, 2024

So, I created a functest that creates three subscriptions, GETs them, DELETEs them and then tries to GET them again.
All OK. I'm going to need some help here to try to reproduce the issue.
See this functest and help me make it look more like your test case.
If I can't reproduce, I can't fix.

But, first, could you please try with the latest Orion-LD image?

Cause, that's what I'm using.
I did fix a stupid bug in the subscription cache not long ago and ... not that I really think it's related but ...
Would be nice to test this against the newest version of the broker, even though it's not an "official release".

from context.orion-ld.

theguate avatar theguate commented on August 30, 2024

Hi Ken, just deployed "Orion-LD version": "post-v1.2.0". same issues over here. Will send a note with our URLs
in ECR https://gallery.ecr.aws/smart-territory-framework/orionld. it mentions 1.3, Ali have just update the image a few hour ago so maybe is something missing to update inside to show the version

from context.orion-ld.

kzangeli avatar kzangeli commented on August 30, 2024

ok.
In that case, edit a comment with the exact operations you do to reproduce the issue, see if I'm able as well.
See, I need it to fail in local, so I can run the broker inside gdb, add traces and run again, etc.
Just see the failure in an external broker doesn't help me much.

Exact payload body and HTTP headers for POST /subscriptions, etc. All of it.

from context.orion-ld.

kzangeli avatar kzangeli commented on August 30, 2024

Ah, just saw the email. All good

from context.orion-ld.

kzangeli avatar kzangeli commented on August 30, 2024

So, there are two issues here, all understood and good.

  1. The deleted subscription survives:
    As an HA setup is in use, you need to turn on the sub-cache-refresh feature.
    This done by setting the CLI -subCacheIval 3 (for a 3 sec refresh interval) OR:
    export ORIONLD_SUBCACHE_IVAL=3
  2. The notification fails.
    This is a bug, found and being fixed. The value of the HTTP Header "Host" is WRONG

from context.orion-ld.

alifrugal avatar alifrugal commented on August 30, 2024

Thanks Ken, I tested the notifications with the new version and I confirm it works now. Also using the sub cache refresh feature, I also confirm the subscriptions are up to date now (after the time set in the env variable).

All good, on my side, once the new version is pushed then I'll update the STF accordingly to point to the new one.
Thanks for the support!

from context.orion-ld.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.