[bug] fix UT of run with jacoco failed and presto-spi ut run failed

occationally

Signed-off-by: chenpingzeng <chenpingzeng@huawei.com>
This commit is contained in:
chenpingzeng 2021-08-16 10:47:02 +08:00
parent 3b76c590f8
commit c86ec70a83
2 changed files with 4 additions and 4 deletions

View File

@ -17,10 +17,10 @@ import io.airlift.units.Duration;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import static java.util.Objects.requireNonNull;
@ -34,7 +34,7 @@ public class PropertyService
{
}
private static Map<String, Object> properties = new HashMap<>();
private static Map<String, Object> properties = new ConcurrentHashMap();
/**
* Return the value of the property from key, converted to String

View File

@ -342,7 +342,7 @@ public class TestMemoryManager
return stats.isFullyBlocked() || stats.getRunningDrivers() == 0;
}
@Test(timeOut = 60_000, expectedExceptions = RuntimeException.class, expectedExceptionsMessageRegExp = ".*Query exceeded distributed user memory limit of 1kB.*")
@Test(timeOut = 180_000, expectedExceptions = RuntimeException.class, expectedExceptionsMessageRegExp = ".*Query exceeded distributed user memory limit of 1kB.*")
public void testQueryUserMemoryLimit()
throws Exception
{
@ -369,7 +369,7 @@ public class TestMemoryManager
}
}
@Test(timeOut = 60_000, expectedExceptions = RuntimeException.class, expectedExceptionsMessageRegExp = ".*Query exceeded per-node user memory limit of 1kB.*")
@Test(timeOut = 180_000, expectedExceptions = RuntimeException.class, expectedExceptionsMessageRegExp = ".*Query exceeded per-node user memory limit of 1kB.*")
public void testQueryMemoryPerNodeLimit()
throws Exception
{