Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-33437

Sitestats treats event_id as Integer

    Details

    • 12 status:
      Resolved
    • 11 status:
      Resolved
    • Test Plan:
      Hide

      Please add a Test Plan here.

      Show
      Please add a Test Plan here.

      Description

      Our site stats quit processing. The job was running but not processing any records. The log entries look like:
      09-Oct-2017 13:35:20.316 INFO [QuartzScheduler_Worker-3] org.sakaiproject.sitestats.impl.StatsAggregateJobImpl.execute Summary: 0 events processed in 0s (no entry will be added to SST_JOB_RUN; only events associated with a session are processed)
       
      The last event it successfully processed was event_id 2147483647 which happens to be the max value for Integer.
       
      It turns out org.sakaiproject.sitestats.impl.StatsAggregateJobImpl is getting event_id from the resultset as an Integer:

      lastProcessedEventId = rs.getInt("EVENT_ID");
       
      Should be:
      lastProcessedEventId = rs.getLong("EVENT_ID");
       

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ottenhoff Sam Ottenhoff
                Reporter:
                tawillis Ashley Willis
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code