[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:
parent
3b76c590f8
commit
c86ec70a83
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue