Skip to content

Explicit KVCACHED_IPC_NAME should not be auto-suffixed #378

Description

@shipiyouniao

Problem

When KVCACHED_IPC_NAME is set explicitly, _obtain_default_ipc_name() still checks whether the shared-memory segment already exists and may append engine/group/pid suffixes.

That makes an explicit IPC name non-deterministic. In multi-process serving, late-importing TP workers are expected to join the same IPC namespace that the first process created. If the explicit name is auto-suffixed after the segment exists, those workers can end up using a different namespace.

Expected behavior

If KVCACHED_IPC_NAME is set, kvcached should treat it as an exact user-provided namespace after sanitization. Auto-uniqueness should only apply to the default generated name path.

Proposed fix

Return the sanitized explicit name directly, and keep the existing uniqueness logic for the implicit/default name path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions