Skip to content

cannot re-use instance name if it already exists on a different branch #345

@stuarteberg

Description

@stuarteberg

For testing and development, it's often useful to create two test nodes in two different branches. But suppose I want to create a new instance named my-test-labelmap in each of the test nodes. I can create it in test node A, but when I go to create it in test node B, it doesn't work:

400 Client Error: Bad Request for url: http://emdata3:8900/api/repo/021d2ba85e554a348b9f2b79af57efef/instance?u=bergs&app=neuclease
Data named "my-test-labelmap" already exists in repo (root 28841c8277e044a7b187dda03e18da13) (/api/repo/021d2ba85e554a348b9f2b79af57efef/instance).

That's because the labelmap already exists, albeit in a different branch. On the DVID console, my instance doesn't appear in the instance list for node B, but I CAN fetch its /info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions