You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gobblin.apache.org by GitBox <gi...@apache.org> on 2020/02/14 23:49:10 UTC

[GitHub] [incubator-gobblin] sv2000 opened a new pull request #2892: GOBBLIN-1052: Create a spec consumer path if it does not exist in FS …

sv2000 opened a new pull request #2892: GOBBLIN-1052: Create a spec consumer path if it does not exist in FS …
URL: https://github.com/apache/incubator-gobblin/pull/2892
 
 
   …SpecConsumer
   
   Dear Gobblin maintainers,
   
   Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
   
   
   ### JIRA
   - [x] My PR addresses the following [Gobblin JIRA](https://issues.apache.org/jira/browse/GOBBLIN/) issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"
       - https://issues.apache.org/jira/browse/GOBBLIN-1052
   
   
   ### Description
   - [x] Here are some details about my PR, including screenshots (if applicable):
   Create a spec consumer path if it does not exist in FS SpecConsumer
   
   ### Tests
   - [x] My PR adds the following unit tests __OR__ does not need testing for this extremely good reason:
   Trivial change.
   
   ### Commits
   - [x] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "[How to write a good git commit message](http://chris.beams.io/posts/git-commit/)":
       1. Subject is separated from body by a blank line
       2. Subject is limited to 50 characters
       3. Subject does not end with a period
       4. Subject uses the imperative mood ("add", not "adding")
       5. Body wraps at 72 characters
       6. Body explains "what" and "why", not "how"
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-gobblin] sv2000 commented on a change in pull request #2892: GOBBLIN-1052: Create a spec consumer path if it does not exist in FS …

Posted by GitBox <gi...@apache.org>.
sv2000 commented on a change in pull request #2892: GOBBLIN-1052: Create a spec consumer path if it does not exist in FS …
URL: https://github.com/apache/incubator-gobblin/pull/2892#discussion_r383041046
 
 

 ##########
 File path: gobblin-cluster/src/main/java/org/apache/gobblin/cluster/HelixUtils.java
 ##########
 @@ -293,6 +294,10 @@ private static void deleteStoppedHelixJob(HelixManager helixManager, String work
     Map<String, WorkflowConfig> workflowConfigMap = taskDriver.getWorkflows();
     for (String workflow : workflowConfigMap.keySet()) {
       WorkflowConfig workflowConfig = taskDriver.getWorkflowConfig(workflow);
+      //Filter out any stale Helix workflows which are not running.
+      if (workflowConfig.getTargetState() != TargetState.START) {
 
 Review comment:
   Thanks for this comment. The purpose of this method is two fold: 1. The caller may want to cancel a Helix workflow given a job name and 2. The caller may want to get the workflow id and use that to query other information such as the workunits processed by the job. For both 1 and 2, the caller is only interested in the active workflows. In fact, the stale workflows are auto-pruged by Helix based on an expiry interval.
   
   I have modified the javadoc for this method to be more explicit about which workflows are returned.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-gobblin] sv2000 commented on issue #2892: GOBBLIN-1052: Create a spec consumer path if it does not exist in FS …

Posted by GitBox <gi...@apache.org>.
sv2000 commented on issue #2892: GOBBLIN-1052: Create a spec consumer path if it does not exist in FS …
URL: https://github.com/apache/incubator-gobblin/pull/2892#issuecomment-586523555
 
 
   @autumnust please review.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-gobblin] autumnust commented on a change in pull request #2892: GOBBLIN-1052: Create a spec consumer path if it does not exist in FS …

Posted by GitBox <gi...@apache.org>.
autumnust commented on a change in pull request #2892: GOBBLIN-1052: Create a spec consumer path if it does not exist in FS …
URL: https://github.com/apache/incubator-gobblin/pull/2892#discussion_r382875460
 
 

 ##########
 File path: gobblin-runtime/src/main/java/org/apache/gobblin/runtime/api/FsSpecProducer.java
 ##########
 @@ -52,11 +52,13 @@
   protected static final String VERB_KEY = "Verb";
 
   private Path specConsumerPath;
+  private FileSystem fs;
 
-  public FsSpecProducer(Config config) {
+  public FsSpecProducer(FileSystem fs, Config config) {
 
 Review comment:
   Same as above

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-gobblin] autumnust commented on a change in pull request #2892: GOBBLIN-1052: Create a spec consumer path if it does not exist in FS …

Posted by GitBox <gi...@apache.org>.
autumnust commented on a change in pull request #2892: GOBBLIN-1052: Create a spec consumer path if it does not exist in FS …
URL: https://github.com/apache/incubator-gobblin/pull/2892#discussion_r382875236
 
 

 ##########
 File path: gobblin-cluster/src/main/java/org/apache/gobblin/cluster/HelixUtils.java
 ##########
 @@ -293,6 +294,10 @@ private static void deleteStoppedHelixJob(HelixManager helixManager, String work
     Map<String, WorkflowConfig> workflowConfigMap = taskDriver.getWorkflows();
     for (String workflow : workflowConfigMap.keySet()) {
       WorkflowConfig workflowConfig = taskDriver.getWorkflowConfig(workflow);
+      //Filter out any stale Helix workflows which are not running.
+      if (workflowConfig.getTargetState() != TargetState.START) {
 
 Review comment:
   Why filter out stopped job if the method call is to get a list of workFlowId from Gobblin job name ? 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-gobblin] autumnust commented on a change in pull request #2892: GOBBLIN-1052: Create a spec consumer path if it does not exist in FS …

Posted by GitBox <gi...@apache.org>.
autumnust commented on a change in pull request #2892: GOBBLIN-1052: Create a spec consumer path if it does not exist in FS …
URL: https://github.com/apache/incubator-gobblin/pull/2892#discussion_r382875432
 
 

 ##########
 File path: gobblin-runtime/src/main/java/org/apache/gobblin/runtime/api/FsSpecConsumer.java
 ##########
 @@ -55,10 +56,13 @@
   private Map<URI, Path> specToPathMap = new HashMap<>();
 
 
-  public FsSpecConsumer(Config config) {
+  public FsSpecConsumer(FileSystem fs, Config config) {
 
 Review comment:
   Since it is a public API, should we leave an option of `FsSpecConsumer(Config config)`  (by calling this constructor)? 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-gobblin] asfgit closed pull request #2892: GOBBLIN-1052: Create a spec consumer path if it does not exist in FS …

Posted by GitBox <gi...@apache.org>.
asfgit closed pull request #2892: GOBBLIN-1052: Create a spec consumer path if it does not exist in FS …
URL: https://github.com/apache/incubator-gobblin/pull/2892
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-gobblin] sv2000 commented on issue #2892: GOBBLIN-1052: Create a spec consumer path if it does not exist in FS …

Posted by GitBox <gi...@apache.org>.
sv2000 commented on issue #2892: GOBBLIN-1052: Create a spec consumer path if it does not exist in FS …
URL: https://github.com/apache/incubator-gobblin/pull/2892#issuecomment-590119659
 
 
   @autumnust Addressed your comments.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services