You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by "222twotwotwo (via GitHub)" <gi...@apache.org> on 2026/07/04 17:02:42 UTC

[PR] fix:stores nil for unimplemented registry types [incubator-seata-go]

222twotwotwo opened a new pull request, #1132:
URL: https://github.com/apache/incubator-seata-go/pull/1132

   <!--  Thanks for sending a pull request!
   -->
   <!-- Please make sure you have read and understood the contributing guidelines -->
   
   - [ ] I have registered the PR [changes](https://github.com/apache/incubator-seata-go/tree/master/changes).
   
   **What this PR does**:
   
   This PR makes unimplemented registry types fail fast during registry initialization.
   
   Previously, configuring `nacos`, `eureka`, `redis`, `zk`, `consul`, or `sofa` would leave the registry service instance as `nil`. The actual failure would only appear later as a nil-pointer panic when calling `Lookup`, which hides the real configuration problem.
   
   Now these registry types reuse the existing initialization error path and panic with a clear message:
   
   ```text
   init service registry err:registry type <type> is not implemented yet
   ```
   
   **Which issue(s) this PR fixes**:
   
   <!--
   *Automatically closes linked issue when PR is merged.
   Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
   _If PR is about `failing-tests or flakes`, please post the related issues/tests in a comment and do not use `Fixes`_*
   -->
   
   Fixes #1127 
   
   **Special notes for your reviewer**:
   
   This change only updates the registry initialization switch logic. The `InitRegistry` function signature and existing error handling behavior are unchanged.
   
   **Does this PR introduce a user-facing change?**:
   
   <!--
   If no, just write "NONE" in the release-note block below.
   If yes, a release note is required:
   Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
   -->
   
   ```release-note
   Unsupported registry types now fail fast during registry initialization with a clear "not implemented yet" error instead of causing a later nil-pointer panic.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [PR] fix:stores nil for unimplemented registry types [incubator-seata-go]

Posted by "222twotwotwo (via GitHub)" <gi...@apache.org>.
222twotwotwo commented on PR #1132:
URL: https://github.com/apache/incubator-seata-go/pull/1132#issuecomment-4935776203

   > Resolve the CI problems.
   
   此ci问题貌似不是本pr引入,我在其他几个同样ci失败的pr里看到同样的ci错误


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [PR] fix:stores nil for unimplemented registry types [incubator-seata-go]

Posted by "thunguo (via GitHub)" <gi...@apache.org>.
thunguo commented on PR #1132:
URL: https://github.com/apache/incubator-seata-go/pull/1132#issuecomment-4913627827

   Resolve the CI problems.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [PR] fix:stores nil for unimplemented registry types [incubator-seata-go]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #1132:
URL: https://github.com/apache/incubator-seata-go/pull/1132#issuecomment-4935779536

   > Bot detected the issue body's language is not English, translate it automatically.
   
   > Resolve the CI problems.
   
   This ci problem does not seem to be introduced by this pr. I saw the same ci error in several other prs with the same ci failure.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [PR] fix:stores nil for unimplemented registry types [incubator-seata-go]

Posted by "222twotwotwo (via GitHub)" <gi...@apache.org>.
222twotwotwo closed pull request #1132: fix:stores nil for unimplemented registry types
URL: https://github.com/apache/incubator-seata-go/pull/1132


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [PR] fix:stores nil for unimplemented registry types [incubator-seata-go]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #1132:
URL: https://github.com/apache/incubator-seata-go/pull/1132#issuecomment-4906876555

   ## [Codecov](https://app.codecov.io/gh/apache/incubator-seata-go/pull/1132?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :x: Patch coverage is `0%` with `2 lines` in your changes missing coverage. Please review.
   :white_check_mark: Project coverage is 57.11%. Comparing base ([`c34171e`](https://app.codecov.io/gh/apache/incubator-seata-go/commit/c34171eabcf68fd5a34a7f8cd21e58f75f3ce6fc?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`1cde65f`](https://app.codecov.io/gh/apache/incubator-seata-go/commit/1cde65f48169710cf061108de6006cc6a7271f61?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   
   | [Files with missing lines](https://app.codecov.io/gh/apache/incubator-seata-go/pull/1132?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
   |---|---|---|
   | [pkg/discovery/init.go](https://app.codecov.io/gh/apache/incubator-seata-go/pull/1132?src=pr&el=tree&filepath=pkg%2Fdiscovery%2Finit.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cGtnL2Rpc2NvdmVyeS9pbml0Lmdv) | 0.00% | [2 Missing :warning: ](https://app.codecov.io/gh/apache/incubator-seata-go/pull/1132?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@            Coverage Diff             @@
   ##           master    #1132      +/-   ##
   ==========================================
   + Coverage   57.07%   57.11%   +0.04%     
   ==========================================
     Files         299      299              
     Lines       20495    20491       -4     
   ==========================================
   + Hits        11697    11704       +7     
   + Misses       7793     7783      -10     
   + Partials     1005     1004       -1     
   ```
   </details>
   
   [:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/incubator-seata-go/pull/1132?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [PR] fix:stores nil for unimplemented registry types [incubator-seata-go]

Posted by "222twotwotwo (via GitHub)" <gi...@apache.org>.
222twotwotwo commented on PR #1132:
URL: https://github.com/apache/incubator-seata-go/pull/1132#issuecomment-4943272988

   #1127  has been resolved by  #1126


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org