[
https://issues.apache.org/jira/browse/FLINK-28290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17561007#comment-17561007
]
Shengkai Fang commented on FLINK-28290:
---
Fixed in master ac94fa1e9f32ef25c665bc167146bede73b46afd
> SessionManagerTest.testSessionNumberLimit failed with AssertionFailedError
> --
>
> Key: FLINK-28290
> URL: https://issues.apache.org/jira/browse/FLINK-28290
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / Gateway
>Affects Versions: 1.16.0
>Reporter: Huang Xingbo
>Assignee: Shengkai Fang
>Priority: Major
> Labels: pull-request-available, test-stability
>
> {code:java}
> 2022-06-28T11:40:17.0099766Z Jun 28 11:40:17 [ERROR] Tests run: 2, Failures:
> 1, Errors: 0, Skipped: 0, Time elapsed: 6.192 s <<< FAILURE! - in
> org.apache.flink.table.gateway.service.session.SessionManagerTest
> 2022-06-28T11:40:17.0101180Z Jun 28 11:40:17 [ERROR]
> org.apache.flink.table.gateway.service.session.SessionManagerTest.testSessionNumberLimit
> Time elapsed: 0.115 s <<< FAILURE!
> 2022-06-28T11:40:17.0103132Z Jun 28 11:40:17
> org.opentest4j.AssertionFailedError: Failed to create session, the count of
> active sessions exceeds the max count: 3 ==> Expected
> org.apache.flink.table.gateway.api.utils.SqlGatewayException to be thrown,
> but nothing was thrown.
> 2022-06-28T11:40:17.0104111Z Jun 28 11:40:17 at
> org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:71)
> 2022-06-28T11:40:17.0105112Z Jun 28 11:40:17 at
> org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:41)
> 2022-06-28T11:40:17.0105830Z Jun 28 11:40:17 at
> org.junit.jupiter.api.Assertions.assertThrows(Assertions.java:3098)
> 2022-06-28T11:40:17.0106714Z Jun 28 11:40:17 at
> org.apache.flink.table.gateway.service.session.SessionManagerTest.testSessionNumberLimit(SessionManagerTest.java:103)
> 2022-06-28T11:40:17.0108109Z Jun 28 11:40:17 at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 2022-06-28T11:40:17.0108750Z Jun 28 11:40:17 at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 2022-06-28T11:40:17.0109463Z Jun 28 11:40:17 at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 2022-06-28T11:40:17.0110099Z Jun 28 11:40:17 at
> java.lang.reflect.Method.invoke(Method.java:498)
> 2022-06-28T11:40:17.0110738Z Jun 28 11:40:17 at
> org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:725)
> 2022-06-28T11:40:17.0111459Z Jun 28 11:40:17 at
> org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
> 2022-06-28T11:40:17.0112413Z Jun 28 11:40:17 at
> org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
> 2022-06-28T11:40:17.0113461Z Jun 28 11:40:17 at
> org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
> 2022-06-28T11:40:17.0114613Z Jun 28 11:40:17 at
> org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140)
> 2022-06-28T11:40:17.0115411Z Jun 28 11:40:17 at
> org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84)
> 2022-06-28T11:40:17.0116262Z Jun 28 11:40:17 at
> org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
> 2022-06-28T11:40:17.0117111Z Jun 28 11:40:17 at
> org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
> 2022-06-28T11:40:17.0117957Z Jun 28 11:40:17 at
> org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
> 2022-06-28T11:40:17.0118829Z Jun 28 11:40:17 at
> org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
> 2022-06-28T11:40:17.0119660Z Jun 28 11:40:17 at
> org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
> 2022-06-28T11:40:17.0120492Z Jun 28 11:40:17 at
> org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
> 2022-06-28T11:40:17.0121260Z Jun 28 11:40:17 at
> org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
> 2022-06-28T11:40:17.0122126Z Jun 28 11:40:17 at
> org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
> 2022-06-28T11:40:17.0122934Z Jun 28 11:40:17 at
> org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:214)
> 2022-06-