Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 1.x] Allow passing "auto" as the slices parameter #561

Merged
merged 1 commit into from
Feb 28, 2024

Allow passing `"auto"` as the `slices` parameter (#553)

1867e9b
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

[Backport 1.x] Allow passing "auto" as the slices parameter #561

Allow passing `"auto"` as the `slices` parameter (#553)
1867e9b
Select commit
Loading
Failed to load commit list.
GitHub Actions / Unit Test Results failed Feb 28, 2024 in 0s

3294 tests run, 3291 passed, 1 skipped, 2 failed.

Annotations

Check failure on line 1 in tests/Tests.Reproduce/GitHubIssue5432.cs

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

GitHubIssue5432.DeserializesAnalyzers

OpenSearch.Net.UnexpectedOpenSearchClientException : Object reference not set to an instance of an object.
---- System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
at OpenSearch.Net.Transport`1.Request[TResponse](HttpMethod method, String path, PostData data, IRequestParameters requestParameters) in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Net/Transport/Transport.cs:line 119
   at OpenSearch.Net.OpenSearchLowLevelClient.DoRequest[TResponse](HttpMethod method, String path, PostData data, IRequestParameters requestParameters) in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Net/OpenSearchLowLevelClient.cs:line 96
   at OpenSearch.Client.OpenSearchClient.DoRequest[TRequest,TResponse](TRequest request, IRequestParameters parameters, Func`2 bodySelector, Action`1 forceConfiguration) in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Client/OpenSearchClient.cs:line 193
   at Tests.Reproduce.GitHubIssue5432.DeserializesAnalyzers() in /home/runner/work/opensearch-net/opensearch-net/tests/Tests.Reproduce/GitHubIssue5432.cs:line 94
----- Inner Stack Trace -----
   at Tests.Reproduce.GitHubIssue5363.<>c.<DiagnosticListener_AuditTrailIsValid>b__1_0(IApiCallDetails data) in /home/runner/work/opensearch-net/opensearch-net/tests/Tests.Reproduce/GitHubIssue5363.cs:line 81
   at Tests.Reproduce.GitHubIssue5363.TestDiagnosticListener.<OnNext>b__9_1(KeyValuePair`2 v) in /home/runner/work/opensearch-net/opensearch-net/tests/Tests.Reproduce/GitHubIssue5363.cs:line 56
   at OpenSearch.Net.Diagnostics.TypedDiagnosticObserverBase`2.System.IObserver<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.OnNext(KeyValuePair`2 value) in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Net/Diagnostics/TypedDiagnosticObserverBase.cs:line 93
   at System.Diagnostics.DiagnosticListener.Write(String name, Object value)
   at System.Diagnostics.DiagnosticSource.StopActivity(Activity activity, Object args)
   at OpenSearch.Net.Diagnostics.Diagnostic`2.Dispose() in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Net/Diagnostics/Diagnostic.cs:line 76
   at OpenSearch.Net.RequestPipeline.Ping(Node node) in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Net/Transport/Pipeline/RequestPipeline.cs:line 420
   at OpenSearch.Net.Transport`1.Ping(IRequestPipeline pipeline, Node node) in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Net/Transport/Transport.cs:line 260
   at OpenSearch.Net.Transport`1.Request[TResponse](HttpMethod method, String path, PostData data, IRequestParameters requestParameters) in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Net/Transport/Transport.cs:line 100

Check failure on line 1 in tests/Tests.Reproduce/GitHubIssue4537.cs

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

GitHubIssue4537.CanDeserializeSnapshotShardFailure

Did not expect any exception, but found OpenSearch.Net.UnexpectedOpenSearchClientException: Object reference not set to an instance of an object.
 ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Tests.Reproduce.GitHubIssue5363.<>c.<DiagnosticListener_AuditTrailIsValid>b__1_0(IApiCallDetails data) in /home/runner/work/opensearch-net/opensearch-net/tests/Tests.Reproduce/GitHubIssue5363.cs:line 81
   at Tests.Reproduce.GitHubIssue5363.TestDiagnosticListener.<OnNext>b__9_1(KeyValuePair`2 v) in /home/runner/work/opensearch-net/opensearch-net/tests/Tests.Reproduce/GitHubIssue5363.cs:line 56
   at OpenSearch.Net.Diagnostics.TypedDiagnosticObserverBase`2.System.IObserver<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.OnNext(KeyValuePair`2 value) in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Net/Diagnostics/TypedDiagnosticObserverBase.cs:line 93
   at System.Diagnostics.DiagnosticListener.Write(String name, Object value)
   at System.Diagnostics.DiagnosticSource.StopActivity(Activity activity, Object args)
   at OpenSearch.Net.Diagnostics.Diagnostic`2.Dispose() in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Net/Diagnostics/Diagnostic.cs:line 76
   at OpenSearch.Net.RequestPipeline.Ping(Node node) in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Net/Transport/Pipeline/RequestPipeline.cs:line 420
   at OpenSearch.Net.Transport`1.Ping(IRequestPipeline pipeline, Node node) in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Net/Transport/Transport.cs:line 260
   at OpenSearch.Net.Transport`1.Request[TResponse](HttpMethod method, String path, PostData data, IRequestParameters requestParameters) in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Net/Transport/Transport.cs:line 100
   --- End of inner exception stack trace ---
   at OpenSearch.Net.Transport`1.Request[TResponse](HttpMethod method, String path, PostData data, IRequestParameters requestParameters) in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Net/Transport/Transport.cs:line 119
   at OpenSearch.Net.OpenSearchLowLevelClient.DoRequest[TResponse](HttpMethod method, String path, PostData data, IRequestParameters requestParameters) in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Net/OpenSearchLowLevelClient.cs:line 96
   at OpenSearch.Client.OpenSearchClient.DoRequest[TRequest,TResponse](TRequest request, IRequestParameters parameters, Func`2 bodySelector, Action`1 forceConfiguration) in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Client/OpenSearchClient.cs:line 193
   at OpenSearch.Client.OpenSearchClient.DoRequest[TRequest,TResponse](TRequest request, IRequestParameters parameters, Action`1 forceConfiguration) in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Client/OpenSearchClient.cs:line 171
   at OpenSearch.Client.NamespacedClientProxy.DoRequest[TRequest,TResponse](TRequest request, IRequestParameters parameters, Action`1 forceConfiguration) in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Client/OpenSearchClient.cs:line 50
   at OpenSearch.Client.Specification.SnapshotApi.SnapshotNamespace.Get(IGetSnapshotRequest request) in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Client/OpenSearchClient.Snapshot.cs:line 212
   at OpenSearch.Client.Specification.SnapshotApi.SnapshotNamespace.Get(Name repository, Names snapshot, Func`2 selector) in /home/runner/work/opensearch-net/opensearch-net/src/OpenSearch.Client/OpenSearchClient.Snapshot.cs:line 200
   at Tests.Reproduce.GitHubIssue4537.<>c__DisplayClass0_0.<CanDeserializeSnapshotShardFailure>b__0() in /home/runner/work/opensearch-net/opensearch-net/tests/Tests.Reproduce/GitHubIssue4537.cs:line 94
   at FluentAssertions.Specialized.FunctionAssertionHelpers.NotThrow[T](Func`1 subject, String because, Object[] becauseArgs).
Raw output
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
   at FluentAssertions.Specialized.FunctionAssertionHelpers.NotThrow[T](Func`1 subject, String because, Object[] becauseArgs)
   at FluentAssertions.Specialized.FunctionAssertions`1.NotThrow(String because, Object[] becauseArgs)
   at Tests.Reproduce.GitHubIssue4537.CanDeserializeSnapshotShardFailure() in /home/runner/work/opensearch-net/opensearch-net/tests/Tests.Reproduce/GitHubIssue4537.cs:line 96