[#10] Netmap snapshot, options, metrics #11

Merged
PavelGrossSpb merged 1 commit from PavelGrossSpb/frostfs-sdk-csharp:Netmap_Options_Metrics into master 2024-06-26 09:30:39 +00:00
Member

Signed-off-by: Pavel Gross p.gross@yadro.com

Signed-off-by: Pavel Gross <p.gross@yadro.com>
PavelGrossSpb requested review from dstepanov-yadro 2024-06-24 11:14:39 +00:00
PavelGrossSpb requested review from orikik 2024-06-24 11:14:39 +00:00
dstepanov-yadro requested changes 2024-06-24 13:00:42 +00:00
@ -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?

If `Client` is disposable, then how it can be disposed having private constructor?
Author
Member

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();

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();``
dstepanov-yadro marked this conversation as resolved
@ -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.

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.
Author
Member

Good idea. GRPC channal is available now to add any interceptors

Good idea. GRPC channal is available now to add any interceptors
dstepanov-yadro marked this conversation as resolved
@ -0,0 +25,4 @@
this.id = new Guid(str);
}
public static SplitId CrateFromBinary(byte[] binaryData)

CrateFromBinary -> CreateFromBinary

CrateFromBinary -> Cr**e**ateFromBinary
Author
Member

Fixed.

Fixed.

Don't see any changes

Don't see any changes
Author
Member

Pushed.

Pushed.
dstepanov-yadro marked this conversation as resolved
PavelGrossSpb added 4 commits 2024-06-25 09:13:02 +00:00
PavelGrossSpb requested review from dstepanov-yadro 2024-06-25 09:17:17 +00:00
dstepanov-yadro reviewed 2024-06-25 11:45:19 +00:00
@ -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?

Why cross-platform SDK have Windows dependency?
Author
Member

Right. These are some artefacts from my research. Wrong references have been removed.

Right. These are some artefacts from my research. Wrong references have been removed.
dstepanov-yadro marked this conversation as resolved
PavelGrossSpb force-pushed Netmap_Options_Metrics from f68dd1c9a4 to 7cd7d6ef96 2024-06-25 12:45:36 +00:00 Compare
orikik approved these changes 2024-06-26 08:00:28 +00:00
dstepanov-yadro approved these changes 2024-06-26 08:27:18 +00:00
PavelGrossSpb force-pushed Netmap_Options_Metrics from 841107301f to e9603dff28 2024-06-26 09:08:42 +00:00 Compare
PavelGrossSpb force-pushed Netmap_Options_Metrics from 4164864e64 to b69d22966f 2024-06-26 09:28:50 +00:00 Compare
PavelGrossSpb added 1 commit 2024-06-26 09:30:02 +00:00
[#11] Add Network Snapshot
All checks were successful
DCO / DCO (pull_request) Successful in 41s
c988ff3c76
Signed-off-by: Pavel Gross <p.gross@yadro.com>
PavelGrossSpb merged commit c988ff3c76 into master 2024-06-26 09:30:39 +00:00
PavelGrossSpb deleted branch Netmap_Options_Metrics 2024-06-26 09:30:40 +00:00
PavelGrossSpb referenced this pull request from a commit 2024-06-26 09:30:41 +00:00
Sign in to join this conversation.
No description provided.