-
Notifications
You must be signed in to change notification settings - Fork 587
HDDS-8882. Manage status of DeleteBlocksCommand in SCM to avoid sending duplicates to Datanode #4988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HDDS-8882. Manage status of DeleteBlocksCommand in SCM to avoid sending duplicates to Datanode #4988
Changes from 22 commits
ce17803
d596899
2807f2a
a94d6cb
2021a3b
e4d2e21
1ba8e08
a1117a2
0bf4545
5f51a92
d10b30c
b7a9c1c
391dca9
5592902
f792ccc
be5e118
5fc9b5c
24e0e5a
43c7251
bb55189
553b702
d353c08
d859264
addbdf5
3424aec
343b67d
03cca5f
0a39cb3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,9 +19,6 @@ | |
|
|
||
| import java.util.Set; | ||
| import org.apache.hadoop.hdds.protocol.DatanodeDetails; | ||
| import org.apache.hadoop.hdds.protocol.proto | ||
| .StorageContainerDatanodeProtocolProtos.ContainerBlocksDeletionACKProto | ||
| .DeleteBlockTransactionResult; | ||
| import org.apache.hadoop.hdds.protocol.proto | ||
| .StorageContainerDatanodeProtocolProtos.DeletedBlocksTransaction; | ||
| import org.apache.hadoop.hdds.utils.db.Table; | ||
|
|
@@ -30,7 +27,6 @@ | |
| import java.io.IOException; | ||
| import java.util.List; | ||
| import java.util.Map; | ||
| import java.util.UUID; | ||
|
|
||
| /** | ||
| * The DeletedBlockLog is a persisted log in SCM to keep tracking | ||
|
|
@@ -88,14 +84,11 @@ void incrementCount(List<Long> txIDs) | |
| int resetCount(List<Long> txIDs) throws IOException; | ||
|
|
||
| /** | ||
| * Commits a transaction means to delete all footprints of a transaction | ||
| * from the log. This method doesn't guarantee all transactions can be | ||
| * successfully deleted, it tolerate failures and tries best efforts to. | ||
| * @param transactionResults - delete block transaction results. | ||
| * @param dnID - ID of datanode which acknowledges the delete block command. | ||
| * Get SCMDeletedBlockTransactionStatusManager. | ||
| * @return an Object of SCMDeletedBlockTransactionStatusManager | ||
| */ | ||
| void commitTransactions(List<DeleteBlockTransactionResult> transactionResults, | ||
| UUID dnID); | ||
| SCMDeletedBlockTransactionStatusManager | ||
| getSCMDeletedBlockTransactionStatusManager(); | ||
|
||
|
|
||
| /** | ||
| * Creates block deletion transactions for a set of containers, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.