mynameborat commented on a change in pull request #912: SEP-19 : Refactoring 
sideInputs from SamzaContainer to ContainerStorageManager
URL: https://github.com/apache/samza/pull/912#discussion_r258142667
 
 

 ##########
 File path: 
samza-core/src/main/scala/org/apache/samza/storage/ContainerStorageManager.java
 ##########
 @@ -101,6 +118,21 @@
   private final JobContext jobContext;
   private final ContainerContext containerContext;
 
+  /* Sideinput related parameters */
+  private final Map<String, List<SystemStream>> sideInputSystemStreams; // Map 
of side input system-streams indexed by store name
+  private final Map<TaskName, Map<String, Set<SystemStreamPartition>>> 
sideInputSSPs;
+  private final Map<TaskName, Map<String, SideInputsProcessor>> 
sideInputStoresToProcessor;
+  private final Map<SystemStreamPartition, TaskSideInputStorageManager> 
sideInputStorageManagers; // Map of sideInput storageManagers indexed by ssp, 
for simpler lookup for process()
+  private final Map<String, SystemConsumer> sideInputConsumers; // Mapping 
from storeSystemNames to SystemConsumers
+  private SystemConsumers sideInputSystemConsumers;
+  private final Map<SystemStreamPartition, 
SystemStreamMetadata.SystemStreamPartitionMetadata> initialSideInputSSPMetadata 
= new ConcurrentHashMap<>();
+  // Recorded sspMetadata of the sideInputSSPs recorded at start, used to 
determine when sideInputs are caughtup and container init can proceed
+  private CountDownLatch sideInputsCaughtUp; // Used by the sideInput-read 
thread to signal to the main thread
 
 Review comment:
   make it volatile

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

Reply via email to