Github user rags22489664 commented on the pull request: https://github.com/apache/cloudstack/pull/1009#issuecomment-153245362 I noticed this issue when the API takes a while to respond and we fire the API concurrently. Not really sure how we can reproduce this without having to add 1000+ templates. Since it's a pure database related issue, can't we use a simulator and that many templates? As suggested, I will add couple of unit tests for this.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---