Skip to content

fix: nullable Error dereference after ES client 9.3.3 upgrade#2959

Merged
reakaleek merged 1 commit intomainfrom
noble-birthday
Mar 24, 2026
Merged

fix: nullable Error dereference after ES client 9.3.3 upgrade#2959
reakaleek merged 1 commit intomainfrom
noble-birthday

Conversation

@reakaleek
Copy link
Copy Markdown
Member

Summary

Test plan

  • dotnet build src/services/Elastic.Documentation.Search/ passes with 0 errors, 0 warnings
  • Pre-release workflow succeeds after merge

🤖 Generated with Claude Code

…tibility

The Elasticsearch client 9.3.3 upgrade made the Error property on
ElasticsearchServerError nullable. This was fixed in other gateway files
but missed in ChangesGateway and SharedPointInTimeManager, causing CS8602
compilation errors in the pre-release workflow.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@reakaleek reakaleek requested a review from a team as a code owner March 24, 2026 13:08
@reakaleek reakaleek requested a review from cotti March 24, 2026 13:08
@reakaleek reakaleek enabled auto-merge (squash) March 24, 2026 13:10
@reakaleek reakaleek added the fix label Mar 24, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 24, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: b6ddf732-e4ef-4439-aac2-9cc2c96cba38

📥 Commits

Reviewing files that changed from the base of the PR and between bf51ad5 and 38cabb7.

📒 Files selected for processing (2)
  • src/services/Elastic.Documentation.Search/ChangesGateway.cs
  • src/services/Elastic.Documentation.Search/SharedPointInTimeManager.cs

📝 Walkthrough

Walkthrough

This pull request adds null-safe access operators (?.) to Elasticsearch error-field handling in two files. The changes ensure that accessing nested properties within response.ElasticsearchServerError does not throw null reference exceptions when intermediate properties are missing. Error-message construction now includes fallback values (?? "Unknown") for cases where error details are partially absent.

Suggested labels

fix

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: fixing nullable Error dereference issues after the ES client 9.3.3 upgrade.
Description check ✅ Passed The description is directly related to the changeset, explaining the null-conditional operator additions and the ES client upgrade context that motivated them.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch noble-birthday

Comment @coderabbitai help to get the list of available commands and usage tips.

@reakaleek reakaleek merged commit aefba3c into main Mar 24, 2026
28 of 29 checks passed
@reakaleek reakaleek deleted the noble-birthday branch March 24, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants