VenuReddy2103 commented on a change in pull request #4071:
URL: https://github.com/apache/carbondata/pull/4071#discussion_r566061138
##########
File path:
integration/spark/src/test/scala/org/apache/carbondata/spark/testsuite/allqueries/TestQueryWithColumnMetCacheAndCacheLevelProperty.scala
##########
@@ -363,5 +365,20 @@ class TestQueryWithColumnMetCacheAndCacheLevelProperty
sql("CREATE INDEX parallel_index on parallel_index_load(b) AS
'carbondata'")
checkAnswer(sql("select b from parallel_index"), Seq(Row("bb"), Row("dd"),
Row("ff")))
sql("drop index if exists parallel_index on parallel_index_load")
+ val mock = mockIsSchemaModified()
+ sql("CREATE INDEX parallel_index on parallel_index_load(b) AS
'carbondata'")
+ checkAnswer(sql("select b from parallel_index"), Seq(Row("bb"), Row("dd"),
Row("ff")))
+ sql("drop index if exists parallel_index on parallel_index_load")
+ mock.tearDown()
Review comment:
Don't have call tearDown() explicitly on mockup object in this case.
Probably can check all calls to mockup object's tearDown() added in this PR and
remove the ones which are not required.
jmockit teardown() description -
> Discards the mock methods originally set up by instantiating this mock-up
object, restoring mocked methods to their original behaviors.
JMockit will automatically restore classes mocked by a test at the end of
its execution, as well as classes mocked for the whole test class before the
first test in the next test class is executed. Therefore, this method should
rarely be used, if ever.
http://javadox.com/org.jmockit/jmockit/1.9/mockit/MockUp.html#tearDown()
----------------------------------------------------------------
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:
[email protected]