forked from apache/rocketmq
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ISSUE apache#6154] Support Amazon S3 backend in TieredStorage (apach…
…e#6495) * support s3 backend in tiered storage * refactor(tieredstorage): Unify all object storage configuration properties 1. Unify all object storage configuration properties * refactor(tieredstorage): replace some lambda function with more simple expression 1. replace some lambda function with more simple expression * style(tieredstorage): perfect comments on ChunkMetadata 1. perfect comments on ChunkMetadata * refactor(tieredstorage): perfect lambda expression 1. perfect lambda expression * fix(tieredstorage): fix unmatched config attributes in brokerS3.conf 1. fix unmatched config attributes in brokerS3.conf * feat(tieredstorage): More context in logging output 1. More context in logging output * fix(tieredstorage): fix wrong concurrently put 1. fix wrong concurrently put * test(tieredstorage): add UT to verify TieredFileSegmentInputStream 1. add UT to verify TieredFileSegmentInputStream * refactor(tieredstorage): better code placement 1. better code placement * refactor(tieredstorage): refactor TieredFileSegmentInputStream for better understandability 1. refactor TieredFileSegmentInputStream for better understandability * feat(tieredstorage): support `reset` of TieredFileSegmentInputStream 1. support `reset` of TieredFileSegmentInputStream * fix(tieredstorage): fix wrong position when failed in `S3FileSegment#commit0` 1. fix wrong position when failed in `S3FileSegment#commit0` * fix(tieredstorage): fix still have upload buffer when already seal the segment 1. fix still have upload buffer when already seal the segment * test(tieredstorage): fix wrong assertion 1. fix wrong assertion * feat(tieredstorage): support switch to enable merge chunks into segment 1. support switch to enable merge chunks into segment * feat(tieredstorage): add more debug log in TieredMessageStore 1. add more debug log in TieredMessageStore * style(tieredstorage): use rmq code style 1. use rmq code style * feat(tieredstorage): add metrics for S3 provider 1. add metrics for S3 provider * fix(tieredstorage): resolve conflicts after rebasing master 1. resolve conflicts after rebasing master Closes apache#6624 * style(tieredstorage): change log level 1. change log level Closes apache#6154 * build(controller): build tieredstorage with bazel 1. build tieredstorage with bazel * build(controller): build tieredstorage with bazel 1. build tieredstorage with bazel * style(tieredstorage): change log level 1. change log level Closes apache#6154 * test(tieredstorage): ignore tests about S3Mock 1. ignore tests about S3Mock * test(tieredstorage): ignore tests about S3Mock 1. ignore tests about S3Mock
- Loading branch information
1 parent
a325d14
commit 450d0d6
Showing
44 changed files
with
2,422 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
brokerClusterName = DefaultCluster | ||
brokerName = broker-a | ||
brokerId = 0 | ||
deleteWhen = 04 | ||
fileReservedTime = 48 | ||
brokerRole = ASYNC_MASTER | ||
flushDiskType = ASYNC_FLUSH | ||
messageStorePlugIn = org.apache.rocketmq.tieredstore.TieredMessageStore | ||
tieredBackendServiceProvider = org.apache.rocketmq.tieredstore.provider.s3.S3FileSegment | ||
tieredStorageLevel = FORCE | ||
tieredStoreGroupCommitCount = 1 | ||
tieredStoreGroupCommitSize = 50 | ||
objectStoreRegion = "" | ||
objectStoreBucket = "" | ||
objectStoreAccessKey = "" | ||
objectStoreSecretKey = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,5 +23,6 @@ public enum TieredStoreErrorCode { | |
NO_NEW_DATA, | ||
STORAGE_PROVIDER_ERROR, | ||
IO_ERROR, | ||
SEGMENT_SEALED, | ||
UNKNOWN | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.