Skip to content

canal instance 名不能带空格 #4276

@tianpeidong

Description

@tianpeidong
  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have checked the FAQ of this repository and believe that this is not a duplicate.

environment

  • canal 1.1.5
  • mysql 5.7

Issue Description

当canal instance 名称带有空格时,会导致canal server 无法获取instance.properties

Steps to reproduce

  1. 创建instance "test inst"
  2. 启动instance
  3. 查看canal server 日志

image

Expected behaviour

获取instance.properties 时对instance 名做encode

Actual behaviour

未对destination 做encode,导致报错
image

If there is an exception, please attach the exception trace:

Just put your stack trace here!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions