View Issue Details

IDProjectCategoryView StatusLast Update
0014808MMW v4Synchronizationpublic2018-05-14 18:24
Reporterpeke Assigned To 
PriorityurgentSeveritymajorReproducibilitysometimes
Status resolvedResolutionreopened 
Target Version4.1.21Fixed in Version4.1.21 
Summary0014808: Sync: Timeout due the Auto Convert
DescriptionIn some cases Sync can timeout due the auto convert.

Additional InformationStarted in https://www.mediamonkey.com/forum/viewtopic.php?f=6&t=89737

Logs supplied with TICKET KHE-556-89920

YKJ-524-31229
TagsNo tags attached.
Fixed in build1867

Activities

Ludek

2018-05-09 09:20

developer   ~0050222

Last edited: 2018-05-09 10:59

In the log I see long "preparing to download" phase.
This issue happens when there are thousands of tracks on the sync-list and _all_ tracks need auto-conversion.
In that case MMA asks for file stream for every track and gets a reply that the file is about to be converted,
but just asking the stream for thousands of tracks takes some time and meanwhile some tracks are already prepared (converted).

I see these possible improvements:
1) On MMW side: optimize the process of asking the stream, currently the rate on the user's DB is just 2 files per second (while it is 10 files per second on my DB). But anyhow there are some unnecessary DB operations (like logging the connections to MediaConnections table) , optimizing it improves the rate to 20 files per second.

2) On MMA side: MMA shouldn't ask all streams at once, but make it more gradually. e.g. To ask just 100 tracks and then check whether some of them aren't already prepared to download and ask them again.

Ludek

2018-05-09 09:46

developer   ~0050223

Last edited: 2018-05-09 11:00

1) is fixed in 4.1.21.1867 (was low risk)

Sent testing EXE to the user

2) Assigned to Marek to review the suggested change
+ review the user's log ID i99qddd7d1 (i.e. why there was "Sync Incomplete" error as MMA haven't asked for the converted files at all)

Ludek

2018-05-10 21:20

developer   ~0050250

Last edited: 2018-05-11 09:38

Reducing priority for item 2)
User indicated that 1) resolved the issue although "Preparing for download" phase still takes a long time (5 minutes) with the rate 20 files per second (corresponding with my tests after fixing item 1).
So implemeting 2) would reduce the "Preparing for download" phase further, nevertheless in the overall time of convert+download for thousands of tracks it won't be noticeable.
i.e. it would be rather "cosmetic" improvement, another option could be just making the progress bar for "Preparing for download" more verbose (or show percentage)

peke

2018-05-14 14:55

developer   ~0050292

New logs (MMW+MMA) and Ticket YKJ-524-31229

Ludek

2018-05-14 18:24

developer   ~0050294

Based on the last log from YKJ-524-31229 it seems that the network location \\motorcom\ was temporarily inaccessible.
Re-resolving, to be confirmed by user, I'll re-open in case of an issue.