Skip to content

Commit

Permalink
FLUME-2514. Speed up TestFileChannelRestart tests
Browse files Browse the repository at this point in the history
TestFileChannelRestart tests are really slow. For example,
testToggleCheckpointCompressionFromFalseToTrue and
testToggleCheckpointCompressionFromTrueToFalse take ~4 minutes each.

Some of them could be made faster by using channels with lower capacity.

Reviewed by Bessenyei Balázs Donát

(Santiago M. Mola via Mike Percy)
  • Loading branch information
smola authored and mpercy committed Jul 20, 2016
1 parent 1ca0765 commit c554ba3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,8 @@ public void restartToggleCompression(boolean originalCheckpointCompressed)
overrides.put(FileChannelConfiguration.USE_DUAL_CHECKPOINTS,
"true");
overrides.put(FileChannelConfiguration.MAX_FILE_SIZE, "1000");
overrides.put(FileChannelConfiguration.TRANSACTION_CAPACITY, "1000");
overrides.put(FileChannelConfiguration.CAPACITY, "1000");
overrides.put(FileChannelConfiguration.COMPRESS_BACKUP_CHECKPOINT,
String.valueOf(originalCheckpointCompressed));
channel = createFileChannel(overrides);
Expand Down

0 comments on commit c554ba3

Please sign in to comment.