Hi Bo.
I have inserted some more detailed logs and, “fortunatly”, the error was repeted. As you can see by my log extraction:
1. First part where search return correct values.
2. Then, for me absolutely randomly, search always returns 0 results.
3. Search fails and so I push new events and new alarms are created.
4. I restart Event Server
5. After restart, search came back to return values
My ipotesis is that in a too little time, I call to many times the SearchAlarms (One call for every sensor event…wrong). So I have improved a bit my logic making only one call for all sensor…in my use cases this is correct. And now, I’m checking on site.
As last thing, I notice that the probem at point 2, starts when I start Smart Client…is possibile that while I’m searching (many time in a second), another call (this time by SmatClient) move EventServer in some error state (after restart works fine)?
I do not know. What do you think about it ?
Point 1. All works fine
…
2020-02-11 17:52:12.9551 ------ SEARCH START [“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-violation”] ----
2020-02-11 17:52:12.9621 1.[Door opened][“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-long-violation-trouble”]
2020-02-11 17:52:12.9621 2.[Zone in alarm][“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-alarm-memory”]
2020-02-11 17:52:12.9621 No alarm was found with CustomTag: “0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-violation”
2020-02-11 17:52:12.9621 ------ END SEARCH [32 msec][2MA][2SA] ----
2020-02-11 17:52:13.2204 ------ SEARCH START [“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-alarm-memory”] ----
2020-02-11 17:52:13.2204 1.[Door opened][“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-long-violation-trouble”]
2020-02-11 17:52:13.2204 2.[Zone in alarm] >>>> FOUND IT! <<<<
2020-02-11 17:52:13.2204 Alarm already present CustomTag: “0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-alarm-memory”
2020-02-11 17:52:13.2274 ------ END SEARCH [34 msec][2MA][2SA] ----
…
2020-02-11 17:52:15.3009 ------ SEARCH START [“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-alarm-memory”] ----
2020-02-11 17:52:15.3009 1.[Door opened][“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-long-violation-trouble”]
2020-02-11 17:52:15.3009 2.[Zone in alarm] >>>> FOUND IT! <<<<
2020-02-11 17:52:15.3049 Alarm already present CustomTag: “0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-alarm-memory”
2020-02-11 17:52:15.3049 ------ END SEARCH [47 msec][2MA][2SA] ----
Point 2. Search fails (maybe, at this point, I have started Smart Client)
2020-02-11 17:52:16.5012 ------ SEARCH START [“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-long-violation-trouble”] ----
2020-02-11 17:52:16.5012 No alarm was found with CustomTag: “0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-long-violation-trouble”
2020-02-11 17:52:16.5012 ------ END SEARCH [23 msec][0MA][0SA] ----
…
2020-02-11 17:52:53.3725 ------ SEARCH START [“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-long-violation-trouble”] ----
2020-02-11 17:52:53.3725 No alarm was found with CustomTag: “0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-long-violation-trouble”
2020-02-11 17:52:53.3725 ------ END SEARCH [14 msec][0MA][0SA] ----
2020-02-11 17:52:53.9789 ------ SEARCH START [“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-violation”] ----
2020-02-11 17:52:53.9789 No alarm was found with CustomTag: “0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-violation”
2020-02-11 17:52:53.9789 ------ END SEARCH [17 msec][0MA][0SA] ----
…
2020-02-11 17:52:57.4551 ------ SEARCH START [“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-long-violation-trouble”] ----
2020-02-11 17:52:57.4551 No alarm was found with CustomTag: “0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-long-violation-trouble”
2020-02-11 17:52:57.4551 ------ END SEARCH [20 msec][0MA][0SA] ----
Point 3. Search fail and so I push event to Event Server that create always same allarm
2020-02-11 17:54:37.8293 ------ SEARCH START [“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-violation”] ----
2020-02-11 17:54:37.8293 1.[Door opened][“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-long-violation-trouble”]
2020-02-11 17:54:37.8293 2.[Zone in alarm][“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-alarm-memory”]
2020-02-11 17:54:37.8293 3.[Door opened][“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-long-violation-trouble”]
2020-02-11 17:54:37.8293 4.[Zone in alarm][“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-alarm-memory”]
…
2020-02-11 17:54:37.8683 41.[Door opened][“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-long-violation-trouble”]
2020-02-11 17:54:37.8683 42.[Door opened][“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-long-violation-trouble”]
2020-02-11 17:54:37.8683 43.[Zone in alarm][“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-alarm-memory”]
2020-02-11 17:54:37.8683 No alarm was found with CustomTag: “0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-violation”
2020-02-11 17:54:37.8683 ------ END SEARCH [253 msec][43MA][43SA] ----
…
Point 4. I restart Event server and all works fine again.
2020-02-11 18:00:29.6239 ------ SEARCH START [“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-long-violation-trouble”] ----
2020-02-11 18:00:29.6239 1.[Door opened] >>>> FOUND IT! <<<<
2020-02-11 18:00:29.6239 Alarm already present CustomTag: “0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-long-violation-trouble”
2020-02-11 18:00:29.6239 ------ END SEARCH [25 msec][1MA][1SA] ----
2020-02-11 18:00:30.2443 ------ SEARCH START [“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-violation”] ----
2020-02-11 18:00:30.2443 1.[Door opened][“0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-long-violation-trouble”]
2020-02-11 18:00:30.2443 No alarm was found with CustomTag: “0”|“i32_desktop-ehj2n5k”~“1”|“2”~“2”|“2”~“3”|“zone-violation”
2020-02-11 18:00:30.2443 ------ END SEARCH [28 msec][1MA][1SA] ----
…