Zhangyx39 commented on a change in pull request #982: SAMZA-2153: Implement to 
Config for TableRetryPolicy
URL: https://github.com/apache/samza/pull/982#discussion_r272306285
 
 

 ##########
 File path: 
samza-api/src/main/java/org/apache/samza/table/descriptors/RemoteTableDescriptor.java
 ##########
 @@ -135,6 +137,7 @@ public RemoteTableDescriptor(String tableId) {
     Preconditions.checkNotNull(readFn, "null read function");
     Preconditions.checkNotNull(retryPolicy, "null retry policy");
     this.readRetryPolicy = retryPolicy;
+    this.readRetryPolicy.setTableId(String.format("%s.%s", tableId, 
READ_RETRY_POLICY));
 
 Review comment:
   Good point. In that case I think we can use a prefix 
"io.read.and.write.retry.policy" to indicate that this TableRetryPolicy is used 
for both read and write.
   Another solution could be preventing users to use same instance. But that's 
not convenient for users.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to