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

Enabled macros for core plugin batch sinks #394

Merged
merged 1 commit into from
Aug 17, 2016

Conversation

knazir
Copy link
Contributor

@knazir knazir commented Aug 15, 2016

The following properties have had macros enabled:

S3BatchSink(s):

  • basePath
  • accessID
  • accessKey
  • pathFormat
  • fileSystemProperties

TPFSSink(s):

  • name
  • basePath
  • filePathFormat
  • timeZone
  • partitionOffset
  • cleanPartitionsOlderThan

SnapshotFileSetSink:

  • name
  • basePath
  • fileProperties
  • cleanPartitionsOlderThan

Also addresses this JIRA: https://issues.cask.co/browse/HYDRA-394

@knazir knazir changed the title Added macros to core plugin batch sinks Enabled macros for core plugin batch sinks Aug 15, 2016
// do not create file system properties if macros were provided, wait for runtime
if (!this.config.containsMacro("fileSystemProperties") && !this.config.containsMacro("accessID") &&
!this.config.containsMacro("accessKey")) {
this.config.fileSystemProperties = updateFileSystemProperties(this.config.fileSystemProperties,
Copy link
Contributor

Choose a reason for hiding this comment

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

the constructor is called only during test cases right, do you need this for test case fix?

@knazir
Copy link
Contributor Author

knazir commented Aug 16, 2016

Guild is breen: http://builds.cask.co/browse/HYP-BAD48-5

@albertshau
Copy link
Contributor

lgtm

@knazir knazir merged commit f0fb52a into release/1.4 Aug 17, 2016
@knazir knazir deleted the core-batch-sink-macros branch August 17, 2016 21:13
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