Support awaiting in ape-manager
add and remove handlers #1506
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1506
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is your feature request related to a problem? Please describe.
As A client is able to set an APE-chain for a container requesting the
apemanager
service. The problem is that adding/removing chain to/fromPolicy
contract is performed asynchronously - the service sends a transaction and returns the response immediately. Therefore, the client is obliged to make sure if the chain is dispatched to thepolicy
contract, i.e. the blockchain has accepted this transaction.We should support await mechanism for these handlers - the response is returned as soon as the transaction is accepted -> the chain is set to
policy
contract.Describe the solution you'd like
Use the same approach for
await
from #1496Describe alternatives you've considered
Extend API with
awaitParams
. MakeAdd
andRemove
wait for transaction is accepted (we could use the same approach for notary deposit and container creation), but @fyrchik reminded we don't consider this ideaAddChain
update/invalidate APE cache? #1503As we have discussed offline, do not extend the API.
The mechanism should be similar to #1496