Skip to content

fix to be able to import and run as server on different machines - #3071

Merged
karussell merged 2 commits into
graphhopper:masterfrom
IldarKhayrutdinov:files-order
Oct 21, 2024
Merged

karussell merged 2 commits into
graphhopper:masterfrom
IldarKhayrutdinov:files-order

Conversation

@IldarKhayrutdinov

@IldarKhayrutdinov IldarKhayrutdinov commented Oct 19, 2024 •

Copy link
Copy Markdown
Contributor

The elements returned by the DirectoryStream iterator are in no specific order:
https://stackoverflow.com/questions/43705981/directorystream-return-path-in-what-kind-of-order-filename-last-modified-file

Then hints contains areas list in the order in which they are read by resolveCustomAreas method (fixed by PR).
Thus the Profile.getVersion can return different hash, in cases where there are custom areas.

I had a problem when I build cache (import) and moved it to another machine to start (server).

@karussell karussell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, makes sense.

@karussell karussell added this to the 10.0 milestone Oct 21, 2024
@karussell karussell added the bug label Oct 21, 2024
@karussell
karussell merged commit cc45cf0 into graphhopper:master Oct 21, 2024
@IldarKhayrutdinov
IldarKhayrutdinov deleted the files-order branch November 4, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants