> On March 14, 2016, 11:46 p.m., Yi Pan (Data Infrastructure) wrote:
> > samza-core/src/main/scala/org/apache/samza/system/StreamMetadataCache.scala,
> >  line 101
> > <https://reviews.apache.org/r/44405/diff/1/?file=1281325#file1281325line101>
> >
> >     I am a bit confused here. I thought that the final goal is: replace the 
> > cache entry w/ updatedMetadata? If partitionsMetadataOnly == true, what's 
> > the purpose of this section of code within if?
> 
> Navina Ramesh wrote:
>     Yes. I am doing the replacement. The issue with the 
> "partitionsMetadataOnly" call is that it doesn't have offset info in 
> SystemStreamPartitionMetadata it creates. So, if I overwrite the cache 
> blindly, it will remove the offsets of the partitions which might have been 
> fetched in the past. So, I am just making sure that if the offsets are also 
> written to the cache based on what was known before. Line 101 actually 
> overwrite the cache entry.

We discussed offline and found that updating the cache is tricky and frankly, 
not clear whether it is necessary. Hence, I simplified the code.


- Navina


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44405/#review123527
-----------------------------------------------------------


On March 16, 2016, 4:09 a.m., Navina Ramesh wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/44405/
> -----------------------------------------------------------
> 
> (Updated March 16, 2016, 4:09 a.m.)
> 
> 
> Review request for samza, Boris Shkolnik, Jake Maes, Jagadish Venkatraman, 
> Xinyu Liu, and Yi Pan (Data Infrastructure).
> 
> 
> Bugs: SAMZA-882
>     https://issues.apache.org/jira/browse/SAMZA-882
> 
> 
> Repository: samza
> 
> 
> Description
> -------
> 
> Adding loop.done in stream metadata cache
> 
> 
> Adding comments in Test
> 
> 
> Adding configuration to the docs
> 
> 
> Fixing the swallowed exception from Scala immutable map
> 
> 
> Updating config docs
> 
> 
> Fixed some comments and javadoc
> 
> 
> Diffs
> -----
> 
>   docs/learn/documentation/versioned/jobs/configuration-table.html 
> 2745a22daf3626db56da2bedad07690751a34a27 
>   samza-api/src/main/java/org/apache/samza/system/ExtendedSystemAdmin.java 
> PRE-CREATION 
>   samza-core/src/main/scala/org/apache/samza/config/JobConfig.scala 
> 4f3e9a297ce2c0df0f5f25e0aad62f7bed774cd6 
>   samza-core/src/main/scala/org/apache/samza/config/TaskConfig.scala 
> 6ff9aaceb7107692b5233c675af9cccabc832044 
>   samza-core/src/main/scala/org/apache/samza/coordinator/JobCoordinator.scala 
> 06a96ad6ed786c22924017f894413bfa1ea34c06 
>   
> samza-core/src/main/scala/org/apache/samza/coordinator/StreamPartitionCountMonitor.scala
>  PRE-CREATION 
>   samza-core/src/main/scala/org/apache/samza/system/StreamMetadataCache.scala 
> 155c3d16d33d9bb9cd5410d786004c1bf2a57ed3 
>   samza-core/src/main/scala/org/apache/samza/util/Util.scala 
> bd0fe5fc8128c59fa6d08941ad88eed66dda622b 
>   
> samza-core/src/test/scala/org/apache/samza/coordinator/TestJobCoordinator.scala
>  9ab1dd516871b1755ef64fa25cea47491ad781e2 
>   
> samza-core/src/test/scala/org/apache/samza/coordinator/TestStreamPartitionCountMonitor.scala
>  PRE-CREATION 
>   
> samza-kafka/src/main/scala/org/apache/samza/system/kafka/KafkaSystemAdmin.scala
>  9dc436a40afd7190626a8be0d716c70e0fe83c7a 
>   
> samza-yarn/src/test/java/org/apache/samza/job/yarn/TestContainerAllocator.java
>  2b1bdab3c8de3184e930c244a8cae55813c33565 
>   
> samza-yarn/src/test/java/org/apache/samza/job/yarn/TestHostAwareContainerAllocator.java
>  0c7a09f3e4c4c2ce6788be729d0bf4a294243c68 
>   
> samza-yarn/src/test/java/org/apache/samza/job/yarn/TestSamzaTaskManager.java 
> 9da1edf6ff165ef0306de8730853ad30551a9831 
> 
> Diff: https://reviews.apache.org/r/44405/diff/
> 
> 
> Testing
> -------
> 
> ./gradlew clean build
> Tested with a simple Samza job using hello-samza -> Verified that the metrics 
> gauge is getting updated and published correctly.
> 
> 
> Thanks,
> 
> Navina Ramesh
> 
>

Reply via email to