rmatharu commented on a change in pull request #915: Consolidating offset read and write for store-offsets and side-inputs, maintaining backward compatbility URL: https://github.com/apache/samza/pull/915#discussion_r255834674
########## File path: samza-core/src/main/java/org/apache/samza/storage/TaskSideInputStorageManager.java ########## @@ -65,17 +61,12 @@ */ public class TaskSideInputStorageManager { private static final Logger LOG = LoggerFactory.getLogger(TaskSideInputStorageManager.class); - private static final String OFFSET_FILE = "SIDE-INPUT-OFFSETS"; private static final long STORE_DELETE_RETENTION_MS = TimeUnit.DAYS.toMillis(1); // same as changelog delete retention - private static final ObjectMapper OBJECT_MAPPER = SamzaObjectMapper.getObjectMapper(); - private static final TypeReference<HashMap<SystemStreamPartition, String>> OFFSETS_TYPE_REFERENCE = - new TypeReference<HashMap<SystemStreamPartition, String>>() { }; - private static final ObjectWriter OBJECT_WRITER = OBJECT_MAPPER.writerWithType(OFFSETS_TYPE_REFERENCE); private final Clock clock; private final Map<String, SideInputsProcessor> storeToProcessor; private final Map<String, StorageEngine> stores; - private final String storeBaseDir; + private final File storeBaseDir; Review comment: I've always tried to favor strong-typing as a general design rule. See more http://blog.jessitron.com/2012/03/strong-typing-in-java-religious.html ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on 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