Issue Details (XML | Word | Printable)

Key: MBS-5110
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Oliver Charles
Reporter: Oliver Charles
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MusicBrainz Server

Inserts into artist_tag_raw are not checking for existence first

Created: 08/Aug/12 02:47 PM   Updated: 03/Sep/12 10:34 AM   Resolved: 03/Sep/12 10:34 AM
Component/s: None
Affects Version/s: None
Fix Version/s: Bug fixes, 2012-09-03


 Description  « Hide

There are a lot of lines (every day) in totoro's PostgreSQL server log:

Aug  8 07:01:27 totoro postgres[28892]: [2-1] ERROR:  duplicate key value violates unique constraint "artist_tag_raw_pkey"
Aug  8 07:01:27 totoro postgres[28892]: [2-2] DETAIL:  Key (artist, editor, tag)=(23256, 580498, 41014) already exists.
Aug  8 07:01:27 totoro postgres[28892]: [2-3] STATEMENT:  INSERT INTO artist_tag_raw (artist, tag, editor) VALUES ('23256', '41014', 'xxx')

Whatever is trying to do these insertions is doing a bad job of checking first.



Sort Order: Ascending order - Click to sort in descending order
Oliver Charles added a comment - 08/Aug/12 02:48 PM

I've put this in 2012-09-03 because I'd really like to get it squashed, but not sure I'll make it this week. If I have time, I'll bump it forward.


Oliver Charles added a comment - 20/Aug/12 03:52 PM