Skip to content

Commit

Permalink
Merge ece7cde into 927f0ca
Browse files Browse the repository at this point in the history
  • Loading branch information
Brennon York committed Dec 16, 2016
2 parents 927f0ca + ece7cde commit 21cb299
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 27 deletions.
Expand Up @@ -337,7 +337,7 @@ public void testInterleavedReadersWithRollingEdgeUnPartitioned() throws Exceptio
dlmreader1.close();
}

@Test
@Test(timeout = 60000)
public void testFactorySharedClients() throws Exception {
String name = "distrlog-factorysharedclients";
testFactory(name, true);
Expand Down
Expand Up @@ -111,7 +111,7 @@ public void testPurgeLogs() throws Exception {
distributedLogManager.close();
}

@Test
@Test(timeout = 60000)
public void testTruncation() throws Exception {
String name = "distrlog-truncation";

Expand Down Expand Up @@ -143,7 +143,7 @@ public void testTruncation() throws Exception {
pair.getLeft().close();
}

@Test
@Test(timeout = 60000)
public void testExplicitTruncation() throws Exception {
String name = "distrlog-truncation-explicit";

Expand Down
Expand Up @@ -43,7 +43,7 @@ SimplePermitLimiter createPermitLimiter(boolean darkmode, int permits, Feature f
return new SimplePermitLimiter(darkmode, permits, new NullStatsLogger(), false, feature);
}

@Test
@Test(timeout = 60000)
public void testGlobalOnly() throws Exception {
SimplePermitLimiter streamLimiter = createPermitLimiter(false, Integer.MAX_VALUE);
SimplePermitLimiter globalLimiter = createPermitLimiter(false, 1);
Expand All @@ -59,7 +59,7 @@ public void testGlobalOnly() throws Exception {
assertPermits(streamLimiter, 0, globalLimiter, 0);
}

@Test
@Test(timeout = 60000)
public void testStreamOnly() throws Exception {
SimplePermitLimiter streamLimiter = createPermitLimiter(false, 1);
SimplePermitLimiter globalLimiter = createPermitLimiter(false, Integer.MAX_VALUE);
Expand All @@ -73,7 +73,7 @@ public void testStreamOnly() throws Exception {
assertPermits(streamLimiter, 1, globalLimiter, 1);
}

@Test
@Test(timeout = 60000)
public void testDarkmode() throws Exception {
SimplePermitLimiter streamLimiter = createPermitLimiter(true, Integer.MAX_VALUE);
SimplePermitLimiter globalLimiter = createPermitLimiter(true, 1);
Expand All @@ -83,7 +83,7 @@ public void testDarkmode() throws Exception {
assertPermits(streamLimiter, 2, globalLimiter, 2);
}

@Test
@Test(timeout = 60000)
public void testDarkmodeWithDisabledFeature() throws Exception {
SettableFeature feature = new SettableFeature("test", 10000);
SimplePermitLimiter streamLimiter = createPermitLimiter(true, 1, feature);
Expand All @@ -97,7 +97,7 @@ public void testDarkmodeWithDisabledFeature() throws Exception {
assertPermits(streamLimiter, 0, globalLimiter, 0);
}

@Test
@Test(timeout = 60000)
public void testDisabledFeature() throws Exception {
// Disable darkmode, but should still ignore limits because of the feature.
SettableFeature feature = new SettableFeature("test", 10000);
Expand All @@ -112,7 +112,7 @@ public void testDisabledFeature() throws Exception {
assertPermits(streamLimiter, 0, globalLimiter, 0);
}

@Test
@Test(timeout = 60000)
public void testSetDisableFeatureAfterAcquireAndBeforeRelease() throws Exception {
SettableFeature feature = new SettableFeature("test", 0);
SimplePermitLimiter streamLimiter = createPermitLimiter(false, 2, feature);
Expand All @@ -127,7 +127,7 @@ public void testSetDisableFeatureAfterAcquireAndBeforeRelease() throws Exception
assertPermits(streamLimiter, 0, globalLimiter, 0);
}

@Test
@Test(timeout = 60000)
public void testUnsetDisableFeatureAfterPermitsExceeded() throws Exception {
SettableFeature feature = new SettableFeature("test", 10000);
SimplePermitLimiter streamLimiter = createPermitLimiter(false, 1, feature);
Expand All @@ -153,7 +153,7 @@ public void testUnsetDisableFeatureAfterPermitsExceeded() throws Exception {
assertPermits(streamLimiter, 0, globalLimiter, 0);
}

@Test
@Test(timeout = 60000)
public void testUnsetDisableFeatureBeforePermitsExceeded() throws Exception {
SettableFeature feature = new SettableFeature("test", 0);
SimplePermitLimiter streamLimiter = createPermitLimiter(false, 1, feature);
Expand All @@ -171,7 +171,7 @@ public void testUnsetDisableFeatureBeforePermitsExceeded() throws Exception {
assertPermits(streamLimiter, 2, globalLimiter, 2);
}

@Test
@Test(timeout = 60000)
public void testDarkmodeGlobalUnderStreamOver() throws Exception {
SimplePermitLimiter streamLimiter = createPermitLimiter(true, 1);
SimplePermitLimiter globalLimiter = createPermitLimiter(true, 2);
Expand All @@ -184,7 +184,7 @@ public void testDarkmodeGlobalUnderStreamOver() throws Exception {
assertPermits(streamLimiter, 0, globalLimiter, 0);
}

@Test
@Test(timeout = 60000)
public void testDarkmodeGlobalOverStreamUnder() throws Exception {
SimplePermitLimiter streamLimiter = createPermitLimiter(true, 2);
SimplePermitLimiter globalLimiter = createPermitLimiter(true, 1);
Expand Down
Expand Up @@ -258,7 +258,7 @@ public void testAllocateMultipleLedgers() throws Exception {
assertEquals(numLedgers, allocatedLedgers.size());
}

@Test
@Test(timeout = 60000)
public void testConcurrentAllocation() throws Exception {
final int numAllocators = 5;
String allocationPath = "/concurrentAllocation";
Expand Down
Expand Up @@ -26,7 +26,7 @@
public class TestConcurrentBaseConfiguration {
static final Logger LOG = LoggerFactory.getLogger(TestConcurrentBaseConfiguration.class);

@Test
@Test(timeout = 20000)
public void testBasicOperations() throws Exception {
ConcurrentBaseConfiguration conf = new ConcurrentBaseConfiguration();
conf.setProperty("prop1", "1");
Expand Down
Expand Up @@ -37,7 +37,7 @@ public class TestZKLogSegmentFilters {

static final Logger LOG = LoggerFactory.getLogger(TestZKLogSegmentFilters.class);

@Test
@Test(timeout = 60000)
public void testWriteFilter() {
Set<String> expectedFilteredSegments = new HashSet<String>();
List<String> segments = new ArrayList<String>();
Expand Down
Expand Up @@ -39,7 +39,7 @@ public int getCount() {
}
}

@Test
@Test(timeout = 60000)
public void testChainedRequestLimiter() throws Exception {
MockRequestLimiter limiter1 = new MockRequestLimiter();
MockRequestLimiter limiter2 = new MockRequestLimiter();
Expand Down
Expand Up @@ -225,7 +225,7 @@ public void testUpdateLastDLSN() throws Exception {
assertEquals(inprogressLogSegment, readInprogressLogSegment);
}

@Test
@Test(timeout = 60000)
public void testChangeTruncationStatus() throws Exception {
String ledgerPath = "/ledgers2";
zkc.get().create(ledgerPath, new byte[0], ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT);
Expand Down
Expand Up @@ -25,7 +25,7 @@

public class TestConfUtils {

@Test
@Test(timeout = 60000)
public void testLoadConfiguration() {
Configuration conf1 = new CompositeConfiguration();
conf1.setProperty("key1", "value1");
Expand Down
Expand Up @@ -29,7 +29,7 @@

public class TestPermitManager {

@Test
@Test(timeout = 60000)
public void testUnlimitedPermitManager() {
PermitManager pm = PermitManager.UNLIMITED_PERMIT_MANAGER;
List<PermitManager.Permit> permits = new ArrayList<PermitManager.Permit>();
Expand All @@ -53,7 +53,7 @@ public void testUnlimitedPermitManager() {
}
}

@Test
@Test(timeout = 60000)
public void testLimitedPermitManager() {
ScheduledExecutorService executorService = Executors.newSingleThreadScheduledExecutor();
PermitManager pm = new LimitedPermitManager(1, 0, TimeUnit.SECONDS, executorService);
Expand Down
Expand Up @@ -73,7 +73,7 @@ public void shutdown() {
}
}

@Test
@Test(timeout = 60000)
public void testSimpleSuccess() throws Exception {
TestFuturePool<Void> pool = new TestFuturePool<Void>();
final AtomicBoolean result = new AtomicBoolean(false);
Expand All @@ -88,7 +88,7 @@ public Void apply() {
pool.shutdown();
}

@Test
@Test(timeout = 60000)
public void testSimpleFailure() throws Exception {
TestFuturePool<Void> pool = new TestFuturePool<Void>();
Future<Void> future = pool.wrapper.apply(new Function0<Void>() {
Expand All @@ -104,7 +104,7 @@ public Void apply() {
pool.shutdown();
}

@Test
@Test(timeout = 60000)
public void testFailedDueToClosed() throws Exception {
TestFuturePool<Void> pool = new TestFuturePool<Void>();
pool.wrapper.close();
Expand All @@ -121,7 +121,7 @@ public Void apply() {
pool.shutdown();
}

@Test
@Test(timeout = 60000)
public void testRejectedFailure() throws Exception {
TestFuturePool<Void> pool = new TestFuturePool<Void>();
final AtomicBoolean result = new AtomicBoolean(false);
Expand All @@ -146,7 +146,7 @@ public Void apply() {
pool.shutdown();
}

@Test
@Test(timeout = 60000)
public void testRejectedBackupFailure() throws Exception {
TestFuturePool<Void> pool = new TestFuturePool<Void>();
final AtomicBoolean result = new AtomicBoolean(false);
Expand Down
Expand Up @@ -100,7 +100,7 @@ public void testCollectionMethods() throws Exception {
assertEquals(0, streamManager.numCached());
}

@Test
@Test(timeout = 60000)
public void testCreateStream() throws Exception {
Stream mockStream = mock(Stream.class);
final String streamName = "stream1";
Expand Down

0 comments on commit 21cb299

Please sign in to comment.