Sync fails sometimes with "Key not unique"

Open
#1,293 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Active
Domain
backend

Research direction

Start by investigating the sync baselining path and how ZHSLIB is loaded, since the report says it may be loaded twice and gives #1290 as context. Reproduction is still unavailable, so first establish a failing case and trace the duplicate load. The issue is done when baselining succeeds, or any non-fatal warning no longer emits text containing ERROR # that CI treats as an error.

Written by the indexing model from the issue text.

Description

bug

Describe the bug

As a follow up to #1290, this issue tracks the underlying cause of the sync failure. The reported error is "Key not unique" on the file hash of what looks like module.xml. It looks like ZHSLIB gets loaded twice. The first time sync baselining works, but the second time it fails.

Relatedly, IPM outputs the error status using a plain write and doesn't throw, but the CI parsing interprets the ERROR # as an actual error, so we should strip that bit of string from the non-fatal warning.

To Reproduce

Unable to so far.

Expected behavior

Sync baselining doesn't fail. And if it does, it should be non-fatal to CI and not output text containing ERROR #

System information (please complete the following information):

  • IPM version: 0.10.10

Additional context

Internal reference DEVOPS-1919

Dominant language
ObjectScript
Stars
41
Forks
33
Avg merge
23h 20m
Merged PRs (30d)
29

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from intersystems/ipm

All issues in intersystems/ipm

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.