Skip to content

Fix S3GeoTiffRDD behavior with some options. - #2317

Merged
echeipesh merged 3 commits into
locationtech:masterfrom
pomadchin:fix/s3if-conditions
Aug 7, 2017
Merged

echeipesh merged 3 commits into
locationtech:masterfrom
pomadchin:fix/s3if-conditions

Conversation

@pomadchin

Copy link
Copy Markdown
Member

Fixed incorrect S3GeoTiffRDD behavior when both partitionBytes & numPattition options set.
Fixes #2307

@pomadchin
pomadchin requested a review from lossyrob August 6, 2017 18:19
options.numPartitions.foreach{ n => S3InputFormat.setPartitionCount(conf, n) }
options.partitionBytes.foreach{ n => S3InputFormat.setPartitionBytes(conf, n) }
options.numPartitions.foreach { n => S3InputFormat.setPartitionCount(conf, n) }
if(options.numPartitions.isEmpty) options.partitionBytes.foreach { n => S3InputFormat.setPartitionBytes(conf, n) }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Worth a logger.warn about disregarding the partition bytes option.

@pomadchin
pomadchin force-pushed the fix/s3if-conditions branch 2 times, most recently from 72da164 to 91e22a8 Compare August 6, 2017 19:38
@pomadchin
pomadchin force-pushed the fix/s3if-conditions branch from 91e22a8 to b354101 Compare August 6, 2017 19:44

@jamesmcclain jamesmcclain 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.

This is not a full review, but I can confirm that this resolves the issue reported in #2307

@echeipesh
echeipesh merged commit 8e9de3d into locationtech:master Aug 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants