[ 
https://issues.apache.org/jira/browse/GOBBLIN-1105?focusedWorklogId=413606&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-413606
 ]

ASF GitHub Bot logged work on GOBBLIN-1105:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 31/Mar/20 23:11
            Start Date: 31/Mar/20 23:11
    Worklog Time Spent: 10m 
      Work Description: sv2000 commented on pull request #2945: [GOBBLIN-1105] 
some refactoring and make MysqlJobStatusStateStore implements DatasetStateStore
URL: https://github.com/apache/incubator-gobblin/pull/2945#discussion_r401264580
 
 

 ##########
 File path: 
gobblin-metastore/src/main/java/org/apache/gobblin/metastore/DatasetStoreDataset.java
 ##########
 @@ -36,7 +38,8 @@
 
   @Override
   public String datasetURN() {
-    return this.key.getStoreName() + ":::" + this.key.getSanitizedDatasetUrn();
+    return this.key.getStoreName() +
+        (StringUtils.isEmpty(this.key.getSanitizedDatasetUrn()) ? "" : ":::" + 
this.key.getSanitizedDatasetUrn());
 
 Review comment:
   Nit: Guava's Strings.isNullOrEmpty() is more readable. I did not realize 
until I saw the Javadoc for StringUtils.isEmpty that it returns true if the 
string is null.
 
----------------------------------------------------------------
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:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 413606)
    Time Spent: 0.5h  (was: 20m)

> make MysqlJobStatusStateStore implements DatasetStateStore
> ----------------------------------------------------------
>
>                 Key: GOBBLIN-1105
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1105
>             Project: Apache Gobblin
>          Issue Type: Improvement
>            Reporter: Arjun Singh Bora
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> make MysqlJobStatusStateStore implements DatasetStateStore so that we can use 
> existing cleaners/dataset finders/version finders to clean job status



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to