EventStore / EventStore.UI

The user interface for Event Store
Other
58 stars 38 forks source link

#of msgs in Persistent Subscription Dashboard in newer versions #336

Closed lakshdeepsingheventstore closed 1 year ago

lakshdeepsingheventstore commented 2 years ago

The "#of msgs" column in the Persistent Subscription Dashboard in newer versions shows one extra/additional event (shows +1, should be -1). This behavior has been observed in newer versions (v21.10.7 and v21.10.8). However, such behavior is not observed in previous versions (not observed on v21.6). The below screenshot is from v21.10.8. The stream test-stream does not exist in the database and hence has no event. However as can be seen in the screenshot, the #of msgs column shows 1.

A similar observation has been made on v21.10.7. In the below screenshot, the stream test-stream4 does not have any event and does not exist in the database, but still the #of msgs column shows 1.

However, in v21.6, this behavior is not observed. In the screenshot below, the stream test-stream4 does not have any event and does not exist in the database. As can be seen in the screenshot also, the #of msgs column also shows 0.

Internal Ticket : https://eventstore.freshdesk.com/a/tickets/110503

STEPS TO REPRODUCE THE ISSUE

  1. Start server on v21.10.7 or v21.10.8.
  2. Create a new Persistent Subscription on a stream that does not exist in the system.
  3. It can be observed that the the #of msgs column shows 1 despite the stream having no events in it.
  4. Repeat the above steps on v21.6 It can be observed that the the #of msgs column shows 0, which should be the ideal scenario.

DB-116