Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(349)

Issue 7307066: Never decrement next id in nova testservce

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by gz
Modified:
11 years, 3 months ago
Reviewers:
dimitern, mp+147208, jameinel
Visibility:
Public.

Description

Never decrement next id in nova testservce Adjusting the next id downwards is not necessary and can cause breakage across testcases when cleanup does not exactly match creation, which is common in juju. For example: * TestA creates two rules: next id is 3, rules is {1, 2} * TestA deletes rule 1: next id is 2, rules is {2} * TestB creates one rule: boom... only when TestA runs first https://code.launchpad.net/~gz/goose/never_decrement_next_id/+merge/147208 (do not edit description out of merge proposal)

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -9 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M testservices/novaservice/service_http.go View 3 chunks +0 lines, -9 lines 0 comments Download

Messages

Total messages: 4
gz
Please take a look.
11 years, 3 months ago (2013-02-07 18:49:45 UTC) #1
jameinel
LGTM. It isn't like we are worried about overflowing an int here. :) I'm curious ...
11 years, 3 months ago (2013-02-07 19:49:08 UTC) #2
dimitern
LGTM. I wasn't sure if I had to do that in the first place (the ...
11 years, 3 months ago (2013-02-07 20:19:47 UTC) #3
gz
11 years, 3 months ago (2013-02-08 17:15:08 UTC) #4
On 2013/02/07 19:49:08, jameinel wrote:
> 
> I'm curious what the real behavior is, would it be hard to test creating and
> releasing a bunch of Ids on canonistack and seeing how the numbers change
(Maybe
> not ideal, since there is noise in that system.)

Pretty sure it's just an auto-increment in mysql for the things that aren't
UUIDs still.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b