Bug #46803 UI: event / page count wrong after closing some events and using 'last' link

Submitted: 19 Aug 2009 8:36 Modified: 19 Aug 2009 8:40
Reporter: Carsten Segieth Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Enterprise Monitor: Web Severity:S3 (Non-critical)
Version:2.1.0.1093 OS:Any
Assigned to: Assigned Account CPU Architecture:Any

[19 Aug 2009 8:36] Carsten Segieth
Description:
The event count gets 'out of sync' when the number of open events skips below the next 'events per page boundary' (which is by default a multiple of 20) and one uses the 'last' link. Then "No events found" is shown together with a silly numbering like

   [61 to 58 of 58] << first << prev 1 2 3

This happens both on the main dashboard and on the Events page. Closing events on the 'Events' page or on the dashboard both have effects for the other page, depending whether there the 'times-20' boundary is hit. So closing a lot of events can also affect links like 'prev'.

Work around:
------------
- always refresh page before using a navigation link
- use one of the 'first' link lets the counter re-sync and show the remaining events

How to repeat:
- have > 20 events on the main dashboard or events page (with the default of 20 events shown per page)
  For getting the critical events for the main dashboard page I started a lot of agents and killed them (no 'stop', just 'kill')
- close some events so that there are now less than the 'next 20-boundary', e.g. from 21 to 18
- click on 'last' link (and do not refresh the page before doing this)
- see "No events found" and crazy numbering like "[ 21 to 18 of 18 ]"

Suggested fix:
idea: always re-calc before processing one of the links that go to other pages, like 'next', 'prev', 'last' and also the page numbered links

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.051 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.