Skip to content

Downgrade 'Failed to parse type hash' log from WARN to DEBUG - #591

Merged
fujitatomoya merged 1 commit into
ros2:rollingfrom
Functionhx:fix/downgrade-type-hash-log
Jul 16, 2026
Merged

fujitatomoya merged 1 commit into
ros2:rollingfrom
Functionhx:fix/downgrade-type-hash-log

Conversation

@Functionhx

@Functionhx Functionhx commented Jul 12, 2026 •

Copy link
Copy Markdown
Contributor

Downgrade "Failed to parse type hash for topic" from WARN to DEBUG.

The type hash parsing failure is a non-fatal compatibility case:
after logging and resetting the error, the endpoint is still added
to the graph cache. The implementation already treats this as non-fatal:
it resets the error, uses a zero-initialized type hash, and continues
graph discovery. Legacy ROS 2 and non-ROS DDS endpoints may legitimately
not provide ROS type-hash data. On heterogeneous ROS 2 systems with
endpoints that predate type hash support, this WARN fires per-endpoint
and floods the console with noise the user cannot act on.

This also aligns rmw_cyclonedds with ros2/rmw_connextdds#149,
which downgraded the equivalent diagnostic from WARN to DEBUG.

Fixes #567.

The warning 'Failed to parse type hash for topic' is expected when a
topic uses a type that predates type hash support or comes from a
non-ROS 2 source.  Emitting it at WARN level floods the console and
confuses users who are not using type hashes.  Downgrading to DEBUG
keeps the information available for diagnostics without alarming users.

Fixes ros2#567

Signed-off-by: Functionhx <2994114386@qq.com>
@mergify

mergify Bot commented Jul 12, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@fujitatomoya

Copy link
Copy Markdown
Contributor

Pulls: #591
Gist: https://gist.githubusercontent.com/fujitatomoya/acc8f28ae2ee7db4411cce9b3d83afbb/raw/c019cd97920994fbafd0801cd59424c98ba1e9be/ros2.repos
BUILD args: --packages-above-and-dependencies rmw_cyclonedds_cpp
TEST args: --packages-above rmw_cyclonedds_cpp
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/19853

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@fujitatomoya
fujitatomoya merged commit e0886a3 into ros2:rolling Jul 16, 2026
2 checks passed
@fujitatomoya

Copy link
Copy Markdown
Contributor

@Mergifyio backport lyrical kilted jazzy

@mergify

mergify Bot commented Jul 24, 2026 •

Copy link
Copy Markdown

backport lyrical kilted jazzy

✅ Backports have been created

Details

ahcorde pushed a commit that referenced this pull request Jul 27, 2026
…595)

The warning 'Failed to parse type hash for topic' is expected when a
topic uses a type that predates type hash support or comes from a
non-ROS 2 source.  Emitting it at WARN level floods the console and
confuses users who are not using type hashes.  Downgrading to DEBUG
keeps the information available for diagnostics without alarming users.

Fixes #567


(cherry picked from commit e0886a3)

Signed-off-by: Functionhx <2994114386@qq.com>
Co-authored-by: FAN YUCHEN <2994114386@qq.com>
ahcorde pushed a commit that referenced this pull request Jul 27, 2026
…596)

The warning 'Failed to parse type hash for topic' is expected when a
topic uses a type that predates type hash support or comes from a
non-ROS 2 source.  Emitting it at WARN level floods the console and
confuses users who are not using type hashes.  Downgrading to DEBUG
keeps the information available for diagnostics without alarming users.

Fixes #567


(cherry picked from commit e0886a3)

Signed-off-by: Functionhx <2994114386@qq.com>
Co-authored-by: FAN YUCHEN <2994114386@qq.com>
ahcorde pushed a commit that referenced this pull request Jul 27, 2026
…597)

The warning 'Failed to parse type hash for topic' is expected when a
topic uses a type that predates type hash support or comes from a
non-ROS 2 source.  Emitting it at WARN level floods the console and
confuses users who are not using type hashes.  Downgrading to DEBUG
keeps the information available for diagnostics without alarming users.

Fixes #567


(cherry picked from commit e0886a3)

Signed-off-by: Functionhx <2994114386@qq.com>
Co-authored-by: FAN YUCHEN <2994114386@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Visual noise from "Failed to parse type hash" warnings

2 participants