[#10] Netmap snapshot, options, metrics #11
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#11
Loading…
Reference in a new issue
No description provided.
Delete branch "PavelGrossSpb/frostfs-sdk-csharp:Netmap_Options_Metrics"
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?
Signed-off-by: Pavel Gross p.gross@yadro.com
@ -49,0 +47,4 @@
return new Client(settings, containerService, netmapService, sessionService, objectService);
}
private Client(
If
Client
is disposable, then how it can be disposed having private constructor?Thx, I forgot to inherit the interface from IDisposable
public interface IFrostFSClient : IDisposable
this way is recommended:
using var fsClient = Client.GetInstance(GetOptions(this.key, this.url), channelOptions);
or Dispose directly
var fsClient = Client.GetInstance(GetOptions(this.key, this.url), channelOptions);
...
fsClient.Dispose();
@ -0,0 +25,4 @@
internal bool IsEventRequested => GrpcInvokedEvent != null;
internal async Task<T> InvokeAsyncWithMetrics<T>(Func<Task<T>> func, string methodName)
Looks like the same result could be the same result can be achieved with the interceptor list for GrpcChannel. If it is really required I'm ok with this. But other option is to allow to pass GrpcChannel to
Client
, so SDK user could add any interceptors to grpc pipeline.Good idea. GRPC channal is available now to add any interceptors
@ -0,0 +25,4 @@
this.id = new Guid(str);
}
public static SplitId CrateFromBinary(byte[] binaryData)
CrateFromBinary -> CreateFromBinary
Fixed.
Don't see any changes
Pushed.
@ -11,1 +16,3 @@
<PackageReference Include="Moq.AutoMock" Version="3.5.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" />
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="8.0.1" />
<PackageReference Include="System.Net.Http.WinHttpHandler" Version="8.0.0" />
Why cross-platform SDK have Windows dependency?
Right. These are some artefacts from my research. Wrong references have been removed.
f68dd1c9a4
to7cd7d6ef96
841107301f
toe9603dff28
4164864e64
tob69d22966f