[osmosis-dev] read-change-interval stuck
Brett Henderson
brett at bretth.com
Wed Aug 18 13:25:40 BST 2010
On Sat, Aug 14, 2010 at 8:12 AM, Frederik Ramm <frederik at remote.org> wrote:
> Hi,
>
>
> Nakor wrote:
>
>> I have a setup where I first run osmosis to download changes (--rri) then
>>> in a second step stuff the result into osm2pgsql. About once every 1-2
>>> months, this breaks, and osmosis hangs forever. When I notice it a few hours
>>> later and strace the osmosis process, I find that it somehow tries to read
>>> something from the network and only gets timeouts.
>>>
>>
> Do you mean you download to an xml file and then feed the xml file into
>> the database?
>>
>
> Yes. That way I can always be sure not to start loading something into the
> DB before it has fully downloaded. Probably paranoia on my part, since
> transactions should make sure everything is right, but ...
There's nothing wrong with some healthy paranoia :-) But it seems
unwarranted here. The --rri task downloads all files, then merges them
together (sorting as required), then streams them to the destination.
Between database transactions and the fact that no output is sent until
everything is completely downloaded and merged, you shouldn't have any
problems importing directly. And if something does break you should be able
to re-import anyway right?
Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20100818/2d49ca59/attachment.html>
More information about the osmosis-dev
mailing list