Skip to content

The application.properties in the distribution module differs from the application.properties in the bootstrap module | distribution 中的 application.properties 与 bootstrap 的 application.properties 不同 #15744

Description

@xuxiaowei-com-cn

Describe the bug

apache/incubator-seata#8162

  1. 本人在 GitHub Actions 中要使用 Nacos,先用的是 Ubuntu 系统,使用 Docker 启动的 Nacos v3.2.3,运行正常

  2. 考虑到 GitHub Actions 只有 Linux(Ubuntu)才能使用 Docker,于是将 Docker 启动的 Nacos v3.2.3 修改为 直接使用 mvn spring-boot:run 运行 ,发现之前的流程完全走不通了

  3. 经过排查,发现 distribution 模块中的 application.properties 与 bootstrap 模块中的 application.properties 不同

    • distribution 模块:用于打包成发布产物使用的模块
    • bootstrap 模块:在 distribution 模块打包成发布产物所需的模块,实际运行 nacos 服务端的 jar
  4. 经过对比,发现核心问题出现在 nacos.core.auth.enabled 的值不同,并且发现了很多地方不同(包含提示性的注释)

  5. In GitHub Actions, I need to use Nacos. Initially, I used an Ubuntu system and started Nacos v3.2.3 with Docker, which ran normally.

  6. Considering that GitHub Actions only supports Docker on Linux (Ubuntu), I changed the setup from starting Nacos v3.2.3 with Docker to running it directly with mvn spring-boot:run. However, I found that the previous workflow completely failed.

  7. After investigation, I discovered that the application.properties in the distribution module differs from that in the bootstrap module:

    • The distribution module is used to package the release artifacts.
    • The bootstrap module is the module required by the distribution module for packaging the release artifacts; it actually runs the Nacos server JAR.
  8. Upon comparison, I found that the core issue lies in the different value of nacos.core.auth.enabled, and I also noticed many other differences (including hinting comments).

Image

Expected behavior
A clear and concise description of what you expected to happen.

Actually behavior
A clear and concise description of what you actually to happen.

How to Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See errors

Desktop (please complete the following information):

  • OS: [e.g. Centos]
  • Version [e.g. nacos-server 1.3.1, nacos-client 1.3.1]
  • Module [e.g. naming/config]
  • SDK [e.g. original, spring-cloud-alibaba-nacos, dubbo]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions