Skip to content

Fixed diagnostics information and other APIs on cosmos stored procedure response#16946

Merged
kushagraThapar merged 3 commits into
Azure:masterfrom
kushagraThapar:azure_cosmos_fix_stored_proc_diagnostics
Oct 29, 2020
Merged

Fixed diagnostics information and other APIs on cosmos stored procedure response#16946
kushagraThapar merged 3 commits into
Azure:masterfrom
kushagraThapar:azure_cosmos_fix_stored_proc_diagnostics

Conversation

@kushagraThapar

Copy link
Copy Markdown
Member

@moderakh moderakh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

other than the following suggestion LGTM.

with this change essentially similar to CosmosItemResponse we are implementing all these APIs here instead of relying on the parent class.

So I would like to suggest that we drop the inheritance on the CosmosResponse for this class.
I know that theoretically speaking it can be considered a breaking change but in practice it is not breaking change as you are implementing all the required methods.

}

@Override
public String getMaxResourceQuota() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

with this change essentially similar to CosmosItemResponse we are implementing all these APIs here instead of relying on the parent class.

So I would like to suggest that we drop the inheritance on the CosmosResponse for this class.
I know that theoretically speaking it can be considered a breaking change but in practice it is not breaking change as you are implementing all the required methods.

CosmosException dce = Utils.as(e, CosmosException.class);
if (dce != null && dce.getStatusCode() == 400) {
assertThat(dce.getMessage()).contains("Invalid path '\\/a\\/b' for last writer wins conflict resolution");
assertThat(dce.getMessage()).contains("Invalid path '\\\\\\/a\\\\\\/b' for last writer wins conflict resolution");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this because of service side message change?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, that is the reason :)

@kushagraThapar

Copy link
Copy Markdown
Member Author

/azp run java cosmos tests

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@kushagraThapar

Copy link
Copy Markdown
Member Author

/azp run java - cosmos - tests

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@mbhaskar mbhaskar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks for fixing the multimaster conflict test 👍

@kushagraThapar

Copy link
Copy Markdown
Member Author

/check-enforcer override

@kushagraThapar
kushagraThapar merged commit 0cd5d1f into Azure:master Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants