Skip to content

Use the Unicode translation modifier to log server IDs and cluster names#599

Merged
the-mikedavis merged 1 commit intomainfrom
md/ra_server-log-unicode-translation-modifier
Mar 23, 2026
Merged

Use the Unicode translation modifier to log server IDs and cluster names#599
the-mikedavis merged 1 commit intomainfrom
md/ra_server-log-unicode-translation-modifier

Conversation

@the-mikedavis
Copy link
Copy Markdown
Collaborator

This is a mainly cosmetic change to improve some logs.

ra:server_id()s are currently formatted with ~w which escapes atom characters above the ASCII range. We can add the Unicode translation modifier t to print the Unicode characters. For example, before:

2026-03-21 12:19:33.235018-04:00 [info] <0.1008.0> queue 'qq-🐇' in vhost '/': granting vote for {'%2F_qq-\x{1F407}','rabbit-1@mango2'} with last {index, term} {0,0} for term 1 previous term was 0

After:

2026-03-21 12:27:43.829863-04:00 [info] <0.1008.0> queue 'qq-🐇' in vhost '/': granting vote for {'%2F_qq-🐇','rabbit-1@mango2'} with last {index, term} {0,0} for term 1 previous term was 0

`ra:server_id()`s are currently formatted with `~w` which escapes atom
characters above the ASCII range. We can add the Unicode translation
modifier `t` to print the Unicode characters. For example, before:

    2026-03-21 12:19:33.235018-04:00 [info] <0.1008.0> queue 'qq-🐇' in vhost '/': granting vote for {'%2F_qq-\x{1F407}','rabbit-1@mango2'} with last {index, term} {0,0} for term 1 previous term was 0

After:

    2026-03-21 12:27:43.829863-04:00 [info] <0.1008.0> queue 'qq-🐇' in vhost '/': granting vote for {'%2F_qq-🐇','rabbit-1@mango2'} with last {index, term} {0,0} for term 1 previous term was 0
@the-mikedavis the-mikedavis requested a review from kjnilsson March 23, 2026 15:22
@the-mikedavis the-mikedavis self-assigned this Mar 23, 2026
@the-mikedavis the-mikedavis merged commit dfbeb60 into main Mar 23, 2026
7 checks passed
@the-mikedavis the-mikedavis deleted the md/ra_server-log-unicode-translation-modifier branch March 23, 2026 15:51
jimsynz pushed a commit to jimsynz/neonfs that referenced this pull request Mar 29, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [ra](https://hex.pm/packages/ra) ([source](https://github.com/rabbitmq/ra)) | prod | patch | `3.1.0` → `3.1.2` |

---

### Release Notes

<details>
<summary>rabbitmq/ra (ra)</summary>

### [`v3.1.2`](https://github.com/rabbitmq/ra/releases/tag/v3.1.2)

[Compare Source](rabbitmq/ra@v3.1.1...v3.1.2)

#### What's Changed

- `gen_batch_server` was bumped to `0.9.2` to significantly reduce the risk of an [OOM scenario](rabbitmq/gen-batch-server#27) that affects Ra-based systems

**Full Changelog**: <rabbitmq/ra@v3.1.1...v3.1.2>

### [`v3.1.1`](https://github.com/rabbitmq/ra/releases/tag/v3.1.1)

[Compare Source](rabbitmq/ra@v3.1.0...v3.1.1)

#### What's Changed

- Use the Unicode translation modifier to log server IDs and cluster names by [@&#8203;the-mikedavis](https://github.com/the-mikedavis) in [#&#8203;599](rabbitmq/ra#599)
- Export `ra:membership()` type by [@&#8203;the-mikedavis](https://github.com/the-mikedavis) in [#&#8203;603](rabbitmq/ra#603)
- Do not clear pending if points to the checkpoint by [@&#8203;deadtrickster](https://github.com/deadtrickster) in [#&#8203;602](rabbitmq/ra#602)
- Fix doubly-wrapped log entries after sparse write and recovery by [@&#8203;ansd](https://github.com/ansd) in [#&#8203;601](rabbitmq/ra#601)

**Full Changelog**: <rabbitmq/ra@v3.1.0...v3.1.1>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) in timezone Pacific/Auckland, Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) in timezone Pacific/Auckland.

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My45MC4xIiwidXBkYXRlZEluVmVyIjoiNDMuOTAuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUiXX0=-->

Reviewed-on: https://harton.dev/project-neon/neonfs/pulls/84
Co-authored-by: Renovate Bot <bot@harton.nz>
Co-committed-by: Renovate Bot <bot@harton.nz>
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.

2 participants