Events with null Attributes on ManagerEvent
See original GitHub issueHi, i have a system that generates a lot of events per second and some times the system receives events with null attributes, causing crash.
So, i implanted a Dictionary class of non nullable values and keys, thread safe, to avoid crash on system. if u you like ? => https://github.com/hugodeco/DDictionary
public abstract class ManagerEvent : EventArgs, IParseSupport
{
#region Common Event Properties
/// <summary>
/// Store all unknown (without setter) keys from manager event.<br/>
/// Use in default Parse method <see cref="ManagerEvent.Parse(string, string)"/>
/// </summary>
public IDictionary<string, string> Attributes { get; } = new DDictionary<string, string>();
Issue Analytics
- State:
- Created 5 years ago
- Comments:8
Top Results From Across the Web
Attribute becomes null in event handling - java
In the MyLabel constructor, the value of control is null (by default) when this is added as the MouseListener . If the listener...
Read more >Search Attributes – Events Manager Documentation
Search Attributes. Since version 3.0, we've made a consistent set of accepted search attributes which you can pass to various shortcodes, template tags...
Read more >Events Views
The MGMT$INCIDENTS view provides a view of the attributes of the incident including its ... It is set to null when the events...
Read more >ICMSTItemEvents (Item Events Table)
Events may relate to actions of library users when working on items. ... Column Name, Data Type, Attribute. EventCode, INTEGER, NOT Null.
Read more >cloudevents/spec - Are null values for attributes permitted?
I'd argue that if the concept of expressing "this attribute is definitely not present" isn't supported by the overall spec, then SDKs for ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
When we have a huge flow of events, test for null attributes is not sufficient and crashes the system. e.Attributes[“test”] == null I had to override the Attributes dictionary, including a lock on record to avoid those erros.
Does this mean you solved your issue?