Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix rntbd diagnostics to include rntbd timeline on the failure #15574

Conversation

moderakh
Copy link
Contributor

@moderakh moderakh commented Sep 23, 2020

previously Request Timeline was missing where there is a rntbd failure. This PR fixes that to populate the timeline on the rntbd failure.

{
	"userAgent": "azsdk-java-cosmos/4.6.0-beta.1 MacOSX/10.15.6 JRE/11.0.6",
	"requestLatencyInMs": 5100,
	"requestStartTimeUTC": "23 Sep 2020 20:28:39.607",
	"requestEndTimeUTC": "23 Sep 2020 20:28:44.707",
	"connectionMode": "DIRECT",
	"responseStatisticsList": [{
		"storeResult": {
			"storePhysicalAddress": null,
			"lsn": -1,
			"globalCommittedLsn": -1,
			"partitionKeyRangeId": null,
			"isValid": true,
			"statusCode": 408,
			"subStatusCode": 0,
			"isGone": false,
			"isNotFound": false,
			"isInvalidPartition": false,
			"requestCharge": 0.0,
			"itemLSN": -1,
			"sessionToken": null,
			"exception": "AsyncRntbdRequestRecord({\"args\":{\"transportRequestId\":23335,\"activityId\":\"5d78954a-fddb-11ea-8b39-4d7696684a21\",\"origin\":\"rntbd://10.37.129.3:10253\",\"replicaPath\":\"/apps/DocDbApp/services/DocDbServer10/partitions/a4cb4956-38c8-11e6-8106-8cdcd42c33be/replicas/1p\",\"timeCreated\":\"2020-09-23T20:28:39.612219Z\",\"lifetime\":\"PT5.095147383S\"},\"requestLength\":414,\"responseLength\":-1,\"status\":{\"done\":false,\"cancelled\":false,\"completedExceptionally\":false},\"timeline\":[{\"eventName\":\"created\",\"durationInMicroSec\":\"69\",\"startTime\":\"2020-09-23T20:28:39.612219Z\"},{\"eventName\":\"queued\",\"durationInMicroSec\":\"196\",\"startTime\":\"2020-09-23T20:28:39.612288Z\"},{\"eventName\":\"pipelined\",\"durationInMicroSec\":\"121\",\"startTime\":\"2020-09-23T20:28:39.612484Z\"},{\"eventName\":\"transitTime\",\"durationInMicroSec\":\"5094901\",\"startTime\":\"2020-09-23T20:28:39.612605Z\"},{\"eventName\":\"received\",\"durationInMicroSec\":\"0\",\"startTime\":null},{\"eventName\":\"completed\",\"durationInMicroSec\":\"0\",\"startTime\":null}]})",
			"transportRequestTimeline": [{
				"eventName": "created",
				"durationInMicroSec": "69",
				"startTime": "2020-09-23T20:28:39.612219Z"
			}, {
				"eventName": "queued",
				"durationInMicroSec": "196",
				"startTime": "2020-09-23T20:28:39.612288Z"
			}, {
				"eventName": "pipelined",
				"durationInMicroSec": "121",
				"startTime": "2020-09-23T20:28:39.612484Z"
			}, {
				"eventName": "transitTime",
				"durationInMicroSec": "5095051",
				"startTime": "2020-09-23T20:28:39.612605Z"
			}, {
				"eventName": "received",
				"durationInMicroSec": "0",
				"startTime": null
			}, {
				"eventName": "completed",
				"durationInMicroSec": "181",
				"startTime": "2020-09-23T20:28:44.707656Z"
			}]
		},
		"requestResponseTimeUTC": "23 Sep 2020 20:28:44.707",
		"requestResourceType": "Document",
		"requestOperationType": "Read"
	}],
	"supplementalResponseStatisticsList": [],
	"addressResolutionStatistics": {},
	"regionsContacted": ["https://10.37.129.3:8081/"],
	"retryContext": {
		"retryCount": 0,
		"statusAndSubStatusCodes": null,
		"retryLatency": 0
	},
	"metadataDiagnosticsContext": {
		"metadataDiagnosticList": null
	},
	"serializationDiagnosticsContext": {
		"serializationDiagnosticsList": null
	},
	"gatewayStatistics": null,
	"systemInformation": {
		"usedMemory": "330433 KB",
		"availableMemory": "16446783 KB",
		"systemCpuLoad": "(2020-09-23T20:25:56.641107Z 24.1%), (2020-09-23T20:26:01.641921Z 17.6%), (2020-09-23T20:26:06.642183Z 8.5%), (2020-09-23T20:28:39.607013Z 7.0%), (2020-09-23T20:28:41.644180Z 6.1%), (2020-09-23T20:28:47.186529Z 10.5%)"
	}
}

whereas previously the rntbd transportRequestTimeline was null in the request diagnostics for the failed operations.

@ghost ghost added the Cosmos label Sep 23, 2020
@moderakh moderakh changed the title Bugfix rntbd diagnostics to include rntbd timeline on the failure Bugfix rntbd diagnostics to include rntbd timeline on the failure (previously the timeline was missing for failed requests) Sep 23, 2020
@moderakh moderakh changed the title Bugfix rntbd diagnostics to include rntbd timeline on the failure (previously the timeline was missing for failed requests) Bugfix rntbd diagnostics to include rntbd timeline on the failure Sep 23, 2020
@moderakh
Copy link
Contributor Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

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

LGTM with the additional simple test coverage Naveen proposed

Copy link
Member

@kushagraThapar kushagraThapar left a comment

Choose a reason for hiding this comment

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

LGTM

@moderakh moderakh merged commit c2d7dfc into Azure:master Sep 24, 2020
@moderakh moderakh deleted the users/moderakh/fix-rntbd-diagnostics-rntbd-timeline-missing-on-failure branch November 19, 2020 00:03
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-java that referenced this pull request Aug 26, 2021
Mitryakh/network march (Azure#15709)

* Adds base for updating Microsoft.Network from version stable/2021-02-01 to version 2021-03-01

* Updates readme

* Updates API version in new specs and examples

* Add new parameter to enable/disable BGP route translation for NAT VirtualWan VpnGateway (Azure#14462)

* Adding Bastion Host Configuration Features (Azure#14442)

Co-authored-by: Abhishek Shah <[email protected]>

* Add PL ASG (Azure#14620)

* Add PL ASG

* Prettier

* [Private Link] Private Endpoint Ipconfigurations swagger for 2021-03-01 (Azure#14662)

* Ipconfigurations swagger

* Ran prettier check

* fixing conflicting files

* fixing lint

* Fixing linter diff

* Lint diff

* resolving comments

* fixing conflict

* Fioxing

* running prettier

* Fixing linter comment

Co-authored-by: Shane Baden <[email protected]>

* Add missing properties of ServiceEndpointPolicy (Azure#14948)

* Add missing 'type' and 'serviceAlias' for ServiceEndpointPolicy related API response

* Add missing 'contextualServiceEndpointPolicies'

* fix bug

* fix type

* Add missing properties to ServiceEndpointPolicy

* Revert "fix type"

This reverts commit 3a49beb66d9bbb288fa0d3baaeaf5aaf2bbc6ee9.

* Revert "fix bug"

This reverts commit a4fff4ae925b01ed0cfb07b1594fb95e2c6649c7.

* Revert "Add missing 'contextualServiceEndpointPolicies'"

This reverts commit ccf19167abc61b90bce6b5204dc3b2a64fdf4ca4.

* Revert "Add missing 'type' and 'serviceAlias' for ServiceEndpointPolicy related API response"

This reverts commit e532cc1118241a74902e4362c32c25c11a764933.

Co-authored-by: Xu Wang <[email protected]>

* add new service tag details api (Azure#14958)

* add new service tag details api

* prettier check fixes

* fixing lint issue, additional properties issue

* Add Load distribution policy and global configuration to AppGW (Azure#14790)

* add Load distribution policy and global configuration to Application Gateway resource

* prettify

* remove provisioning state

* add public ssh key to network virtual appliance (Azure#14988)

* Changes needed for BgpEndpoint (Azure#14800)

* changes needed for BgpEndpoint

* prettier check

* model validation fix

* fix description

* update again

* Multi QoS support for DSCP configuration (Azure#15120)

* Updating the DSCP jsons to reflect the  multi-qos support

* Adding support to multi-qos

* adding the type object to NrpQos

* fixing the prettier
removing my update to the settings

* fixing the missing type object error. seeing if this also fixes the additional attributes exception

* fixing the prettier exception

* almost forgot this, it was refactor from NrpQos to QosDefinition. NRPQos is already being used in Networking repo

* copying what I did with my other objects

* names didn't match with what I have in NRP's src

* forgot to update the examples with the updates in the specification. updating it

* fixing the merge exceptions

* Add SQL Setting to Firewall Policy (Azure#15110)

* Add SQL Setting to Firewall Policy

* fix lint check except for object type

* resolve linter error

* network: fix newly added targets field to an array and missing sub-resource properties in applicationGateways.json (Azure#15318)

* fix: change target to an array and add subresource properties

* fix target examples

* Support to update tags for BastionHost resource (Azure#15446)

* Initial commit

* Validation fixes

* Update bastionHost.json

Co-authored-by: Abhishek Shah <[email protected]>

* Azure FW - Explicit Proxy feature swagger change (Azure#15017)

* explicit proxy swagger change

* prettier check fix

* lint check

* prettier fix

* revert unnecessary file change

* Add kind to virtual hub (Azure#15562)

* Adding customnetworkinterfacename attribute to Private Endpoint (Azure#15574)

Co-authored-by: Shane Baden <[email protected]>

* Added 3 new properties to InboundNatRule resource (Azure#15611)

* Added the missins properties to fix the change breaking update (Azure#15732)

Co-authored-by: Nilambari <[email protected]>
Co-authored-by: Abhishek Shah <[email protected]>
Co-authored-by: Abhishek Shah <[email protected]>
Co-authored-by: Yang Shi <[email protected]>
Co-authored-by: Shane Baden <[email protected]>
Co-authored-by: Shane Baden <[email protected]>
Co-authored-by: Xu Wang <[email protected]>
Co-authored-by: Xu Wang <[email protected]>
Co-authored-by: guptas14 <[email protected]>
Co-authored-by: Akshay Gupta <[email protected]>
Co-authored-by: litchiyangMSFT <[email protected]>
Co-authored-by: Ritvika Reddy Nagula <[email protected]>
Co-authored-by: David Velasco <[email protected]>
Co-authored-by: Jiejiong Wu <[email protected]>
Co-authored-by: tinawu6 <[email protected]>
Co-authored-by: irrogozh <[email protected]>
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.

4 participants