Ticket #175 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

CAD log watcher doesn't return most recent entry

Reported by: jdalbey Owned by: jdalbey
Priority: High Milestone: Sep 2019 Training
Component: Unified Logger Version:
Severity: Major Keywords:
Cc:

Description

The CAD log watcher component of Unified Logger has a small defect. It assumes that the most recent entry in the CADcomments.log is the last one, but in fact they are ordered by Incident number, not by arrival time. E.g.,

CAD log, Incident #187, Anonymous Trainee: COMMENT FOR INCIDENT 187
CAD log, Incident #201, Anonymous Trainee: MY WHAT BIG EYES YOU HAVE
CAD log, Incident #210, Anonymous Trainee: HELLO WORLD

The entry for Incident 201 is the most recent entry, but it isn't at the bottom of the file.

Change History

comment:1 Changed 7 years ago by jdalbey

  • Status changed from new to closed
  • Resolution set to fixed

Modified writeToCADlog in Coordinator.java to sort the items by timestamp instead of incident number. Fixed in r465. (Note: no changes to CAD log watcher).

Note: See TracTickets for help on using tickets.