Closed
Bug 877884
Opened 12 years ago
Closed 11 years ago
Table creation probably generates wrong primary key
Categories
(Cloud Services Graveyard :: Server: Sync, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: telliott, Assigned: rfkelly)
References
Details
(Whiteboard: [qa+])
Attachments
(2 files)
797 bytes,
patch
|
telliott
:
review+
|
Details | Diff | Splinter Review |
833 bytes,
patch
|
telliott
:
review+
|
Details | Diff | Splinter Review |
http://hg.mozilla.org/services/server-storage/file/cffa43a1ceea/syncstorage/storage/sqlmappers.py#l77
The table definition defines id, username and collection columns and designates them PK. However, the PK should be username, collection, id (since username, collection is a common query).
Updated•12 years ago
|
QA Contact: jbonacci
Whiteboard: [qa+]
Updated•11 years ago
|
Priority: -- → P2
Assignee | ||
Comment 1•11 years ago
|
||
This is not a problem in current prod because ops create the tables by hand. But let's fix it in both places in case that situation changes in future.
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8388957 -
Flags: review?(telliott)
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #8388958 -
Flags: review?(telliott)
Reporter | ||
Comment 4•11 years ago
|
||
Comment on attachment 8388958 [details] [diff] [review]
sync1.5-bso-primary-key-order.diff
Review of attachment 8388958 [details] [diff] [review]:
-----------------------------------------------------------------
This, btw, is another reason I'm not a fan of ORMs :P
Attachment #8388958 -
Flags: review?(telliott) → review+
Reporter | ||
Updated•11 years ago
|
Attachment #8388957 -
Flags: review?(telliott) → review+
Assignee | ||
Comment 5•11 years ago
|
||
https://github.com/mozilla-services/server-syncstorage/commit/6c004bc35ec951b2aadf31e9ea3e93b88705e34c
http://hg.mozilla.org/services/server-storage/rev/617af5cd31e3
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 6•11 years ago
|
||
:rfkelly - I verified this in code, but what do we need to do to verify the following:
"But let's fix it in both places in case that situation changes in future."
Assignee | ||
Comment 7•11 years ago
|
||
> "But let's fix it in both places in case that situation changes in future."
Just make sure it's in both sync1.5 and sync1.1 codebases
Updated•2 years ago
|
Product: Cloud Services → Cloud Services Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•