> On okt. 16, 2018, 2:56 du, Sahil Takiar wrote: > > Could we add some more E2E integration tests? I'm thinking they could at > > the granularity of a `MapJoinOperator`? For example, confirm that starting > > a new query actually evicts everything from the cache? We want to make sure > > we aren't accidentally leaking small tables.
MapJoinOperator cannot be tested easily. There is a TestMapJoinOperator, but the test code is really complex. And the eviction happens at the HivePairFlatMapFunction level. For every Map/Reduce the cache is reinitialized. If we are in a new query the cache gets evicted. - Antal ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/68474/#review209628 ----------------------------------------------------------- On nov. 6, 2018, 12:28 du, Antal Sinkovits wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/68474/ > ----------------------------------------------------------- > > (Updated nov. 6, 2018, 12:28 du) > > > Review request for hive, Naveen Gangam, Sahil Takiar, Adam Szita, and Xuefu > Zhang. > > > Repository: hive-git > > > Description > ------- > > I've modified the SmallTableCache to use guava cache, with soft references. > By using a value loader, I've also eliminated the synchronization on the > intern-ed string of the path. > > > Diffs > ----- > > ql/pom.xml 8c3e55eaf4d0234a280b0936f6153d2f563bbe46 > ql/src/java/org/apache/hadoop/hive/ql/exec/MapJoinOperator.java > da1dd426c9155290e30fd1e3ae7f19a5479a8967 > > ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/AbstractMapJoinTableContainer.java > 9e65fd98d6e4451421641b1429ccf334fe9a9586 > > ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/HybridHashTableContainer.java > 54377428eafdb79e1bbdc8a182eafb46f8febd23 > > ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/MapJoinBytesTableContainer.java > 0e4b8df036724bd83e85fc3cc70f534272dab4c4 > > ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/MapJoinTableContainer.java > 74e0b120ea3560a6a2a0074e6c0026b4874b3d5e > > ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/MapJoinTableContainerSerDe.java > 24b8fea33815867ce544fd284437c4d02a21f1a3 > ql/src/java/org/apache/hadoop/hive/ql/exec/spark/HashTableLoader.java > cf27e92bafdc63096ec0fa8c3106657bab52f370 > ql/src/java/org/apache/hadoop/hive/ql/exec/spark/SmallTableCache.java > 3293100af96dc60408c53065fa89143ead98f818 > > ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/fast/VectorMapJoinFastTableContainer.java > e8dcbf18cb09b190536f920a53d6e9fa870ce33b > ql/src/test/org/apache/hadoop/hive/ql/exec/spark/TestSmallTableCache.java > PRE-CREATION > > > Diff: https://reviews.apache.org/r/68474/diff/4/ > > > Testing > ------- > > > Thanks, > > Antal Sinkovits > >