wso2 / analytics-solutions

Apache License 2.0
42 stars 60 forks source link

Fixing the active session count going negative. #319

Closed Pushpalanka closed 4 years ago

Pushpalanka commented 4 years ago

Purpose

Avoid the portal graph showing active session count as negative.

Goals

When a session termination event is received for a session that is not traced for the creation, analytics should not consider it as it will corrupt the data, making it possible to go negative. We consider this a highly unlikely situation unless analytics is enabled while there are active sessions(remember me, sessions maybe).

(Contributed by Lasantha)

Pushpalanka commented 4 years ago

fixes https://github.com/wso2/analytics-is/issues/495