[jira] [Comment Edited] (HIVE-28194) Fix flaky tests in TestRetryingThriftCLIServiceClient (Failed to start HS2)

2024-04-19 Thread Araika Singh (Jira)


[ 
https://issues.apache.org/jira/browse/HIVE-28194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17838911#comment-17838911
 ] 

Araika Singh edited comment on HIVE-28194 at 4/19/24 8:41 AM:
--

Hi [~zhangbutao] ,
Thanks for replying!

Here we are not trying to solve this issue for the same test class, but for 
several classes/group of classes. There is a time gap between when we have 
chosen the port vs when actually the HS2 is started. By that time, some other 
test in parallel test split execution may pick it up as free port. 
Similar issues were fixed for other classes in the following jiras:
https://issues.apache.org/jira/browse/HIVE-18147

https://issues.apache.org/jira/browse/HIVE-19595

Moreover, test class _TestRetryingThriftCLIServiceClient_ was missed, and this 
Jira is just an extension of the same.


was (Author: JIRAUSER301024):
Hi [~zhangbutao] ,
Thanks for replying!

Here we are not trying to solve this issue for the same test class, but for 
several classes/group of class. There is a time gap between when we have chosen 
the port vs when actually the HS2 is started. By that time, some other test in 
parallel test split execution may pick it up as free port. 
Similar issues were fixed for other classes in the following jiras:
https://issues.apache.org/jira/browse/HIVE-18147

https://issues.apache.org/jira/browse/HIVE-19595

Moreover, test class _TestRetryingThriftCLIServiceClient_ was missed, and this 
Jira is just an extension of the same.

> Fix flaky tests in TestRetryingThriftCLIServiceClient (Failed to start HS2)
> ---
>
> Key: HIVE-28194
> URL: https://issues.apache.org/jira/browse/HIVE-28194
> Project: Hive
>  Issue Type: Bug
>Reporter: Araika Singh
>Assignee: Araika Singh
>Priority: Major
> Attachments: image-2024-04-19-12-21-57-577.png, 
> image-2024-04-19-12-22-47-006.png
>
>
> The following testcases are flaky in this test class:
>  # 
> *org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testTransportClose*
>  # 
> *org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testRetryBehaviour*
>  # 
> {*}org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testSessionLifeAfterTransportClose{*}{*}{*}
> {code:java}
> org.apache.hive.service.ServiceException: Failed to Start HiveServer2
> at org.apache.hive.service.CompositeService.start(CompositeService.java:80)
> at org.apache.hive.service.server.HiveServer2.start(HiveServer2.java:715)
> at
> org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.startHiveServer(TestRetryingThriftCLIServiceClient.java:72)
> at
> org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testRetryBehaviour(TestRetryingThriftCLIServiceClient.java:1
> 19)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
> at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at 
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)
> at 
> 

[jira] [Commented] (HIVE-28194) Fix flaky tests in TestRetryingThriftCLIServiceClient (Failed to start HS2)

2024-04-19 Thread Araika Singh (Jira)


[ 
https://issues.apache.org/jira/browse/HIVE-28194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17838911#comment-17838911
 ] 

Araika Singh commented on HIVE-28194:
-

Hi [~zhangbutao] ,
Thanks for replying!

Here we are not trying to solve this issue for the same test class, but for 
several classes/group of class. There is a time gap between when we have chosen 
the port vs when actually the HS2 is started. By that time, some other test in 
parallel test split execution may pick it up as free port. 
Similar issues were fixed for other classes in the following jiras:
https://issues.apache.org/jira/browse/HIVE-18147

https://issues.apache.org/jira/browse/HIVE-19595

Moreover, test class _TestRetryingThriftCLIServiceClient_ was missed, and this 
Jira is just an extension of the same.

> Fix flaky tests in TestRetryingThriftCLIServiceClient (Failed to start HS2)
> ---
>
> Key: HIVE-28194
> URL: https://issues.apache.org/jira/browse/HIVE-28194
> Project: Hive
>  Issue Type: Bug
>Reporter: Araika Singh
>Assignee: Araika Singh
>Priority: Major
> Attachments: image-2024-04-19-12-21-57-577.png, 
> image-2024-04-19-12-22-47-006.png
>
>
> The following testcases are flaky in this test class:
>  # 
> *org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testTransportClose*
>  # 
> *org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testRetryBehaviour*
>  # 
> {*}org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testSessionLifeAfterTransportClose{*}{*}{*}
> {code:java}
> org.apache.hive.service.ServiceException: Failed to Start HiveServer2
> at org.apache.hive.service.CompositeService.start(CompositeService.java:80)
> at org.apache.hive.service.server.HiveServer2.start(HiveServer2.java:715)
> at
> org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.startHiveServer(TestRetryingThriftCLIServiceClient.java:72)
> at
> org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testRetryBehaviour(TestRetryingThriftCLIServiceClient.java:1
> 19)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
> at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at 
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
> Caused by: java.lang.RuntimeException: Failed to init thrift server
> at 
> org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.initServer(ThriftBinaryCLIService.java:159)
> at 
> org.apache.hive.service.cli.thrift.ThriftCLIService.start(ThriftCLIService.java:226)
> at org.apache.hive.service.CompositeService.start(CompositeService.java:70)
> ... 29 more
> Caused by: org.apache.thrift.transport.TTransportException: Could not create 
> ServerSocket on address 0.0.0.0/0.0.0.0:15000.
> at 

[jira] [Commented] (HIVE-28194) Fix flaky tests in TestRetryingThriftCLIServiceClient (Failed to start HS2)

2024-04-19 Thread Araika Singh (Jira)


[ 
https://issues.apache.org/jira/browse/HIVE-28194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17838876#comment-17838876
 ] 

Araika Singh commented on HIVE-28194:
-

I was able to replicate this issue in my local on running the same test on 
parallel, one of them failed with the same exact error.

> Fix flaky tests in TestRetryingThriftCLIServiceClient (Failed to start HS2)
> ---
>
> Key: HIVE-28194
> URL: https://issues.apache.org/jira/browse/HIVE-28194
> Project: Hive
>  Issue Type: Bug
>Reporter: Araika Singh
>Assignee: Araika Singh
>Priority: Major
> Attachments: image-2024-04-19-12-21-57-577.png, 
> image-2024-04-19-12-22-47-006.png
>
>
> The following testcases are flaky in this test class:
>  # 
> *org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testTransportClose*
>  # 
> *org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testRetryBehaviour*
>  # 
> {*}org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testSessionLifeAfterTransportClose{*}{*}{*}
> {code:java}
> org.apache.hive.service.ServiceException: Failed to Start HiveServer2
> at org.apache.hive.service.CompositeService.start(CompositeService.java:80)
> at org.apache.hive.service.server.HiveServer2.start(HiveServer2.java:715)
> at
> org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.startHiveServer(TestRetryingThriftCLIServiceClient.java:72)
> at
> org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testRetryBehaviour(TestRetryingThriftCLIServiceClient.java:1
> 19)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
> at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at 
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
> Caused by: java.lang.RuntimeException: Failed to init thrift server
> at 
> org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.initServer(ThriftBinaryCLIService.java:159)
> at 
> org.apache.hive.service.cli.thrift.ThriftCLIService.start(ThriftCLIService.java:226)
> at org.apache.hive.service.CompositeService.start(CompositeService.java:70)
> ... 29 more
> Caused by: org.apache.thrift.transport.TTransportException: Could not create 
> ServerSocket on address 0.0.0.0/0.0.0.0:15000.
> at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:109)
> at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:91)
> at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:87)
> at 
> org.apache.hadoop.hive.common.auth.HiveAuthUtils.getServerSocket(HiveAuthUtils.java:159)
> at 
> org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.initServer(ThriftBinaryCLIService.java:80)
> ... 31 more
> Caused by: java.net.BindException: Address already in use
> at java.base/sun.nio.ch.Net.bind0(Native 

[jira] [Comment Edited] (HIVE-28194) Fix flaky tests in TestRetryingThriftCLIServiceClient (Failed to start HS2)

2024-04-19 Thread Araika Singh (Jira)


[ 
https://issues.apache.org/jira/browse/HIVE-28194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17838875#comment-17838875
 ] 

Araika Singh edited comment on HIVE-28194 at 4/19/24 6:54 AM:
--

!image-2024-04-19-12-21-57-577.png|width=786,height=508!

!image-2024-04-19-12-22-47-006.png|width=786,height=508!


was (Author: JIRAUSER301024):
!image-2024-04-19-12-21-57-577.png!

!image-2024-04-19-12-22-47-006.png!

> Fix flaky tests in TestRetryingThriftCLIServiceClient (Failed to start HS2)
> ---
>
> Key: HIVE-28194
> URL: https://issues.apache.org/jira/browse/HIVE-28194
> Project: Hive
>  Issue Type: Bug
>Reporter: Araika Singh
>Assignee: Araika Singh
>Priority: Major
> Attachments: image-2024-04-19-12-21-57-577.png, 
> image-2024-04-19-12-22-47-006.png
>
>
> The following testcases are flaky in this test class:
>  # 
> *org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testTransportClose*
>  # 
> *org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testRetryBehaviour*
>  # 
> {*}org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testSessionLifeAfterTransportClose{*}{*}{*}
> {code:java}
> org.apache.hive.service.ServiceException: Failed to Start HiveServer2
> at org.apache.hive.service.CompositeService.start(CompositeService.java:80)
> at org.apache.hive.service.server.HiveServer2.start(HiveServer2.java:715)
> at
> org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.startHiveServer(TestRetryingThriftCLIServiceClient.java:72)
> at
> org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testRetryBehaviour(TestRetryingThriftCLIServiceClient.java:1
> 19)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
> at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at 
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
> Caused by: java.lang.RuntimeException: Failed to init thrift server
> at 
> org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.initServer(ThriftBinaryCLIService.java:159)
> at 
> org.apache.hive.service.cli.thrift.ThriftCLIService.start(ThriftCLIService.java:226)
> at org.apache.hive.service.CompositeService.start(CompositeService.java:70)
> ... 29 more
> Caused by: org.apache.thrift.transport.TTransportException: Could not create 
> ServerSocket on address 0.0.0.0/0.0.0.0:15000.
> at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:109)
> at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:91)
> at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:87)
> at 
> org.apache.hadoop.hive.common.auth.HiveAuthUtils.getServerSocket(HiveAuthUtils.java:159)
> at 
> 

[jira] [Commented] (HIVE-28194) Fix flaky tests in TestRetryingThriftCLIServiceClient (Failed to start HS2)

2024-04-19 Thread Araika Singh (Jira)


[ 
https://issues.apache.org/jira/browse/HIVE-28194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17838875#comment-17838875
 ] 

Araika Singh commented on HIVE-28194:
-

!image-2024-04-19-12-21-57-577.png!

!image-2024-04-19-12-22-47-006.png!

> Fix flaky tests in TestRetryingThriftCLIServiceClient (Failed to start HS2)
> ---
>
> Key: HIVE-28194
> URL: https://issues.apache.org/jira/browse/HIVE-28194
> Project: Hive
>  Issue Type: Bug
>Reporter: Araika Singh
>Assignee: Araika Singh
>Priority: Major
> Attachments: image-2024-04-19-12-21-57-577.png, 
> image-2024-04-19-12-22-47-006.png
>
>
> The following testcases are flaky in this test class:
>  # 
> *org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testTransportClose*
>  # 
> *org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testRetryBehaviour*
>  # 
> {*}org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testSessionLifeAfterTransportClose{*}{*}{*}
> {code:java}
> org.apache.hive.service.ServiceException: Failed to Start HiveServer2
> at org.apache.hive.service.CompositeService.start(CompositeService.java:80)
> at org.apache.hive.service.server.HiveServer2.start(HiveServer2.java:715)
> at
> org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.startHiveServer(TestRetryingThriftCLIServiceClient.java:72)
> at
> org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testRetryBehaviour(TestRetryingThriftCLIServiceClient.java:1
> 19)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
> at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at 
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
> Caused by: java.lang.RuntimeException: Failed to init thrift server
> at 
> org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.initServer(ThriftBinaryCLIService.java:159)
> at 
> org.apache.hive.service.cli.thrift.ThriftCLIService.start(ThriftCLIService.java:226)
> at org.apache.hive.service.CompositeService.start(CompositeService.java:70)
> ... 29 more
> Caused by: org.apache.thrift.transport.TTransportException: Could not create 
> ServerSocket on address 0.0.0.0/0.0.0.0:15000.
> at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:109)
> at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:91)
> at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:87)
> at 
> org.apache.hadoop.hive.common.auth.HiveAuthUtils.getServerSocket(HiveAuthUtils.java:159)
> at 
> org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.initServer(ThriftBinaryCLIService.java:80)
> ... 31 more
> Caused by: java.net.BindException: Address already in use
> at java.base/sun.nio.ch.Net.bind0(Native Method)
> at java.base/sun.nio.ch.Net.bind(Net.java:555)
> 

[jira] [Updated] (HIVE-28194) Fix flaky tests in TestRetryingThriftCLIServiceClient (Failed to start HS2)

2024-04-19 Thread Araika Singh (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-28194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Araika Singh updated HIVE-28194:

Attachment: image-2024-04-19-12-22-47-006.png

> Fix flaky tests in TestRetryingThriftCLIServiceClient (Failed to start HS2)
> ---
>
> Key: HIVE-28194
> URL: https://issues.apache.org/jira/browse/HIVE-28194
> Project: Hive
>  Issue Type: Bug
>Reporter: Araika Singh
>Assignee: Araika Singh
>Priority: Major
> Attachments: image-2024-04-19-12-21-57-577.png, 
> image-2024-04-19-12-22-47-006.png
>
>
> The following testcases are flaky in this test class:
>  # 
> *org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testTransportClose*
>  # 
> *org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testRetryBehaviour*
>  # 
> {*}org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testSessionLifeAfterTransportClose{*}{*}{*}
> {code:java}
> org.apache.hive.service.ServiceException: Failed to Start HiveServer2
> at org.apache.hive.service.CompositeService.start(CompositeService.java:80)
> at org.apache.hive.service.server.HiveServer2.start(HiveServer2.java:715)
> at
> org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.startHiveServer(TestRetryingThriftCLIServiceClient.java:72)
> at
> org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testRetryBehaviour(TestRetryingThriftCLIServiceClient.java:1
> 19)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
> at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at 
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
> Caused by: java.lang.RuntimeException: Failed to init thrift server
> at 
> org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.initServer(ThriftBinaryCLIService.java:159)
> at 
> org.apache.hive.service.cli.thrift.ThriftCLIService.start(ThriftCLIService.java:226)
> at org.apache.hive.service.CompositeService.start(CompositeService.java:70)
> ... 29 more
> Caused by: org.apache.thrift.transport.TTransportException: Could not create 
> ServerSocket on address 0.0.0.0/0.0.0.0:15000.
> at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:109)
> at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:91)
> at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:87)
> at 
> org.apache.hadoop.hive.common.auth.HiveAuthUtils.getServerSocket(HiveAuthUtils.java:159)
> at 
> org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.initServer(ThriftBinaryCLIService.java:80)
> ... 31 more
> Caused by: java.net.BindException: Address already in use
> at java.base/sun.nio.ch.Net.bind0(Native Method)
> at java.base/sun.nio.ch.Net.bind(Net.java:555)
> at java.base/sun.nio.ch.Net.bind(Net.java:544)
> at 

[jira] [Updated] (HIVE-28194) Fix flaky tests in TestRetryingThriftCLIServiceClient (Failed to start HS2)

2024-04-19 Thread Araika Singh (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-28194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Araika Singh updated HIVE-28194:

Attachment: image-2024-04-19-12-21-57-577.png

> Fix flaky tests in TestRetryingThriftCLIServiceClient (Failed to start HS2)
> ---
>
> Key: HIVE-28194
> URL: https://issues.apache.org/jira/browse/HIVE-28194
> Project: Hive
>  Issue Type: Bug
>Reporter: Araika Singh
>Assignee: Araika Singh
>Priority: Major
> Attachments: image-2024-04-19-12-21-57-577.png, 
> image-2024-04-19-12-22-47-006.png
>
>
> The following testcases are flaky in this test class:
>  # 
> *org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testTransportClose*
>  # 
> *org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testRetryBehaviour*
>  # 
> {*}org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testSessionLifeAfterTransportClose{*}{*}{*}
> {code:java}
> org.apache.hive.service.ServiceException: Failed to Start HiveServer2
> at org.apache.hive.service.CompositeService.start(CompositeService.java:80)
> at org.apache.hive.service.server.HiveServer2.start(HiveServer2.java:715)
> at
> org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.startHiveServer(TestRetryingThriftCLIServiceClient.java:72)
> at
> org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testRetryBehaviour(TestRetryingThriftCLIServiceClient.java:1
> 19)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
> at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at 
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
> Caused by: java.lang.RuntimeException: Failed to init thrift server
> at 
> org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.initServer(ThriftBinaryCLIService.java:159)
> at 
> org.apache.hive.service.cli.thrift.ThriftCLIService.start(ThriftCLIService.java:226)
> at org.apache.hive.service.CompositeService.start(CompositeService.java:70)
> ... 29 more
> Caused by: org.apache.thrift.transport.TTransportException: Could not create 
> ServerSocket on address 0.0.0.0/0.0.0.0:15000.
> at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:109)
> at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:91)
> at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:87)
> at 
> org.apache.hadoop.hive.common.auth.HiveAuthUtils.getServerSocket(HiveAuthUtils.java:159)
> at 
> org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.initServer(ThriftBinaryCLIService.java:80)
> ... 31 more
> Caused by: java.net.BindException: Address already in use
> at java.base/sun.nio.ch.Net.bind0(Native Method)
> at java.base/sun.nio.ch.Net.bind(Net.java:555)
> at java.base/sun.nio.ch.Net.bind(Net.java:544)
> at 

[jira] [Commented] (HIVE-28194) Fix flaky tests in TestRetryingThriftCLIServiceClient (Failed to start HS2)

2024-04-14 Thread Araika Singh (Jira)


[ 
https://issues.apache.org/jira/browse/HIVE-28194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17837067#comment-17837067
 ] 

Araika Singh commented on HIVE-28194:
-

Hi [Butao Zhang 
!|https://issues.apache.org/jira/secure/ViewProfile.jspa?name=zhangbutao]

I came across this error in our pipelines, and I am not sure who is holding the 
particular port. I did run the flaky check pipeline as you have mentioned, but 
this issue is hard to reproduce.

Hence, in order to improve this test I have come across a solution that is 
similar to the following jira HIVE-18147.

> Fix flaky tests in TestRetryingThriftCLIServiceClient (Failed to start HS2)
> ---
>
> Key: HIVE-28194
> URL: https://issues.apache.org/jira/browse/HIVE-28194
> Project: Hive
>  Issue Type: Bug
>Reporter: Araika Singh
>Assignee: Araika Singh
>Priority: Major
>
> The following testcases are flaky in this test class:
>  # 
> *org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testTransportClose*
>  # 
> *org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testRetryBehaviour*
>  # 
> {*}org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testSessionLifeAfterTransportClose{*}{*}{*}
> {code:java}
> org.apache.hive.service.ServiceException: Failed to Start HiveServer2
> at org.apache.hive.service.CompositeService.start(CompositeService.java:80)
> at org.apache.hive.service.server.HiveServer2.start(HiveServer2.java:715)
> at
> org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.startHiveServer(TestRetryingThriftCLIServiceClient.java:72)
> at
> org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testRetryBehaviour(TestRetryingThriftCLIServiceClient.java:1
> 19)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
> at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at 
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
> at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)
> at 
> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
> Caused by: java.lang.RuntimeException: Failed to init thrift server
> at 
> org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.initServer(ThriftBinaryCLIService.java:159)
> at 
> org.apache.hive.service.cli.thrift.ThriftCLIService.start(ThriftCLIService.java:226)
> at org.apache.hive.service.CompositeService.start(CompositeService.java:70)
> ... 29 more
> Caused by: org.apache.thrift.transport.TTransportException: Could not create 
> ServerSocket on address 0.0.0.0/0.0.0.0:15000.
> at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:109)
> at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:91)
> at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:87)
> at 
> org.apache.hadoop.hive.common.auth.HiveAuthUtils.getServerSocket(HiveAuthUtils.java:159)
> at 
> 

[jira] [Created] (HIVE-28194) Fix flaky tests in TestRetryingThriftCLIServiceClient (Failed to start HS2)

2024-04-10 Thread Araika Singh (Jira)
Araika Singh created HIVE-28194:
---

 Summary: Fix flaky tests in TestRetryingThriftCLIServiceClient 
(Failed to start HS2)
 Key: HIVE-28194
 URL: https://issues.apache.org/jira/browse/HIVE-28194
 Project: Hive
  Issue Type: Bug
Reporter: Araika Singh
Assignee: Araika Singh


The following testcases are flaky in this test class:
 # 
*org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testTransportClose*
 # 
*org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testRetryBehaviour*
 # 
{*}org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testSessionLifeAfterTransportClose{*}{*}{*}

{code:java}
org.apache.hive.service.ServiceException: Failed to Start HiveServer2
at org.apache.hive.service.CompositeService.start(CompositeService.java:80)
at org.apache.hive.service.server.HiveServer2.start(HiveServer2.java:715)
at
org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.startHiveServer(TestRetryingThriftCLIServiceClient.java:72)
at
org.apache.hive.service.cli.TestRetryingThriftCLIServiceClient.testRetryBehaviour(TestRetryingThriftCLIServiceClient.java:1
19)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at 
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
at 
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)
at 
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
Caused by: java.lang.RuntimeException: Failed to init thrift server
at 
org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.initServer(ThriftBinaryCLIService.java:159)
at 
org.apache.hive.service.cli.thrift.ThriftCLIService.start(ThriftCLIService.java:226)
at org.apache.hive.service.CompositeService.start(CompositeService.java:70)
... 29 more
Caused by: org.apache.thrift.transport.TTransportException: Could not create 
ServerSocket on address 0.0.0.0/0.0.0.0:15000.
at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:109)
at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:91)
at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:87)
at 
org.apache.hadoop.hive.common.auth.HiveAuthUtils.getServerSocket(HiveAuthUtils.java:159)
at 
org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.initServer(ThriftBinaryCLIService.java:80)
... 31 more
Caused by: java.net.BindException: Address already in use
at java.base/sun.nio.ch.Net.bind0(Native Method)
at java.base/sun.nio.ch.Net.bind(Net.java:555)
at java.base/sun.nio.ch.Net.bind(Net.java:544)
at java.base/sun.nio.ch.NioSocketImpl.bind(NioSocketImpl.java:648)
at java.base/java.net.ServerSocket.bind(ServerSocket.java:388)
at org.apache.thrift.transport.TServerSocket.(TServerSocket.java:106)
... 35 more {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (HIVE-28073) Upgrade jackson version to 2.16.1

2024-02-20 Thread Araika Singh (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-28073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Araika Singh updated HIVE-28073:

Description: 
Jackson-databind through 2.15.2 allows attackers to cause a denial of service 
or other unspecified impact via a crafted object that uses cyclic dependencies.
[https://nvd.nist.gov/vuln/detail/CVE-2023-35116]
https://github.com/FasterXML/jackson-databind/issues/3972

  was:https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.15


> Upgrade jackson version to 2.16.1
> -
>
> Key: HIVE-28073
> URL: https://issues.apache.org/jira/browse/HIVE-28073
> Project: Hive
>  Issue Type: Bug
>Reporter: Araika Singh
>Assignee: Araika Singh
>Priority: Major
>  Labels: pull-request-available
>
> Jackson-databind through 2.15.2 allows attackers to cause a denial of service 
> or other unspecified impact via a crafted object that uses cyclic 
> dependencies.
> [https://nvd.nist.gov/vuln/detail/CVE-2023-35116]
> https://github.com/FasterXML/jackson-databind/issues/3972



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (HIVE-28073) Upgrade jackson version to 2.16.1

2024-02-20 Thread Araika Singh (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-28073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Araika Singh updated HIVE-28073:

Summary: Upgrade jackson version to 2.16.1  (was: Bump jackson version to 
2.15.0 )

> Upgrade jackson version to 2.16.1
> -
>
> Key: HIVE-28073
> URL: https://issues.apache.org/jira/browse/HIVE-28073
> Project: Hive
>  Issue Type: Improvement
>Reporter: Araika Singh
>Assignee: Araika Singh
>Priority: Major
>  Labels: pull-request-available
>
> https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.15



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (HIVE-28073) Upgrade jackson version to 2.16.1

2024-02-20 Thread Araika Singh (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-28073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Araika Singh updated HIVE-28073:

Issue Type: Bug  (was: Improvement)

> Upgrade jackson version to 2.16.1
> -
>
> Key: HIVE-28073
> URL: https://issues.apache.org/jira/browse/HIVE-28073
> Project: Hive
>  Issue Type: Bug
>Reporter: Araika Singh
>Assignee: Araika Singh
>Priority: Major
>  Labels: pull-request-available
>
> https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.15



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Work started] (HIVE-28073) Bump jackson version to 2.15.0

2024-02-11 Thread Araika Singh (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-28073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on HIVE-28073 started by Araika Singh.
---
> Bump jackson version to 2.15.0 
> ---
>
> Key: HIVE-28073
> URL: https://issues.apache.org/jira/browse/HIVE-28073
> Project: Hive
>  Issue Type: Improvement
>Reporter: Araika Singh
>Assignee: Araika Singh
>Priority: Major
>  Labels: pull-request-available
>
> https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.15



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (HIVE-28073) Bump jackson version to 2.15.0

2024-02-11 Thread Araika Singh (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-28073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Araika Singh updated HIVE-28073:

Description: https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.15 
 (was: In order to take advantage of the new 
[https://cowtowncoder.medium.com/jackson-2-15-release-overview-ecd10926aa83])

> Bump jackson version to 2.15.0 
> ---
>
> Key: HIVE-28073
> URL: https://issues.apache.org/jira/browse/HIVE-28073
> Project: Hive
>  Issue Type: Improvement
>Reporter: Araika Singh
>Assignee: Araika Singh
>Priority: Major
>
> https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.15



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (HIVE-28073) Bump jackson version to 2.15.0

2024-02-11 Thread Araika Singh (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-28073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Araika Singh updated HIVE-28073:

Summary: Bump jackson version to 2.15.0   (was: Upgrade jackson version to 
2.15.0 )

> Bump jackson version to 2.15.0 
> ---
>
> Key: HIVE-28073
> URL: https://issues.apache.org/jira/browse/HIVE-28073
> Project: Hive
>  Issue Type: Improvement
>Reporter: Araika Singh
>Assignee: Araika Singh
>Priority: Major
>
> In order to take advantage of the new 
> [https://cowtowncoder.medium.com/jackson-2-15-release-overview-ecd10926aa83]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (HIVE-28073) Upgrade jackson version to 2.15.0

2024-02-11 Thread Araika Singh (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-28073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Araika Singh updated HIVE-28073:

Description: 
In order to take advantage of the new 
[https://cowtowncoder.medium.com/jackson-2-15-release-overview-ecd10926aa83]

  was:https://cowtowncoder.medium.com/jackson-2-15-release-overview-ecd10926aa83


> Upgrade jackson version to 2.15.0 
> --
>
> Key: HIVE-28073
> URL: https://issues.apache.org/jira/browse/HIVE-28073
> Project: Hive
>  Issue Type: Improvement
>Reporter: Araika Singh
>Assignee: Araika Singh
>Priority: Major
>
> In order to take advantage of the new 
> [https://cowtowncoder.medium.com/jackson-2-15-release-overview-ecd10926aa83]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (HIVE-28073) Upgrade jackson version to 2.15.0

2024-02-11 Thread Araika Singh (Jira)
Araika Singh created HIVE-28073:
---

 Summary: Upgrade jackson version to 2.15.0 
 Key: HIVE-28073
 URL: https://issues.apache.org/jira/browse/HIVE-28073
 Project: Hive
  Issue Type: Improvement
Reporter: Araika Singh
Assignee: Araika Singh


https://cowtowncoder.medium.com/jackson-2-15-release-overview-ecd10926aa83



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Work started] (HIVE-28065) Upgrade Bouncy castle to bcprov-jdk18on 1.77

2024-02-07 Thread Araika Singh (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-28065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on HIVE-28065 started by Araika Singh.
---
> Upgrade Bouncy castle to bcprov-jdk18on 1.77
> 
>
> Key: HIVE-28065
> URL: https://issues.apache.org/jira/browse/HIVE-28065
> Project: Hive
>  Issue Type: Bug
>Reporter: Araika Singh
>Assignee: Araika Singh
>Priority: Major
>  Labels: pull-request-available
>
> For Bouncy Castle for java before 1.74(excluding), it was discovered that 
> there was a potential LDAP injection. During the certificate validation 
> process, bouncycastle used the certificate's "Subject Name" into an LDAP 
> search filter without any escaping.
> https://nvd.nist.gov/vuln/detail/CVE-2023-33201



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (HIVE-28065) Upgrade Bouncy castle to bcprov-jdk18on 1.77

2024-02-06 Thread Araika Singh (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-28065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Araika Singh updated HIVE-28065:

Summary: Upgrade Bouncy castle to bcprov-jdk18on 1.77  (was: 
[CVE-2023-33201] Upgrade Bouncy castle to bcprov-jdk18on 1.77)

> Upgrade Bouncy castle to bcprov-jdk18on 1.77
> 
>
> Key: HIVE-28065
> URL: https://issues.apache.org/jira/browse/HIVE-28065
> Project: Hive
>  Issue Type: Bug
>Reporter: Araika Singh
>Assignee: Araika Singh
>Priority: Major
>
> For Bouncy Castle for java before 1.74(excluding), it was discovered that 
> there was a potential LDAP injection. During the certificate validation 
> process, bouncycastle used the certificate's "Subject Name" into an LDAP 
> search filter without any escaping.
> https://nvd.nist.gov/vuln/detail/CVE-2023-33201



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Created] (HIVE-28065) [CVE-2023-33201] Upgrade Bouncy castle to bcprov-jdk18on 1.77

2024-02-06 Thread Araika Singh (Jira)
Araika Singh created HIVE-28065:
---

 Summary: [CVE-2023-33201] Upgrade Bouncy castle to bcprov-jdk18on 
1.77
 Key: HIVE-28065
 URL: https://issues.apache.org/jira/browse/HIVE-28065
 Project: Hive
  Issue Type: Bug
Reporter: Araika Singh
Assignee: Araika Singh


For Bouncy Castle for java before 1.74(excluding), it was discovered that there 
was a potential LDAP injection. During the certificate validation process, 
bouncycastle used the certificate's "Subject Name" into an LDAP search filter 
without any escaping.

https://nvd.nist.gov/vuln/detail/CVE-2023-33201



--
This message was sent by Atlassian Jira
(v8.20.10#820010)