Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-1688

ConsistencyToken.hashCode() is not thread safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.2.1.6, 10.2.2.0, 10.3.1.4
    • 10.2.1.6
    • Network Server
    • None
    • Low

    Description

      If ConsistencyToken.hashCode() is run concurrently by different threads, some of the threads may see a partial result instead of the correct hash code. This is not a problem in the current code since all calls to that method are synchronized on a higher level, but it would be good to fix in case the method will be used differently in the future.

      Attachments

        1. derby-1688.diff
          0.7 kB
          Knut Anders Hatlen
        2. derby-1688.stat
          0.1 kB
          Knut Anders Hatlen

        Activity

          People

            knutanders Knut Anders Hatlen
            knutanders Knut Anders Hatlen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: