Skip to content

Index IDs persist after unsharing folder #10469

Closed

Description

@marbens-arch

What happened?

Steps to reproduce:

  1. Create a fakefs folder with path test?files=20 on device A
  2. Create a fakefs folder with the same ID and with path test?content=true on device B
  3. Share the fakefs folder with device B
  4. Wait for device B to get in sync
  5. On device A, unshare the folder with device B
  6. Reshare the folder with device B

Expected behavior:

Device B shows as up to date on device A, as device B already has all the files it needs.

Actual behavior:

Device B's status is "syncing" endlessly (or until you restart device A with --debug-reset-delta-idxs) on device A.

Image

Syncthing version

v2.0.11

Platform & operating system

Linux amd64

Browser version

No response

Relevant log output

2025-11-22 07:59:08 DBG model@0xc0000fa000 Completion(BPFTEVI-CGXXZQL-FFK2XVO-VJ6JNXX-34RIM77-MXMQNV3-EIMMGM4-YE5QSQZ, "test"): map[completion:0 globalBytes:22767766 globalItems:59 needBytes:22767766 needDeletes:0 needItems:59 remoteState:valid sequence:118] (log.pkg=model log.src.file=model.go log.src.line=947)
2025-11-22 07:59:08 DBG model@0xc0000fa000 Completion(BPFTEVI-CGXXZQL-FFK2XVO-VJ6JNXX-34RIM77-MXMQNV3-EIMMGM4-YE5QSQZ, "test"): map[completion:0 globalBytes:22767766 globalItems:59 needBytes:22767766 needDeletes:0 needItems:59 remoteState:valid sequence:118] (log.pkg=model log.src.file=model.go log.src.line=947)
2025-11-22 07:59:09 DBG model@0xc0000fa000 Completion(BPFTEVI-CGXXZQL-FFK2XVO-VJ6JNXX-34RIM77-MXMQNV3-EIMMGM4-YE5QSQZ, "test"): map[completion:0 globalBytes:22767766 globalItems:59 needBytes:22767766 needDeletes:0 needItems:59 remoteState:valid sequence:118] (log.pkg=model log.src.file=model.go log.src.line=947)

Activity

  1. added theissue type on Nov 22, 2025
  2. added
    bug
    needs-triage
    on Nov 22, 2025
  3. marbens-arch commented on Nov 29, 2025

    @marbens-arch
    MemberAuthor

    Looks like this is caused by DropAllFiles not resetting the index ID.

  4. removed
    needs-triage
    on Nov 29, 2025
  5. changed the title [-]Device "needs" items it already has after resharing folder[/-] [+]Index IDs persist after unsharing folder[/+] on Nov 29, 2025
  6. added 2 commits that reference this issue on Nov 29, 2025
    6467c4e
    c0203ec
  7. added a commit that references this issue on Jun 4, 2026
    e16b801
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions