You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2021/01/09 23:33:00 UTC

[jira] [Resolved] (HIVE-24607) Add JUnit annotation for running tests only if ports are available

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

Stamatis Zampetakis resolved HIVE-24607.
----------------------------------------
    Resolution: Won't Fix

After giving this a second though, and discussing with [~mgergely] (in the PR), it seems to be kind of risky to rely on such annotations since they may let some problems slip unnoticed. Given that our precommit tests are not running in different environments there is no big benefit in introducing this annotation thus I am makring this Jira as won't fix.

> Add JUnit annotation for running tests only if ports are available
> ------------------------------------------------------------------
>
>                 Key: HIVE-24607
>                 URL: https://issues.apache.org/jira/browse/HIVE-24607
>             Project: Hive
>          Issue Type: Improvement
>          Components: Testing Infrastructure
>            Reporter: Stamatis Zampetakis
>            Assignee: Stamatis Zampetakis
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Some unit tests tend to rely on some specific ports assuming that they are available. Moreover, in some cases it is necessary to create explicitly a socket bound to some specific port. 
> The goal of this Jira is to add a JUnit annotation that will run a test only if the requested ports are available (skip it otherwise).
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)