Refactor replicator #517

Merged
fyrchik merged 3 commits from dstepanov-yadro/frostfs-node:feat/replicator-put-single into master 2023-07-18 10:52:13 +00:00
  • Now remote target tries put object with single request. If it is not possible or PutSingle RPC not implemented, put with stream is used.

  • Capacity rebalance removed

  • Added trace for replicator task handler

Closes #463

* Now remote target tries put object with single request. If it is not possible or PutSingle RPC not implemented, put with stream is used. * Capacity rebalance removed * Added trace for replicator task handler Closes #463
requested reviews from storage-core-committers, storage-core-developers 2023-07-13 12:20:54 +00:00
dstepanov-yadro changed title from WIP: Refactor replicator to Refactor replicator 2023-07-13 12:20:59 +00:00
ale64bit approved these changes 2023-07-13 13:52:54 +00:00
@ -452,0 +460,4 @@
objID, isSet := prm.obj.ID()
if !isSet {
return nil, fmt.Errorf("missing object id")
Member

errors.New?

`errors.New`?
Author
Member

fixed

fixed
ale64bit marked this conversation as resolved
@ -452,0 +489,4 @@
if err == nil {
err = apistatus.ErrFromStatus(res.Status())
} else {
Member

discussed offline

discussed offline
Author
Member

fixed

fixed
ale64bit marked this conversation as resolved
dstepanov-yadro force-pushed feat/replicator-put-single from ff17b9726d to 1364113f08 2023-07-14 07:38:34 +00:00 Compare
fyrchik reviewed 2023-07-15 10:06:17 +00:00
fyrchik left a comment
Owner
  1. There is a typo in the policIer in the commit message
  2. In the commit we remove rebalancing logic, could you mention the reasons in the commit message? Also, do you have some other ideas for this in mind?
1. There is a typo in the `policIer` in the commit message 2. In the commit we remove rebalancing logic, could you mention the reasons in the commit message? Also, do you have some other ideas for this in mind?
@ -64,2 +66,4 @@
prm.SetObject(t.obj)
_, objectIDSet := t.obj.ID()
if objectIDSet {
Owner

remoteTarget is used by node only, so I would expect only prepared objects here.
Can this condition be false?

`remoteTarget` is used by node only, so I would expect only prepared objects here. Can this condition be false?
Author
Member

fixed

fixed
dstepanov-yadro force-pushed feat/replicator-put-single from 1364113f08 to e39a9c9c68 2023-07-17 08:38:16 +00:00 Compare
fyrchik approved these changes 2023-07-18 10:51:55 +00:00
fyrchik merged commit f0355a453e into master 2023-07-18 10:52:13 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#517
No description provided.