ADO_Server_Diagnostics_2025 cannot be run as published: missing Common.psm1 and two analyzers incompatible with Elasticsearch 8
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
Start with ADO_Server_Diagnostics_2025/Common.psm1 and Troubleshooting/Utils/Common.psm1, then inspect Analyzers/Test-ElasticsearchHealth.psm1 and Test-IndicesHaveUnsupportedMappings.psm1 against Elasticsearch 8.14.1. Read Troubleshooting/readme.txt and locate every Invoke-Sqlcmd call before running Repair-Search.ps1. Done means a published 25H2 run completes all analyzers, documents the actual parameters, and handles the stated SQL TLS condition.
索引モデルが issue の本文から書いたものです。
説明
-
ADO_Server_Diagnostics_2025/Common.psm1is missing from the repository. The scripts in the root of that folder import it and fail. We had to copy the file fromAzure_DevOps_Server_2022. -
ADO_Server_Diagnostics_2025/Troubleshooting/Utils/Common.psm1is also missing. TheUtilsfolder in that path contains onlyAlgorithms.ps1, while the 2022 equivalent contains both files.Repair-Search.ps1cannot start without it. -
Analyzers/Test-ElasticsearchHealth.psm1crashes on Elasticsearch 8. Line 109 throwsIndexOutOfRangeException. The aggregation built earlier in the function groups by the_typefield, which was removed in Elasticsearch 8, somappings.bucketscomes back empty and$mappings[0]is out of bounds. Azure DevOps Server 25H2 installs Elasticsearch 8.14.1, so this analyzer can never complete on a supported 25H2 deployment. -
Analyzers/Test-IndicesHaveUnsupportedMappings.psm1throws on Elasticsearch 8. Line 78 raisesGET _mapping/<type> failed with status code [400] unexpectedly. The_mapping/{type}endpoint was removed in Elasticsearch 8 and now returns HTTP 400 (no handler found for uri) instead of the HTTP 404 the script expects. Suggested fix: treat 400 the same as 404, or skip this analyzer entirely on Elasticsearch 8, since the function's own comment notes there is only one mapping per index in current releases.Because analyzers 3 and 4 run in the middle of the sequence, their exceptions abort
Repair-Search.ps1before the remaining analyzers execute. We had to patch both files locally to get a complete run. -
Troubleshooting/readme.txtdocuments parameter names that do not exist. The actual parameters ofRepair-Search.ps1are-SQLServerInstance,-ConfigurationDatabaseName,-CollectionDatabaseName,-CollectionName,-ElasticsearchServiceUrl,-ElasticsearchServiceCredentialand-EntityType. -
Invoke-Sqlcmdcalls fail against SQL Server instances without a trusted TLS certificate. Version 22.x of theSqlServerPowerShell module encrypts connections by default, so every call fails withThe certificate chain was issued by an authority that is not trusted. Setting$PSDefaultParameterValuesin the caller's session does not help, because the calls are made from inside the module scope. We had to add-TrustServerCertificateto everyInvoke-Sqlcmdcall in the scripts.
- 主要言語
- PowerShell
- スター
- 57
- フォーク
- 68
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/Code-Search のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
microsoft/Code-Search#122 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
microsoft/Code-Search#98 · コメント 2 件 · リアクション 2 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 15/100
microsoft/Code-Search#97 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
microsoft/Code-Search#96 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 30/100
microsoft/Code-Search#95 · コメント 1 件 ·
microsoft/Code-Search の issue をすべて見る
似ている issue
-
channels:add check:passed
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
メンテナーはふだん 2 日以内に返信
-
Cainophile EXIT handler crashes on its own password redaction and logs the DB password in clear textオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
sdk-typescript vector-store
難易度 2/5 半日 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 2 日以内に返信
-
request-theme
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
LizardByte/ThemerrDB#8723 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信