-
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
Per executor output v02 #337
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basic algorithm looks fine, just some remarks to tidy up the code.
geotrellis-extensions/src/test/scala/org/openeo/extensions/PyramidFactoryTest.scala
Outdated
Show resolved
Hide resolved
geotrellis-sentinelhub/src/test/scala/org/openeo/geotrellissentinelhub/PyramidFactoryTest.scala
Outdated
Show resolved
Hide resolved
openeo-geotrellis/src/test/scala/org/openeo/geotrellis/geotiff/TileGridTest.scala
Outdated
Show resolved
Hide resolved
openeo-geotrellis/src/test/scala/org/openeo/geotrellis/geotiff/TileGridTest.scala
Outdated
Show resolved
Hide resolved
openeo-geotrellis/src/test/scala/org/openeo/geotrellis/geotiff/WriteRDDToGeotiffTest.scala
Outdated
Show resolved
Hide resolved
openeo-geotrellis/src/main/scala/org/openeo/geotrellis/geotiff/package.scala
Outdated
Show resolved
Hide resolved
openeo-geotrellis/src/main/scala/org/openeo/geotrellis/geotiff/package.scala
Outdated
Show resolved
Hide resolved
val relativePath = Path.of(beforeOut).relativize(Path.of(absolutePath)).toString | ||
val destinationPath = beforeOut + relativePath.substring(relativePath.indexOf("/") + 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid string manipulation and call relativePath.getParent()
(see above).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does something different thatn getParent.
I added a comment:
// Remove the executorAttemptDirectory part from the path
openeo-geotrellis/src/main/scala/org/openeo/geotrellis/geotiff/package.scala
Outdated
Show resolved
Hide resolved
openeo-geotrellis/src/main/scala/org/openeo/geotrellis/geotiff/package.scala
Outdated
Show resolved
Hide resolved
I'm not sure what happens if Java has a way to clean up temp files upon JVM exit that we could look into if needed (that would be a separate issue). |
More importantly, I also think that this only works if the batch job bucket is mounted because AFAICT you're treating every path as a file on disk. |
|
Yes, but speculative execution launches additional redundant executors and I should hope that |
...sentinelhub/src/test/scala/org/openeo/geotrellissentinelhub/BatchProcessingServiceTest.scala
Outdated
Show resolved
Hide resolved
Speculative execution seems to kill remaining attempts when one succeeded: |
|
Change for spatial and spatialTemporal cubes. A sync request that loads a single file remains unchanged.
Need to assure sample by feature is tested correctly
Double check if per-date tiffs are written from executor. See if when they have speculative execution, the problem is there too