Uploaded image for project: 'Torque'
  1. Torque
  2. TORQUE-117

Stopping IDBroker does not clear the cached ids

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3
    • 4.0-beta1
    • Runtime
    • 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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tfischer Thomas Fox
            jonathan_purvis Jonathan Purvis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment