mirror of https://github.com/apache/druid.git
commit
fc80cf0f32
|
@ -39,7 +39,7 @@ public class S3DataSegmentArchiver extends S3DataSegmentMover implements DataSeg
|
|||
S3DataSegmentPusherConfig restoreConfig
|
||||
)
|
||||
{
|
||||
super(s3Client);
|
||||
super(s3Client, restoreConfig);
|
||||
this.archiveConfig = archiveConfig;
|
||||
this.restoreConfig = restoreConfig;
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ public class S3DataSegmentMoverTest
|
|||
public void testMove() throws Exception
|
||||
{
|
||||
MockStorageService mockS3Client = new MockStorageService();
|
||||
S3DataSegmentMover mover = new S3DataSegmentMover(mockS3Client);
|
||||
S3DataSegmentMover mover = new S3DataSegmentMover(mockS3Client, new S3DataSegmentPusherConfig());
|
||||
|
||||
mockS3Client.putObject("main", new S3Object("baseKey/test/2013-01-01T00:00:00.000Z_2013-01-02T00:00:00.000Z/1/0/index.zip"));
|
||||
mockS3Client.putObject("main", new S3Object("baseKey/test/2013-01-01T00:00:00.000Z_2013-01-02T00:00:00.000Z/1/0/descriptor.json"));
|
||||
|
@ -82,7 +82,7 @@ public class S3DataSegmentMoverTest
|
|||
public void testMoveNoop() throws Exception
|
||||
{
|
||||
MockStorageService mockS3Client = new MockStorageService();
|
||||
S3DataSegmentMover mover = new S3DataSegmentMover(mockS3Client);
|
||||
S3DataSegmentMover mover = new S3DataSegmentMover(mockS3Client, new S3DataSegmentPusherConfig());
|
||||
|
||||
mockS3Client.putObject("archive", new S3Object("targetBaseKey/test/2013-01-01T00:00:00.000Z_2013-01-02T00:00:00.000Z/1/0/index.zip"));
|
||||
mockS3Client.putObject("archive", new S3Object("targetBaseKey/test/2013-01-01T00:00:00.000Z_2013-01-02T00:00:00.000Z/1/0/descriptor.json"));
|
||||
|
@ -103,7 +103,7 @@ public class S3DataSegmentMoverTest
|
|||
public void testMoveException() throws Exception
|
||||
{
|
||||
MockStorageService mockS3Client = new MockStorageService();
|
||||
S3DataSegmentMover mover = new S3DataSegmentMover(mockS3Client);
|
||||
S3DataSegmentMover mover = new S3DataSegmentMover(mockS3Client, new S3DataSegmentPusherConfig());
|
||||
|
||||
mover.move(
|
||||
sourceSegment,
|
||||
|
|
Loading…
Reference in New Issue