merlimat closed pull request #1888: Move UUID in S3 object name to start
URL: https://github.com/apache/incubator-pulsar/pull/1888
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/pulsar-broker/src/main/java/org/apache/pulsar/broker/s3offload/S3ManagedLedgerOffloader.java
b/pulsar-broker/src/main/java/org/apache/pulsar/broker/s3offload/S3ManagedLedgerOffloader.java
index 73bb78a140..f65eda96d8 100644
---
a/pulsar-broker/src/main/java/org/apache/pulsar/broker/s3offload/S3ManagedLedgerOffloader.java
+++
b/pulsar-broker/src/main/java/org/apache/pulsar/broker/s3offload/S3ManagedLedgerOffloader.java
@@ -116,11 +116,11 @@ public static S3ManagedLedgerOffloader
create(ServiceConfiguration conf,
}
static String dataBlockOffloadKey(long ledgerId, UUID uuid) {
- return String.format("ledger-%d-%s", ledgerId, uuid.toString());
+ return String.format("%s-ledger-%d", uuid.toString(), ledgerId);
}
static String indexBlockOffloadKey(long ledgerId, UUID uuid) {
- return String.format("ledger-%d-%s-index", ledgerId, uuid.toString());
+ return String.format("%s-ledger-%d-index", uuid.toString(), ledgerId);
}
// upload DataBlock to s3 using MultiPartUpload, and indexBlock in a new
Block,
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services