-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cut off history for some (few) elements #724
Comments
The symptoms look similar to the issue I have reported in #661, though it was impacting generated clone files back then. In a backup from April 2023, versions 10-12 are also absent in the query results. So this issue may be around for some time already. OSMCha is still running a fairly old version "Overpass API 0.7.57.1 74a55df", and even there the issue can be reproduced. |
That is a good observation. But the node 4379348552 in question there is unaffected here. This bug here is quite well-located: there are both missing and surplus entries in The comparison of the existing |
Some context of the map file replication: this may the map files can be taken out from the clone download, making the clone download smaller. In the long run, I hope to also shave off a couple of other redundant files such that the actual download shrinks to 120 GB or so for the geodata and 240 GB or so for full attic data. The redundant files are then replicated after download and before applying updates. |
That's actually good news. I also found all 4 versions both in the node metadata and changelog files. As a summary: Versions 10-12 all have the same index, then when moving from version 12 to 13, the index value changes. Version 14 again has the same index as version 13:
I think in this case, the attic map file should contain the value 0xff for node 26366177, and the node_attic_indexes file should contain the list of all attic indexes. However, we're only seeing the index for version 13 in the map attic file, and no entries in node_attic_indexes. This way, we're losing the information, that versions 10-12 have another index. Does this sound right as description of the current situation?
This seems like a good idea. I'm wondering, if users who are not interested in attic data could instead download a planet PBF and let the import run overnight. That's a 75GB download only, and the PBF could then be used for other scenarios as well, like rendering tiles or geocoding. |
So when regenerating nodes_attic.map and node_attic_indexes.bin, I'm getting correct results for the query above. For some reason, I don't see differences in node_attic_indexes.bin after node 7802847084 on my local clone. This node was created and last changed in August/September 2020. This corresponds to almost 3 years without issues. I'm running some heavily modified code, that's why I'm not sure if this applies to upstream. Did you notice something similar in your db as well? Maybe the issue was fixed at some point as a side effect of some other change, and now only the data in attic before the change is still broken.
|
Yes, the description is correct. Indeed, the newest incident in the data is from August 2020. No development at all has happened around that time. So there is a chance that the underlying bug has been fixed coincidentally, but there is no plausible candidate for the relevant chance. Keeping therefore the bug open for the moment. |
On the current public instance the request
starts off version 13, but should have also versions 10 to 12. A distinct search
shows that it is present in the database but not found.
The bug has been spotted while checking upcoming code in
map_file_replicator.test.cc
to reconstruct the map files from the data files: the side-by-side comparison proves the existing attic map file to be somewhat broken, cause so far unknown.Most likely the data can be fixed by replicating the map files from the data files once the bug in the updating code has been fixed.
The text was updated successfully, but these errors were encountered: