Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public TestNetworkTopologyImpl(NodeSchema[] schemas, Node[] nodeArray) {
}

@Rule
public Timeout testTimeout = new Timeout(3000000);
public Timeout testTimeout = Timeout.seconds(300);

@Parameters
public static Collection<Object[]> setupDatanodes() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static class ParameterizedTests {
private final String errMsg;

@Rule
public Timeout testTimeout = new Timeout(2000);
public Timeout testTimeout = Timeout.seconds(2);

@Parameters
public static Collection<Object[]> getSchemaFiles() {
Expand Down Expand Up @@ -98,7 +98,7 @@ public static class NonParameterizedTests {
private static final String VALID_SCHEMA_FILE = "good.xml";

@Rule
public Timeout testTimeout = new Timeout(2000);
public Timeout testTimeout = Timeout.seconds(2);

@Test
public void testGood() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public TestNodeSchemaManager() {
}

@Rule
public Timeout testTimeout = new Timeout(30000);
public Timeout testTimeout = Timeout.seconds(30);

@Test(expected = IllegalArgumentException.class)
public void testFailure1() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public TestYamlSchemaLoader(String schemaFile, String errMsg) {
}

@Rule
public Timeout testTimeout = new Timeout(30000);
public Timeout testTimeout = Timeout.seconds(30);

@Parameters
public static Collection<Object[]> getSchemaFiles() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
public class TestBlockData {
static final Logger LOG = LoggerFactory.getLogger(TestBlockData.class);
@Rule
public TestRule timeout = new Timeout(10000);
public TestRule timeout = Timeout.seconds(10);

static ContainerProtos.ChunkInfo buildChunkInfo(String name, long offset,
long len) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public class TestContainerPersistence {
* Set the timeout for every test.
*/
@Rule
public Timeout testTimeout = new Timeout(300000);
public Timeout testTimeout = Timeout.seconds(300);

private final ChunkLayOutVersion layout;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
*/
public class TestHandler {
@Rule
public TestRule timeout = new Timeout(300000);
public TestRule timeout = Timeout.seconds(300);

private OzoneConfiguration conf;
private HddsDispatcher dispatcher;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public class TestHddsVolumeChecker {
public TestName testName = new TestName();

@Rule
public Timeout globalTimeout = new Timeout(30_000);
public Timeout globalTimeout = Timeout.seconds(30);

private OzoneConfiguration conf = new OzoneConfiguration();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private void initializeVolumeSet() throws Exception {
}

@Rule
public Timeout testTimeout = new Timeout(300000);
public Timeout testTimeout = Timeout.seconds(300);

@Before
public void setup() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class TestVolumeSetDiskChecks {
TestVolumeSetDiskChecks.class);

@Rule
public Timeout globalTimeout = new Timeout(30_000);
public Timeout globalTimeout = Timeout.seconds(30);

@Rule
public ExpectedException thrown = ExpectedException.none();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class TestKeyValueContainerMarkUnhealthy {
public TemporaryFolder folder = new TemporaryFolder();

@Rule
public Timeout timeout = new Timeout(600_000);
public Timeout timeout = Timeout.seconds(600);

@Rule
public ExpectedException thrown = ExpectedException.none();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
public class TestKeyValueHandler {

@Rule
public TestRule timeout = new Timeout(300000);
public TestRule timeout = Timeout.seconds(300);

private static final String DATANODE_UUID = UUID.randomUUID().toString();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
public class TestHddsServerUtil {

@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);

@Rule
public ExpectedException thrown= ExpectedException.none();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class TestHddsServerUtils {
TestHddsServerUtils.class);

@Rule
public Timeout timeout = new Timeout(300_000);
public Timeout timeout = Timeout.seconds(300);;

@Rule
public ExpectedException thrown= ExpectedException.none();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class TestSCMSafeModeManager {
private List<ContainerInfo> containers = Collections.emptyList();

@Rule
public Timeout timeout = new Timeout(1000 * 300);
public Timeout timeout = Timeout.seconds(300);

@Rule
public final TemporaryFolder tempDir = new TemporaryFolder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class TestSCMSecurityProtocolServer {
private OzoneConfiguration config;

@Rule
public Timeout timeout = new Timeout(1000 * 20);
public Timeout timeout = Timeout.seconds(20);

@Before
public void setUp() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
*/
public class TestHddsClientUtils {
@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);

@Rule
public ExpectedException thrown= ExpectedException.none();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class TestOmUtils {
public TemporaryFolder folder = new TemporaryFolder();

@Rule
public Timeout timeout = new Timeout(60_000);
public Timeout timeout = Timeout.seconds(60);


@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class TestOzoneFSInputStream {
* Set a timeout for each test.
*/
@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);
private static MiniOzoneCluster cluster = null;
private static FileSystem fs;
private static Path filePath = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
public class TestOzoneFSWithObjectStoreCreate {

@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);

private String rootPath;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public class TestOzoneFileInterfaces {
* Set a timeout for each test.
*/
@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);

private String rootPath;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public TestOzoneFileSystem(boolean setDefaultFs, boolean enableOMRatis) {
* Set a timeout for each test.
*/
@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);

private static final Logger LOG =
LoggerFactory.getLogger(TestOzoneFileSystem.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class TestOzoneFileSystemMetrics {
* Set a timeout for each test.
*/
@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);
private static MiniOzoneCluster cluster = null;
private static FileSystem fs;
private static OzoneBucket bucket;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class TestOzoneFsHAURLs {
* Set a timeout for each test.
*/
@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);
public static final Logger LOG = LoggerFactory.getLogger(
TestOzoneFsHAURLs.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public TestRootedOzoneFileSystem(boolean setDefaultFs,
}

@Rule
public Timeout globalTimeout = new Timeout(300_000);
public Timeout globalTimeout = Timeout.seconds(300);;

private static boolean enabledFileSystemPaths;
private static boolean omRatisEnabled;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class TestSCMDbCheckpointServlet {
private String omId;

@Rule
public Timeout timeout = new Timeout(240000);
public Timeout timeout = Timeout.seconds(240);

@Rule
public TemporaryFolder folder = new TemporaryFolder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class TestSCMContainerManagerMetrics {
* Set a timeout for each test.
*/
@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);

private MiniOzoneCluster cluster;
private StorageContainerManager scm;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class TestNode2PipelineMap {
* Set a timeout for each test.
*/
@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);

private MiniOzoneCluster cluster;
private OzoneConfiguration conf;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class TestNodeFailure {
* Set a timeout for each test.
*/
@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);

private static MiniOzoneCluster cluster;
private static List<Pipeline> ratisPipelines;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public class TestPipelineClose {
* Set a timeout for each test.
*/
@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);

private MiniOzoneCluster cluster;
private OzoneConfiguration conf;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class TestSCMRestart {
* Set a timeout for each test.
*/
@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);

private static MiniOzoneCluster cluster;
private static OzoneConfiguration conf;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class TestContainerOperations {
* Set a timeout for each test.
*/
@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);

private static ScmClient storageClient;
private static MiniOzoneCluster cluster;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class TestContainerStateMachineIdempotency {
* Set a timeout for each test.
*/
@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);
private static MiniOzoneCluster cluster;
private static OzoneConfiguration ozoneConfig;
private static StorageContainerLocationProtocolClientSideTranslatorPB
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public final class TestDelegationToken {
.getLogger(TestDelegationToken.class);

@Rule
public Timeout timeout = new Timeout(80_000);
public Timeout timeout = Timeout.seconds(80);

@Rule
public TemporaryFolder folder = new TemporaryFolder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class TestMiniOzoneCluster {
* Set a timeout for each test.
*/
@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);

private MiniOzoneCluster cluster;
private static OzoneConfiguration conf;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class TestMiniOzoneHACluster {
public ExpectedException exception = ExpectedException.none();

@Rule
public Timeout timeout = new Timeout(300_000);
public Timeout timeout = Timeout.seconds(300);;

/**
* Create a MiniOzoneHAClusterImpl for testing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class TestOzoneConfigurationFields extends TestConfigurationFieldsBase {
* Set a timeout for each test.
*/
@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);

@Override
public void initializeMemberVariables() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public final class TestSecureOzoneCluster {
.getLogger(TestSecureOzoneCluster.class);

@Rule
public Timeout timeout = new Timeout(80_000);
public Timeout timeout = Timeout.seconds(80);

@Rule
public TemporaryFolder folder= new TemporaryFolder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public class TestStorageContainerManager {
* Set the timeout for every test.
*/
@Rule
public Timeout testTimeout = new Timeout(900000);
public Timeout testTimeout = Timeout.seconds(900);

@Rule
public ExpectedException thrown = ExpectedException.none();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class TestStorageContainerManagerHelper {
* Set a timeout for each test.
*/
@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);

private final MiniOzoneCluster cluster;
private final OzoneConfiguration conf;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class Test2WayCommitInRatis {
* Set a timeout for each test.
*/
@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);

private MiniOzoneCluster cluster;
private OzoneClient client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class TestBCSID {
* Set a timeout for each test.
*/
@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);

private static OzoneConfiguration conf = new OzoneConfiguration();
private static MiniOzoneCluster cluster;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class TestBlockOutputStream {
* Set a timeout for each test.
*/
@Rule
public Timeout timeout = new Timeout(300000);
public Timeout timeout = Timeout.seconds(300);
private static MiniOzoneCluster cluster;
private static OzoneConfiguration conf = new OzoneConfiguration();
private static OzoneClient client;
Expand Down
Loading