1250 Tag edit can lose external File Monitored edits [#2609]

Beta Testing for Windows Products and plugins

Moderator: Gurus

chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

1250 Tag edit can lose external File Monitored edits [#2609]

Post by chrisjj »

1 In Mp3tag change the album tags of 500 tracks in an MM File Monitored folder.
2 Switch to MM and soon change some rating on those tracks

Expected: #1 changes intact
Observed: Some #1 changes lost

I'd guess this is due to a race hazard - the MM tag edit operation at #2 is sourcing from the library without first checking that info is up-to-date from the File Monitor at #1.
Chris
Eyal
Posts: 3118
Joined: Sun Jun 26, 2005 9:27 am
Location: Québec
Contact:

Re: 1250 Tag edit can lose external File Monitored edits ------

Post by Eyal »

That is just playing cat and mouse.
:lol:
Skins for MediaMonkey: Cafe, Carbon, Helium, Spotify, Zekton. [ Wiki Zone ].
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: 1250 Tag edit can lose external File Monitored edits ------

Post by chrisjj »

MM = cat, user data = mouse ?? :)
Chris
rusty
Posts: 8826
Joined: Tue Apr 29, 2003 3:39 am
Location: Montreal, Canada

Re: 1250 Tag edit can lose external File Monitored edits ------

Post by rusty »

jiri
Posts: 5426
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: 1250 Tag edit can lose external File Monitored edits ------

Post by jiri »

I don't think there can be anything done against this, if two edits of the same file occurs almost simultaneously in two applications, the last edit will 'win'. That's definitely true for Properties dialog, when you confirm (by pressing OK button) all tag changes. I can see the point that changing a single field (like rating) would not modify other fields, but it currently isn't possible, MM always updates the whole tag.

Jiri
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: 1250 Tag edit can lose external File Monitored edits ------

Post by chrisjj »

> I don't think there can be anything done against this,

Won't the suggested "first checking that info is up-to-date from the File Monitor" solve it?

> if two edits of the same file occurs almost simultaneously in two applications, the last edit will 'win'.

That's fine by me. If the user has performed both manually then however fast he switched apps. he expects the last to win.

But that is not the case reported. The case reported does not require almost simultaneous, and the problem is that the edit that wins is the first, not the last.
Chris
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: 1250 Tag edit can lose external File Monitored edits ------

Post by chrisjj »

> Added to http://www.ventismedia.com/mantis/view.php?id=2609

That Mantis issue very much looks like a distinct issue.
Chris
rusty
Posts: 8826
Joined: Tue Apr 29, 2003 3:39 am
Location: Montreal, Canada

Re: 1250 Tag edit can lose external File Monitored edits ------

Post by rusty »

> Added to http://www.ventismedia.com/mantis/view.php?id=2609

That Mantis issue very much looks like a distinct issue.
It is a unique bug, but I think that there's a single solution for both issues (i.e. a single queue that tracks changes to metadata from within MM and from without).

-Rusty
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: 1250 Tag edit can lose external File Monitored edits ------

Post by chrisjj »

> I think that there's a single solution for both issues (i.e. a single queue that tracks changes to metadata from within MM and from without).

OK, but I can see that being tricky. Users might not accept rating change being barred/delayed for the duration of a File Monitoring.

Good luck!
Chris
Post Reply