The current behaviour of Global Cache when refusing to cache a data-object where data-policy=Core and cache=true (or cache directive missing from WNM) is to republish the WIS2 Notification Message as if the cache directive was set to false (cache=false) - i.e., the WNM is published on the cache topic branch containing links that refer back to the origin WIS2 Node.
There is a proposal to treat the refusal to cache the same as if it were an error, i.e., the Global Cache does not publish a WNM (etc.). From the WIS2 Node perspective this makes sense: they intended the data-object to be cached and it is not. It is also possible that WIS2 Nodes may not provide access for general users to download Core data directly from them. In which case, data consumers will get download failures.
On refusal to cache, should a GC republish a WNM or not?
And in the latter case, should the GC increment the (error) metric wmo_wis2_gc_downloaded_errors_total?
(See also Issue wis2-guide/8 for a discussion on publishing monitoring event messages when a GC refuses to cache an object)
The current behaviour of Global Cache when refusing to cache a data-object where
data-policy=Coreandcache=true(or cache directive missing from WNM) is to republish the WIS2 Notification Message as if the cache directive was set to false (cache=false) - i.e., the WNM is published on thecachetopic branch containing links that refer back to the origin WIS2 Node.There is a proposal to treat the refusal to cache the same as if it were an error, i.e., the Global Cache does not publish a WNM (etc.). From the WIS2 Node perspective this makes sense: they intended the data-object to be cached and it is not. It is also possible that WIS2 Nodes may not provide access for general users to download Core data directly from them. In which case, data consumers will get download failures.
On refusal to cache, should a GC republish a WNM or not?
And in the latter case, should the GC increment the (error) metric
wmo_wis2_gc_downloaded_errors_total?(See also Issue wis2-guide/8 for a discussion on publishing monitoring event messages when a GC refuses to cache an object)