Modify

Opened 15 years ago

Closed 14 years ago

#2075 closed defect (fixed)

API 0.6: don't upload more than 50K edits at once

Reported by: ivansanchez Owned by: Gubaer
Priority: major Milestone:
Component: Core Version: latest
Keywords: 0.6 Cc:

Description

The current rails API will fail if JOSM tries to upload more than 50000 edits (in order to prevent massive changesets from locking the main DB for too long) in the same changeset. More than 50K edits at once is a very rare but possible scenario.

JOSM should split the edits in batches of 50K, or just commit the first 50K edits (and let the user hit "upload" again for the next 50K edits).

Attachments (0)

Change History (14)

comment:1 by smsm1, 15 years ago

More specifically JOSM should be checking the capabilities of the server to see how many edits should be going into a changeset, before uploading, and splitting the upload into smaller chunks of multiple changesets.

comment:2 by beldin@…, 15 years ago

DEFINITELY, a way of splitting up the upload would be massively useful. I have a changeset of ~ 2300 updates I'm trying to push to the server at this point in time and the server is crashing and not providing any feedback as to the error. To be able to break the update down into smaller chunks so I could actually work out which edit is causing the problem would go a long way to solving the issue.

comment:3 by stoecker, 15 years ago

Ticket #3654 has been marked as a duplicate of this ticket.

comment:4 by stoecker, 15 years ago

Owner: changed from framm to team

in reply to:  description ; comment:5 by anonymous, 14 years ago

Yes, I am also having this problem. I am often offline and when I get to upload there often a lots of conflicts to solve and then restart uploading from the begining. Even with only 400 changes it takes around one hour and if someone is online-editing the same time you have to restart uploading mutiple times.
Please split the upload in smallest pieces as possible. The changeset can stay open and you can upload piece after piece.
Thanks a lot !!

Skyper

in reply to:  5 ; comment:6 by Gubaer, 14 years ago

Please split the upload in smallest pieces as possible. The changeset can stay open and you can upload piece after piece.
Thanks a lot !!

Try to disable the checkbox "Upload all changes in one request" in the Upload Dialog. JOSM then uploads your changes with the smallest possible granularity: one request per changed object. Uploading 400 changes with individual requests may take longer but you know better where you are in the upload process (better progress indication).

... and if someone is online-editing the same time you have to restart uploading mutiple times.

You can't avoid that with either upload approach. If data you've modified has been modified on the server too, you have to resolve the conflicts and you have to restart multiple times.

comment:7 by smsm1, 14 years ago

You could try using file > update data, which will download all the areas that you have previously downloaded. This will throw up all the conflicts that there are, thus make it far more likely to be able to upload in one go.

in reply to:  6 ; comment:8 by skyper, 14 years ago

Replying to Gubaer:

... and if someone is online-editing the same time you have to restart uploading mutiple times.

You can't avoid that with either upload approach. If data you've modified has been modified on the server too, you have to resolve the conflicts and you have to restart multiple times.


But why do I have to restart all over again. Is is not possible to upload as much as possible then sync, resolve conflicts and upload the rest ?




in reply to:  8 ; comment:9 by anonymous, 14 years ago

Replying to skyper:

But why do I have to restart all over again. Is is not possible to upload as much as possible then sync, resolve conflicts and upload the rest ?


As stated above: Try to disable the checkbox "Upload all changes in one request" in the Upload Dialog.

Then it will upload one by one rather than everything at once.

in reply to:  9 ; comment:10 by skyper, 14 years ago

Replying to anonymous:

As stated above: Try to disable the checkbox "Upload all changes in one request" in the Upload Dialog.

Then it will upload one by one rather than everything at once.

Do I have to close the changeset ?

in reply to:  10 comment:11 by smsm1, 14 years ago

Replying to skyper:

Do I have to close the changeset ?

No. The changeset will automatically close either 1 hour after the last change or 24 hours after opening, whichever comes first.

comment:12 by stoecker, 14 years ago

Ticket #3654 has been marked as a duplicate of this ticket.

comment:13 by Gubaer, 14 years ago

Owner: changed from team to Gubaer

I'm going to work on this after the next release (assigning to myself). I feel major changes will be necessary and I'd like to combine it with #3684.

comment:14 by Gubaer, 14 years ago

Resolution: fixed
Status: newclosed

(In [2599]) fixed #4130: Chunked upload mode counter is wrong
fixed #4118: Upload dialog too complicated
fixed #4129: Hide the new "Upload data in one request/chunks/individually" behind an expanding "Upload method" box
fixed #2075: API 0.6: don't upload more than 50K edits at once
fixed #4044: Huge uploads never end [should be solved with chunked upload mode]
fixed #4110: Upload dialog spacing wrong
fixed #3386: Upload dialog has empty areas when the changeset doesn't include all of add/modify/delete operations
see #3369: bulk import helper [JOSM now supports multi changesets uploads]

See online help for more details.

Completes r2598

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Gubaer.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.