Skip to content

Getting “Datasource not found on datastore server” after “Finished scanning inbox” for some milliseconds. #8649

@fm3

Description

@fm3

Context: https://scm.slack.com/archives/C143WEU77/p1747902572736559?thread_ts=1747211202.420449&cid=C143WEU77

I originally thought the datastore must have restarted (possibly due to OOM) but it looks like this “initializing” state happens for a short period of time after each “sanning inbox”. We should have a look if we can get this to be safe / atomic.

Current code just does

      _ = removeAll()
      _ = dataSources.foreach(dataSource => insert(dataSource.id, dataSource))

Have a look at ReadWriteLock

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions