Skip to content
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 protocol s3 from qio to qpicard #226

Closed
wants to merge 6 commits into from
Closed

Conversation

ChristinaXu2017
Copy link
Contributor

Description

as described on #217

Fixes #217

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

existing unit test, whole gradle build and regression test

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@holmeso
Copy link
Contributor

holmeso commented Jan 28, 2021

s3 package should stay in qio as it is to do with input and output. Let me know when you have taken this out and I'll take another look - thanks

@@ -27,7 +27,7 @@
import org.qcmg.common.log.QLogger;
import org.qcmg.common.log.QLoggerFactory;
import org.qcmg.common.string.StringUtils;
import org.qcmg.protocol.s3.S3AwareURLStreamHandlerFactory;
import org.qcmg.picard.s3.S3AwareURLStreamHandlerFactory;
Copy link
Contributor

Choose a reason for hiding this comment

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

I really don't understand this move. The s3 package is for low-level AWS operations - for example, all it ever throws is IOException. picard is specifically for handling fastq/bam/sam sequence data which is a way more specialized task. By moving this out of qio into qpicard that means any time I want to access ANY s3 file stream, whether it contains a VCF, text or whatever, I have to import a sequence data handling package. That just seems wrong to me.
A lot of my reluctance I think comes from my (very imperfect) understanding of what problem this is attempting to solve. It seems like if the issue is multiple paths to the same dependency, that is something that should be fixed in the build configuration (with excludes) rather than restructuring packages themselves.

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.

tidy up classes loading relationship
3 participants