feature/client_cut_internal #9
No reviewers
Labels
No labels
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-csharp#9
Loading…
Reference in a new issue
No description provided.
Delete branch "PavelGrossSpb/frostfs-sdk-csharp:feature/client_cut_internal"
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?
Internal implementation for 'client cut' functionality + custom client cut code snippet updating
b399f5d880
to6ebf4fb508
@ -21,6 +24,8 @@ public partial class Client: IFrostFSClient
public readonly OwnerId OwnerId;
public readonly Version Version = new(2, 13);
private readonly Dictionary<string, ulong> NetworkSettings = [];
NetworkConfig
contains not only values ofulong
type.See
https://git.frostfs.info/TrueCloudLab/frostfs-node/src/branch/master/pkg/morph/client/netmap/config.go#L224
or
https://git.frostfs.info/TrueCloudLab/frostfs-node/src/branch/master/cmd/frostfs-cli/modules/netmap/netinfo.go#L41
@ -88,0 +119,4 @@
_channel = GrpcChannel.ForAddress(uri, new GrpcChannelOptions
{
Credentials = grpcCredentials,
HttpHandler = new System.Net.Http.HttpClientHandler()
For
.net framework
isWinHttpHandler
preferable.Also it could custom certificate used, so how to specify it now?
@ -84,1 +87,3 @@
private async Task<ObjectId> PutObject(ObjectHeader header, Stream payload)
private Task<ObjectId> PutObject(ObjectHeader header, Stream payload, CancellationToken cancellationToken)
{
if (header.ClientCut)
Actually
ClientCut
isn'tObjectHeader
field.@ -85,0 +92,4 @@
return PutStreamObject(header, payload, cancellationToken);
}
private async Task<ObjectId> PutClientCutObject(ObjectHeader header, Stream payloadStream, CancellationToken cancellationToken)
Put
andPutSingle
are API implementations, but this method looks like client extension from my point of view.