-
Notifications
You must be signed in to change notification settings - Fork 4
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
Move file to results #335
Move file to results #335
Conversation
This should also fix the error in integration tests.
|
@bossie had a nice idea to avoid the retry logic: |
It's just that doing it twice apparently does not suffice, and why would doing it 5 times fix it? If the problem is that executors are getting in each other's way (be it because of speculation or otherwise) maybe we should just avoid that. I thought maybe this could work:
|
openeo-geotrellis/src/main/scala/org/openeo/geotrellis/geotiff/package.scala
Show resolved
Hide resolved
The unique filenames solution is probably more robust, but a file move on S3 is more heavy. It will need to download and upload the file again, giving some delays and maybe will take a lot of memory again. (Not more than during job execution I guess, but stil) |
This also sounds feasible. Only have to be careful with the fact that users want to provide arbitrary asset names. Of course, if the suffix uses a fixed number of characters, then I guess it's fool proof? |
I'll start implementing that one. |
@EmileSonneveld yes perhaps merge this one already. I'd like to avoid too much delay. |
There is already a version that only tries the move twice on staging. This will make 5 tries and is a bit more thread-safe