RADOSGW S3 - Continuation Token Ignored?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



All;

I've got a RADOSGW instance setup, backed by my demonstration Ceph cluster.  I'm using Amazon's S3 SDK, and I've run into an annoying little snag.

My code looks like this:
amazonS3 = builder.build();

ListObjectsV2Request req = new ListObjectsV2Request().withBucketName("WorkOrder").withMaxKeys(MAX_KEYS);
ListObjectsV2Result result;

do
{
	result = amazonS3.listObjectsV2(req);

	for (S3ObjectSummary objectSummary : result.getObjectSummaries())
	{
		summaries.add(objectSummary);
	}

	String token = result.getNextContinuationToken();
	req.setContinuationToken(token);
}
while (result.isTruncated());

The problem is, the ContinuationToken seems to be ignored, i.e. every call to amazonS3.listObjectsV2(req) returns the same set, and the loop never ends (until the summaries LinkedList overflows).

Thoughts?

Thank you,

Dominic L. Hilsbos, MBA 
Director - Information Technology 
Perform Air International Inc.
DHilsbos@xxxxxxxxxxxxxx 
www.PerformAir.com



_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux