Modify

Opened 16 years ago

Closed 9 years ago

#4783 closed enhancement (wontfix)

Update Data should warn if one of the bounds has grown beyond 50k items

Reported by: mk408 Owned by: mk408
Priority: minor Milestone:
Component: Core Version: latest
Keywords: splitting 50k update Cc: xeen

Description (last modified by xeen)

If a previous downloaded area (<bounds>) has, on the OSM server, grown to contain more than 50000 items, trying to update will fail due to the server returning an error that the requested download is too large.

A partial fix would be to continue with further requests, if there are any, and communicating the error to the user.

A complete fix would involve automatically splitting the area and retrying. Currently, I perform this manually by editing the .osm file.

Attachments (0)

Change History (13)

comment:1 by xeen, 14 years ago

Description: modified (diff)

What is the actual use case for this? I believe it’s very rare that an area grows beyond 50k items if it’s been downloaded recently. Of course, the error should be reported properly, but auto-splitting seems like a way to circumvent the server’s limits -- I doubt the 50k items are really a problem, it’s more likely it was implemented to prevent users from downloading way-too-large areas.

comment:2 by stoecker, 14 years ago

Resolution: wontfix
Status: newclosed

We had multiple requests for "splitting download" in the past. The idea of the server limits is to keep users from selecting way too large areas and thus stressing the server. JOSM already has some ways to prevent this (e.g. the update data function), but implementing a tiled download as you request would finally break the idea of download restrictions.

Until we have a really important use-case where also OSM server admins would agree this is a WONTFIX.

comment:3 by xeen, 14 years ago

Cc: xeen added
Keywords: splitting added
Priority: normalminor
Resolution: wontfix
Status: closedreopened
Summary: Update Data fails if one of the bounds has grown beyond 50k itemsUpdate Data should warn if one of the bounds has grown beyond 50k items
Type: defectenhancement

While I agree with you, I doubt this ticket is fixed. If update data fails for that reason, we should announce that to the users and educate them. If we don’t, we’ll likely get further “implement splitting” tickets. However, as message like “Sorry, but your data set is too large. The server’s little mind can only handle that much without affecting other OSM users, so it kindly asks you to make smaller requests «insert donate link here»” might actually make a user change behavior instead of assuming it’s a bug.

I consider working on the bug; however I have a hard time to think of how to test this… it doesn’t sound to appealing to setup your own server and I don’t really want to send a lot of 50k+ requests to the server so it rejects me…

comment:5 by xeen, 14 years ago

thanks for the tip, but there doesn’t seem to be data anywhere in the Dev-API. Let’s hope that the “50k exceeded” and “bbox too large” have the same HTTP code…

comment:6 by xeen, 14 years ago

Well, there actually is a proper error message for that. I suggest rewording it then, but this is open for discussion. The current wording is:

+ tr("The area you tried to download is too big or your request was too large."
+ "<br>Either request a smaller area or use an export file provided by the OSM community.")

My suggestion (<br>s have been added so that the lines are roughly equal in length, but we probably want to make that a real, auto-breaking paragraph…):

+ tr("Your download is either too large or contains too many items.<br>"
+ "The server’s little mind only handles that much, before being<br>"
+ "slow for other OSM users. It kindly asks you to make smaller<br>"
+ "requests. You can also <a href=\"http://donate.openstreetmap.org/\">donate to keep it running</a>.");

comment:7 by stoecker, 14 years ago

No sloppy messages please.

comment:8 by xeen, 14 years ago

Different suggestion then:

Your download is either too large or contains too many items. The server can handle only that much before being slow for other OSM users. That’s why you may only make smaller requests. You can also donate to keep it running.

comment:9 by Don-vip, 9 years ago

Owner: changed from team to mk408
Status: reopenedneedinfo

Does the problem now happens with 10k objects? (since the API lowered the maximum changeset elements from 50k to 10k)

comment:10 by Don-vip, 9 years ago

Keywords: 50k update added

in reply to:  9 comment:11 by stoecker, 9 years ago

Replying to Don-vip:

Does the problem now happens with 10k objects? (since the API lowered the maximum changeset elements from 50k to 10k)

Also for downloads?

comment:12 by Don-vip, 9 years ago

I don't know if the download limit is the same as upload limit.

comment:13 by stoecker, 9 years ago

Resolution: wontfix
Status: needinfoclosed

org.openstreetmap.josm.io.OsmApiException: ResponseCode=400, Error Header=<You requested too many nodes (limit is 50000). Either request a smaller area, or use planet.osm>

Still 50k.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain mk408.
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.