File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
gobblin-data-management/src/main/java/org/apache/gobblin/data/management/copy Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 24
24
import java .io .IOException ;
25
25
import java .util .List ;
26
26
import java .util .Map ;
27
+ import java .util .UUID ;
27
28
28
29
import lombok .AccessLevel ;
29
30
import lombok .AllArgsConstructor ;
@@ -54,6 +55,8 @@ public class CopyEntity implements HasGuid {
54
55
55
56
public static final Gson GSON = GsonInterfaceAdapter .getGson (Object .class );
56
57
58
+ private final Guid id = new Guid (UUID .randomUUID ().toString ().getBytes ());
59
+
57
60
/**
58
61
* File set this file belongs to. {@link CopyEntity}s in the same fileSet and originating from the same
59
62
* {@link CopyableDataset} will be treated as a unit: they will be published nearly atomically, and a notification
@@ -66,7 +69,7 @@ public class CopyEntity implements HasGuid {
66
69
67
70
@ Override
68
71
public Guid guid () throws IOException {
69
- return Guid . fromStrings ( toString ()) ;
72
+ return id ;
70
73
}
71
74
72
75
/**
@@ -118,7 +121,9 @@ public static List<CopyEntity> deserializeList(String serialized) {
118
121
*/
119
122
public static String getSerializedWithNewPackage (String serialized ) {
120
123
serialized = serialized .replace ("\" gobblin.data.management." , "\" org.apache.gobblin.data.management." );
121
- log .debug ("Serialized updated copy entity: " + serialized );
124
+ if (log .isDebugEnabled ()) {
125
+ log .debug ("Serialized updated copy entity: " + serialized );
126
+ }
122
127
return serialized ;
123
128
}
124
129
You can’t perform that action at this time.
0 commit comments