Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-10055

Calculation of history cleanup batch window does not respect daylight saving time changes

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Unresolved
    • Icon: L3 - Default L3 - Default
    • None
    • 7.9.0, 7.10.0, 7.11.0, 7.12.0
    • engine
    • None

      Scenario 1:

      • The day of daylight saving time change (example 01.04.2019 00:10 summer time)
      • History cleanup has a batch window configure to 23:00 - 01:00
      • The job will be scheduled and executed but after the time change it will be scheduled for the next day so it will not run as it is planned
        During the calculation of the batch window, the window is reduced by an hour since the previous day is a different timezone (winter time). The deduction is coming form [1]

      Scenario 2:

      • Current time 28.10.2019 01:10 winter time
      • History cleanup has a batch window configure to 23:00 - 01:00
      • The job will be scheduled even though we are outside of the batch window.
        During the calculation of the batch window, the window is extended with an extra hour since the previous day is a different timezone (summer time). The extra hour is coming from [1]

      [1]: https://github.com/camunda/camunda-bpm-platform/blob/2917d85a15a0b44c5a88e640a20a8c3f0f9da758/engine/src/main/java/org/camunda/bpm/engine/impl/jobexecutor/historycleanup/DefaultBatchWindowManager.java#L108-L120

      A test case is committed to the ticket.

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              yana.vasileva Yana Vasileva
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: