Repository: calcite Updated Branches: refs/heads/master 0af6e4133 -> fa7b48267
[CALCITE-2521] Guard RelMetadataTest#testMetadataHandlerCacheLimit with CalciteAssert.ENABLE_SLOW The test does not reproduce the original bug, and it is very slow to execute. Project: http://git-wip-us.apache.org/repos/asf/calcite/repo Commit: http://git-wip-us.apache.org/repos/asf/calcite/commit/fa7b4826 Tree: http://git-wip-us.apache.org/repos/asf/calcite/tree/fa7b4826 Diff: http://git-wip-us.apache.org/repos/asf/calcite/diff/fa7b4826 Branch: refs/heads/master Commit: fa7b48267195053da7029988e013e6e9cd5151b9 Parents: 0af6e41 Author: Vladimir Sitnikov <[email protected]> Authored: Wed Sep 5 22:49:41 2018 +0300 Committer: Vladimir Sitnikov <[email protected]> Committed: Wed Sep 5 22:49:41 2018 +0300 ---------------------------------------------------------------------- core/src/test/java/org/apache/calcite/test/RelMetadataTest.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/calcite/blob/fa7b4826/core/src/test/java/org/apache/calcite/test/RelMetadataTest.java ---------------------------------------------------------------------- diff --git a/core/src/test/java/org/apache/calcite/test/RelMetadataTest.java b/core/src/test/java/org/apache/calcite/test/RelMetadataTest.java index 7b090d5..5754b64 100644 --- a/core/src/test/java/org/apache/calcite/test/RelMetadataTest.java +++ b/core/src/test/java/org/apache/calcite/test/RelMetadataTest.java @@ -790,6 +790,8 @@ public class RelMetadataTest extends SqlToRelTestBase { * JaninoRelMetadataProvider loading cache might cause * OutOfMemoryError</a>. */ @Test public void testMetadataHandlerCacheLimit() { + Assume.assumeTrue("too slow to run every day, and it does not reproduce the issue", + CalciteAssert.ENABLE_SLOW); Assume.assumeTrue("If cache size is too large, this test may fail and the " + "test won't be to blame", SaffronProperties.INSTANCE.metadataHandlerCacheMaximumSize().get()
