Skip to content

Unique Index Violation Error #6

@stanshillis

Description

@stanshillis

Trying to use the plugin and i'm getting error/warning on the log related to plugin writing settings.
Error is a SQL index violation error for plugin settings insert statement.

It appears that this line is causing the error:
pluginSettingsFactory.createSettingsForKey(PLUGIN_KEY).put(pluginSettingsId, newSha);

PR i'm trying this on has multiple commits, if that makes a difference. I also created and deleted PR from this branch multiple times. First few attempts plugin was disabled.
BitBucket Server version 5.7.0

Error log entry:

o.h.e.jdbc.spi.SqlExceptionHelper Unique index or primary key violation: "UQ_PLUG_SETTING_NS_KEY_INDEX_4 ON PUBLIC.PLUGIN_SETTING(KEY_NAME, NAMESPACE) VALUES ( /* key:690 */ 'com.parallels.bitbucket.plugins.defaultreviewers', '112.275', null, null)"; SQL statement:
insert into plugin_setting (key_name, namespace, key_value, id) values (?, ?, ?, ?) [23505-176]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions