htran1 commented on a change in pull request #2876: GOBBLIN-1034: Ensure 
underlying writers are expired from the Partitio…
URL: https://github.com/apache/incubator-gobblin/pull/2876#discussion_r372152308
 
 

 ##########
 File path: 
gobblin-core/src/main/java/org/apache/gobblin/writer/PartitionedDataWriter.java
 ##########
 @@ -99,13 +118,32 @@ public PartitionedDataWriter(DataWriterBuilder<S, D> 
builder, final State state)
     if(builder.schema != null) {
       this.state.setProp(WRITER_LATEST_SCHEMA, builder.getSchema());
     }
-    this.partitionWriters = CacheBuilder.newBuilder().build(new 
CacheLoader<GenericRecord, DataWriter<D>>() {
+    Long cacheExpiryInterval = 
this.state.getPropAsLong(PARTITIONED_WRITER_CACHE_TTL_SECONDS, 
DEFAULT_PARTITIONED_WRITER_CACHE_TTL_SECONDS);
 
 Review comment:
   Can be `long` instead of `Long`.

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to