You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.
Reporter: jburgess777[at]googlemail.com [Submitted to the original trac issue database at 8.01pm, Wednesday, 24th September 2008]
While testing the new C based GPX importer I got a stack trace from ruby about a missing file. It looks to me like the trace_controller adds the entry to the DB before the file is moved to the trace directory. There is a chance for the import daemon to try picking up the file in this interval.
Currently:
sites/rails_port/app/controllers/trace_controller.rb
if trace.save
FileUtils.mv(filename, trace.trace_name)
else
FileUtils.rm_f(filename)
Suggest something like...
FileUtils.mv(filename, trace.trace_name)
if not trace.save
FileUtils.rm_f(@trace.trace_name)
The text was updated successfully, but these errors were encountered:
Author: jburgess777[at]googlemail.com [Added to the original trac issue at 9.17pm, Wednesday, 24th September 2008]
On IRC Daniel Silverstone pointed out that perhaps the trace.id (and hence the trace_name) may not be valid until the the entry is saved which may cause a problem with the suggestion.
Daniel might add a delay to the import daemon to avoid this when fetching new traces for processing.
Author: dsilvers[at]digital-scurf.org [Added to the original trac issue at 10.35pm, Wednesday, 24th September 2008]
In r35 of my gpx-import branch (bzr branch http://bzr.digital-scurf.org/trees/dsilvers/gpx-import) I added code to make it so that rows in the DB need to be timestamped at least SLEEP_TIME seconds in the past (default is 30).
That should give the rails app a chance to get the gpx into place.
Reporter: jburgess777[at]googlemail.com
[Submitted to the original trac issue database at 8.01pm, Wednesday, 24th September 2008]
While testing the new C based GPX importer I got a stack trace from ruby about a missing file. It looks to me like the trace_controller adds the entry to the DB before the file is moved to the trace directory. There is a chance for the import daemon to try picking up the file in this interval.
Currently:
Suggest something like...
The text was updated successfully, but these errors were encountered: