Torque
  1. Torque
  2. TORQUE-117

Stopping IDBroker does not clear the cached ids

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: 4.0-beta1
    • Component/s: Runtime
    • Labels:
      None

      Description

      The IDBroker.stop() method does not clear the cached ids. This means that if Torque is then restarted with a different database, the ids generated will be wrong. One way to solve this is to add these lines to IDBroker.stop():
      ids.clear();
      quantityStore.clear();
      lastQueryTime.clear();

      There is probably a better way of doing this.

        Activity

        Jonathan Purvis created issue -
        Thomas Fox made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Thomas Fox [ tfischer ]
        Fix Version/s 4.0 [ 12312102 ]
        Resolution Fixed [ 1 ]
        Thomas Fox made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Thomas Fox
            Reporter:
            Jonathan Purvis
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development