HDDS-13184. Persist Block Size in Delete Transaction for SCM#9272
HDDS-13184. Persist Block Size in Delete Transaction for SCM#9272ChenSammi merged 11 commits intoapache:masterfrom
Conversation
5eef1e6 to
53f34b2
Compare
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/upgrade/HDDSLayoutFeature.java
Outdated
Show resolved
Hide resolved
hadoop-hdds/interface-server/src/main/proto/ScmServerDatanodeHeartbeatProtocol.proto
Show resolved
Hide resolved
...rver-scm/src/main/java/org/apache/hadoop/hdds/scm/block/DeletedBlockLogStateManagerImpl.java
Show resolved
Hide resolved
...p-ozone/cli-admin/src/main/java/org/apache/hadoop/hdds/scm/cli/ContainerOperationClient.java
Outdated
Show resolved
Hide resolved
...p-ozone/cli-admin/src/main/java/org/apache/hadoop/hdds/scm/cli/ContainerOperationClient.java
Outdated
Show resolved
Hide resolved
...rver-scm/src/main/java/org/apache/hadoop/hdds/scm/block/DeletedBlockLogStateManagerImpl.java
Outdated
Show resolved
Hide resolved
sumitagrawl
left a comment
There was a problem hiding this comment.
@priyeshkaratha given few comments
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/block/DeletedBlockLogImpl.java
Show resolved
Hide resolved
...rver-scm/src/main/java/org/apache/hadoop/hdds/scm/block/DeletedBlockLogStateManagerImpl.java
Outdated
Show resolved
Hide resolved
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/block/DeletedBlockLogImpl.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/apache/hadoop/hdds/scm/block/SCMDeletedBlockTransactionStatusManager.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/apache/hadoop/hdds/scm/block/SCMDeletedBlockTransactionStatusManager.java
Show resolved
Hide resolved
2e190fd to
f6b1f4a
Compare
.../src/main/java/org/apache/hadoop/hdds/scm/block/SCMDeletedBlockTransactionStatusManager.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/apache/hadoop/hdds/scm/block/SCMDeletedBlockTransactionStatusManager.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/apache/hadoop/hdds/scm/block/SCMDeletedBlockTransactionStatusManager.java
Outdated
Show resolved
Hide resolved
49b6dc9 to
3173e98
Compare
3173e98 to
26aa826
Compare
26aa826 to
7300f52
Compare
ChenSammi
left a comment
There was a problem hiding this comment.
Thanks @priyeshkaratha for the contribution , and @sumitagrawl for the review.
sumitagrawl
left a comment
There was a problem hiding this comment.
@priyeshkaratha Some additional minor review comments are there after previous fix, please handle with new JIRA
| private final AtomicLong txFlushPending = new AtomicLong(0); | ||
| private long lastSnapshotTimeMs = 0; | ||
| private final ReentrantReadWriteLock rwLock = new ReentrantReadWriteLock(); | ||
| private boolean autoFlushEnabled = true; |
There was a problem hiding this comment.
This flag is of no meaning now, can be removed
| } | ||
|
|
||
| private void initDataDistributionData() throws IOException { | ||
| if (VersionedDatanodeFeatures.isFinalized(HDDSLayoutFeature.STORAGE_SPACE_DISTRIBUTION)) { |
There was a problem hiding this comment.
STORAGE_SPACE_DISTRIBUTION check may not be required, it will not be available before finalize and on first startup for new version,
|
|
||
| @Nullable | ||
| public DeletedBlocksTransactionSummary getTransactionSummary() { | ||
| if (!VersionedDatanodeFeatures.isFinalized(HDDSLayoutFeature.STORAGE_SPACE_DISTRIBUTION)) { |
There was a problem hiding this comment.
STORAGE_SPACE_DISTRIBUTION here also not required, by default will be 0 if not finalized, this is redundant check.
| } | ||
|
|
||
| @Override | ||
| public ArrayList<DeletedBlocksTransaction> getTransactionsFromDB(ArrayList<Long> txIDs) throws IOException { |
There was a problem hiding this comment.
No call of this api is found, unused method to be removed
What changes were proposed in this pull request?
What is the link to the Apache JIRA
HDDS-13184
How was this patch tested?
New unit tests added. And its tested in feature branch part of #8845