Skip to content

Conversation

@acoburn
Copy link
Member

@acoburn acoburn commented Aug 20, 2019

In highly concurrent contexts, the INSERT INTO command with the same
values can be executed concurrently, leading to duplicate key
exceptions and hence failed requests. This change makes two adjustments:

  1. It is a common pattern to add an empty namespace prefix, referring to
    the current document, but that is problematic across resources, so
    those declarations are ignored
  2. A StatementException is caught and logged but does not cause the
    entire request to fail

In highly concurrent contexts, the INSERT INTO command with the same
values can be executed concurrently, leading to duplicate key
exceptions. This change makes two adjustments:

1. It is a common pattern to add an empty namespace prefix, referring to
   the current document, but that is problematic across resources, so
   those declarations are ignored
2. A StatementException is caught and logged but does not cause the
   entire request to fail
Copy link
Member

@jholleran jholleran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I'll test out these changes when its merged and does it get rid of the 500 errors.

@acoburn acoburn merged commit 138a88e into master Aug 20, 2019
@acoburn acoburn deleted the EmptyAndDuplicateNamespacePrefixes branch August 20, 2019 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants