Uploaded image for project: 'CloverDX'
  1. CloverDX
  2. CLO-18761

Potential synchronization issue in DateDataField.duplicate()

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Engine
    • Security Level: Users (General product issues)
    • Labels:
      None
    • QA Testing:
      UNDECIDED

      Description

      Method DateDataField.duplicate() does not duplicate internal DateFormatter, which is not generally thread-safe (SimpleDateFormatter). This is potential issue, because the duplicated record cannot be used by different thread. It seems that our current usage of duplicate method does not conflict with this condition, but it is potential issue in the future.

      Possible solutions:
      1) In case the DateDataField is duplicated, the internal DateFormatter should be wrapped into a synchronized implementation.

      2) We should use thread-safe date formatters. For example, we use SimpleDateFormatter implementation, which is not thread-safe, but java already provides thread-safe implementation DateTimeFormatter, which should be used instead. Unfortunately these implementations are not 100% compatible. Similar issue has been already solved in Dictionary - CLO-16945.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              slamam Martin Slama
              Reporter:
              zatopekm Martin Zatopek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: