Граф коммитов

174 Коммитов

Автор SHA1 Сообщение Дата
Aayush Kataria cbbd67307f
Version Bump changes (#404)
Co-authored-by: Aayush Kataria <aayushkataria@MININT-JTC9OBA.fareast.corp.microsoft.com>
2022-03-10 11:13:41 -08:00
Naveen Singh 33f09aca84
Mirror of https://github.com/Azure/azure-cosmosdb-java/pull/395 (#397)
according to Naveen tests pass locally, issue in downloading the emulator.

* mirror of https://github.com/Azure/azure-cosmosdb-java/pull/395

* need to rerun the ci again after agent upgrade from ububtu 16 to 20

* need to rerun the ci again after agent upgrade from ububtu 16 to 20

* adding space to trigger ci which is in struct state

Co-authored-by: Mohammad Derakhshani <moderakh@users.noreply.github.com>
2021-12-22 08:56:08 -08:00
Naveen Singh 983dc9ef2f
Version bump to 2.6.15 (#398)
from Naveen:
[4:21 PM] Naveen Kumar Singh
V2 async , tests are running fine locally 

[4:22 PM] Naveen Kumar Singh
verified GatewayServiceConfigurationReaderTest
2021-12-21 16:34:15 -08:00
Naveen Singh f6921f6702
Releasing 2.6.14 (#391) 2021-10-14 18:35:40 -07:00
Naveen Singh 1363da052a
Cosmos: GlobalCommittedLSN parsing (#389)
Porting - https://github.com/Azure/azure-sdk-for-java/pull/21937 

Co-authored-by: annie-mac <annie-mac@DESKTOP-62QAK4R.redmond.corp.microsoft.com>
2021-10-14 10:05:58 -07:00
Kushagra Thapar e636aa5096
Release version update for 2.6.13 (#375)
* Release version update for 2.6.13

* Updated changelog with open ssl fix

* Updated changelog with open ssl fix
2021-01-20 19:15:36 -08:00
Kushagra Thapar 50bf6a75cd
port openssl fix from v4 to v2 (#373) 2021-01-19 16:14:57 -08:00
Kushagra Thapar a6f6d9b124
Updated versions for release to 2.6.12 (#371) 2021-01-18 16:33:52 -08:00
Kushagra Thapar e5c5a6d276
Removed generic IO exception condition in network failure. Replaced with specific exceptions. Included in unit testing (#370)
* Removed generic IO exception condition in network failure. Replaced with specific exceptions. Included in unit testing

* Updated code owners for this repo
2021-01-18 15:50:39 -08:00
Naveen Singh 3b4c19e70f
Version bump 2.6.11 (#361)
Co-authored-by: Kushagra Thapar <kuthapar@microsoft.com>
2020-09-15 18:32:30 +05:30
Naveen Singh f2b9dfdba6
Improving http request time out avoiding region failover for high latency request (#360)
* Fixing http request timeout

* Fixing http request timeout

* formating change

* resolving comments

* resolving comments

* changing licence header
2020-09-15 04:41:24 +02:00
Naveen Singh ca1307963b
Updating version to 2.6.11-SNAPSHOT and updating Readme and change log (#356)
* Updating version to 2.6.11-SNAPSHOT

* updating read me
2020-09-01 13:08:34 -07:00
Naveen Singh 5017e17be0
Updating version (#355) 2020-08-31 15:47:54 -07:00
Naveen Singh fbca799c02
Fixing region fail over issue for direct tcp calls (#351)
* Fixing reagion failover issue for direct tcp calls

* indentation

* adding test case and covering issue scenerio for writes

* Fixing lazy indexing tests and wrapping ex to cosmos exception for network test

* resolving comments

* indentation change

* resolving comment
2020-08-31 15:05:11 -07:00
Kushagra Thapar 7d919b1d3b
Updated release version to 2.6.9 (#342) 2020-06-15 18:57:35 -07:00
Bhaskar Mallapragada 07ea834efc
Updating the version to 2.6.8 for release (#333) 2020-05-11 17:03:35 -07:00
Kushagra Thapar 05165f14f3
Post release version update to 2.6.8-SNAPSHOT. Updated changelog and readme (#330) 2020-04-21 14:22:43 -07:00
Kushagra Thapar 73e673a08d
Updated versions to 2.6.7 for release (#329) 2020-04-21 12:44:16 -07:00
David Noble 63bf09f288
Address memory leak in Direct TCP transport client (#326)
* Tidied a couple of code files and add some code comments

* Addressed memory leak by simplifying reference counting mechanism. The e2e test passes without leaks being detected by the paranoid memory leak checker. More testing to follow.

* Removed some commented-out code and tweaked a checkNotNull error message

* Addressed a compilation issue

Co-authored-by: Kushagra Thapar <kuthapar@microsoft.com>
2020-03-23 19:47:13 -07:00
Kushagra Thapar 55ba308a22
Updated post release versions and changelog (#325) 2020-03-12 13:33:05 -07:00
Kushagra Thapar 10c585c0f5
Updated pom files to release version 2.6.6 (#324) 2020-03-12 10:55:50 -07:00
David Noble ca47cadbc6
DocumentClientException is now thread-safe (#323)
* DocumentClientException is now thread-safe (but offers no consistency guarantees) and we have a test that request/response headers can be enumerated while they're being updated (sans ConcurrentModificationExceptions).

* Bug fix: Adjust for fact that ConcurrentMap does not accept the null values that we sometimes pass.

* Added two new DocumentClientExceptionTest methods and increased the timeout interval on ConsistencyTest2.validateSessionTokenAsync because it times out regularly in local and CI test runs with the old timeout interval.
2020-03-11 16:29:45 -07:00
Bhaskar Mallapragada 3511f32e69
Bumping version to 2.6.6-SNAPSHOT (#317)
Updating Readme and changelog

Co-authored-by: Mohammad Derakhshani <moderakh@users.noreply.github.com>
2020-02-11 14:40:34 -08:00
David Noble 94627959af
[FEATURE] Direct TCP | Add metrics for tracking the distribution of request and response message sizes (#314)
* Configs.getProtocol now accepts in priority order -Dcosmos.directModeProtocol, -Dazure.cosmos.directModeProtocol (for compatability with v4) and the environment variable DIRECT_MODE_PROTOCOL (which is sometimes convenient in test environments)

* ReadMyWritesConsistencyTest now sets document data field size and RntbdTransportClient can now load default direct tcp options

* Removed option to specify document data field size on ReadMyWritesConsistencyTest and fixed a test break.

* Enclosed static initializer in try/finally to reduce chance of unexpected failures and renamed a mvn version property for clarity.

* Bug fix and tweaks based on code review feedback

* Increased request timer resolution from 5 to 100 ms

* Decreased request timer resolution from 100 to 5 ms

* Added RntbdTransportClient.Options.requestTimerResolution property for use by RntbdRequestTimer and renamed long times with unit suffix (e.g., InNanos for nanosecond values and InMillis for millisecond values)

* Minor code cleanup for compliance with central sdk standards

* Updated javadocs

* Updated sdk/cosmos/README.md with info on using system properties to modify default Direct TCP options

* Added RntbdMetrics.requestSize and RntbdMetrics.responseSize which track the distribution of Direct TCP request and response messages. Also: ported RequestTimeline class from v4 and tidied the code in touched files to eliminate checkstyle errors.

Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com>
2020-02-03 18:24:17 -08:00
Bhaskar Mallapragada f7061dccea
Bumping version from 2.6.5-SNAPSHOT to 2.6.5 (#316) 2020-01-31 16:06:55 -08:00
Mohammad Derakhshani 4bbccec074
move deserialization out of netty IO thread (#315)
* change thread to avoid deserialization to happen on io-thread

* build and install to local m2 script

* update

* change io thread in GatewayStoreModel
2020-01-31 13:03:18 -08:00
David Noble be8699023a Port from v4 | README Update : Using system properties to modify default Direct TCP options (#308)
* Configs.getProtocol now accepts in priority order -Dcosmos.directModeProtocol, -Dazure.cosmos.directModeProtocol (for compatability with v4) and the environment variable DIRECT_MODE_PROTOCOL (which is sometimes convenient in test environments)

* ReadMyWritesConsistencyTest now sets document data field size and RntbdTransportClient can now load default direct tcp options

* Removed option to specify document data field size on ReadMyWritesConsistencyTest and fixed a test break.

* Enclosed static initializer in try/finally to reduce chance of unexpected failures and renamed a mvn version property for clarity.

* Bug fix and tweaks based on code review feedback

* Increased request timer resolution from 5 to 100 ms

* Decreased request timer resolution from 100 to 5 ms

* Added RntbdTransportClient.Options.requestTimerResolution property for use by RntbdRequestTimer and renamed long times with unit suffix (e.g., InNanos for nanosecond values and InMillis for millisecond values)

* Minor code cleanup for compliance with central sdk standards

* Updated javadocs

* Updated sdk/cosmos/README.md with info on using system properties to modify default Direct TCP options

Co-authored-by: Kushagra Thapar <kushuthapar@gmail.com>
2020-01-28 12:51:23 -08:00
Naveen Singh d0bbf4ca8a DR fixes for V2 (#290)
* DR for V2

* fixing emulator test

* removy flaky assert
2020-01-13 18:00:03 -08:00
Kushagra Thapar ede78e6184
Updated version to next snapshot version and updated changelog (#303)
* Updated version to next snapshot version, updated changelog as well

* Updated dates to 2020
2020-01-02 12:45:02 -08:00
Kushagra Thapar 78ec17f6ce
Bump versions to 2.6.4 for releas (#302) 2019-12-23 15:31:22 -08:00
David Noble 66719ab4a1 Add support for specifying default Direct TCP options using System properties (#299)
* Configs.getProtocol now accepts in priority order -Dcosmos.directModeProtocol, -Dazure.cosmos.directModeProtocol (for compatability with v4) and the environment variable DIRECT_MODE_PROTOCOL (which is sometimes convenient in test environments)

* ReadMyWritesConsistencyTest now sets document data field size and RntbdTransportClient can now load default direct tcp options

* Removed option to specify document data field size on ReadMyWritesConsistencyTest and fixed a test break.

* Enclosed static initializer in try/finally to reduce chance of unexpected failures and renamed a mvn version property for clarity.

* Bug fix and tweaks based on code review feedback

* Increased request timer resolution from 5 to 100 ms

* Decreased request timer resolution from 100 to 5 ms

* Added RntbdTransportClient.Options.requestTimerResolution property for use by RntbdRequestTimer and renamed long times with unit suffix (e.g., InNanos for nanosecond values and InMillis for millisecond values)
2019-12-17 20:00:35 -08:00
David Noble 0fa78725cb Issue #286: Port read-my-writes fix from V4 (#287)
* Corrected an error in RequestRateTooLargeException, a regression that caused the status code to be set incorrectly

* Corrected ServiceUnavailableException status code, optimized imports, and added DocumentClientExceptionTest.statusCodeIsCorrect

The latter resulted in moving DocuemntClientExceptionTest from commons to direct-impl. Without the move commons would need to take a dependency on direct-impl which seems undesirable.

* Refactored DocumentClientExceptionTest to spread it out between commons and direct-impl

* Bumped version number to 2.6.3-SNAPSHOT

* Bumped netty version number to pickup this and other fixes: https://github.com/netty/netty/pull/9575

* Improved error handling for RntbdResponseHeaders

* Improved an error message

* Resolved #275

* Minor code cleanup in the vicinity of one possible source of this issue

* Tweaks

* Added logger.info that reports the ssl provider (OPENSSL or JVM)

* Improved diagnostics

* Added state tracking to RntbdRequestRecord so that the logs reveal the state of a request when it times out

* Tweaked text of RequestTimeoutException produced by RntbdRequestRecord.expire

* Added RntbdRequestRecord.State.UNSENT to denote failed writes

* Sorted methods and improved checkArgument messages

* Tweaks

* Added logger for tracking hashed wheel timer stops

* Added debug logger message

* Tweaked comments and line spacing

* Added final modifier

* Added requestExpiryInterval to RntbdTransportClient.Options

* Version bump

* Tweaks for performance testing

* Port from azure-cosmos-4.X

* Removed extraneous file

* Updated changelog to force a rebuild

* Fixed a test break

* Corrected package names in logger configuration file

* Updated changelog that tracks unreleased changes
2019-12-02 10:55:20 -08:00
Naveen Singh eeeabcd3f0 Adding collection routing map refresh flag on partition migration (#285)
* adding collection routing map refresh flag on partition migration

* resolving formatting comments
2019-11-08 14:56:35 -08:00
Mohammad Derakhshani ee557bfd6d
Potential NPE bug fix (#284)
* strong potential npe fix

* fix npe & some tests
2019-11-05 21:41:53 -08:00
Kushagra Thapar 5ae369df32
Updated release version to 2.6.3 (#280) 2019-10-23 12:54:28 -07:00
David Noble 667a3f9b56
Direct TCP: CorruptFrameException produces diagnostics that are difficult to interpret #273 (#274)
* Corrected an error in RequestRateTooLargeException, a regression that caused the status code to be set incorrectly

* Corrected ServiceUnavailableException status code, optimized imports, and added DocumentClientExceptionTest.statusCodeIsCorrect

The latter resulted in moving DocuemntClientExceptionTest from commons to direct-impl. Without the move commons would need to take a dependency on direct-impl which seems undesirable.

* Refactored DocumentClientExceptionTest to spread it out between commons and direct-impl

* Bumped version number to 2.6.3-SNAPSHOT

* Bumped netty version number to pickup this and other fixes: https://github.com/netty/netty/pull/9575

* Improved error handling for RntbdResponseHeaders

* Improved an error message
2019-10-15 01:24:08 -07:00
David Noble 793ccde6b6 Retry not happening with Direct mode #263 (#272)
* Corrected an error in RequestRateTooLargeException, a regression that caused the status code to be set incorrectly

* Corrected ServiceUnavailableException status code, optimized imports, and added DocumentClientExceptionTest.statusCodeIsCorrect

The latter resulted in moving DocuemntClientExceptionTest from commons to direct-impl. Without the move commons would need to take a dependency on direct-impl which seems undesirable.

* Refactored DocumentClientExceptionTest to spread it out between commons and direct-impl

* Bumped version number to 2.6.3-SNAPSHOT
2019-10-11 23:12:10 -05:00
Mohammad Derakhshani ed8a0144fb null return fix and logging (#267)
* null return fix and logging

* 2.6.2
2019-10-04 22:53:39 -07:00
Mohammad Derakhshani 0bc6bdc636
memory improvements (cherry pick of #230 to master) (#248)
* version bump to 2.4.6-SNAPSHOT

* byte buffer pool optimized

* unnessery uuid conversion

* URI changed to Uri

* fixes

* initlize StringBuilder with proper size for auth token

* minor fix in eralier commits

* fixed test

* addressed review comments

* fix in reading bytes set limit, fixed test

* fixed a broken test

* some unrelated test failrue: fixed

* fixed tests

* 2.4.6 release

* added getters for Uri and made fields final
2019-08-12 10:36:12 -07:00
Christopher Anderson b707094634
2.6.1 (#246) 2019-08-07 16:06:06 -07:00
David.Noble@microsoft.com af3913200d Addressed javadoc issue 2019-08-02 10:21:46 -07:00
David.Noble@microsoft.com 12565b7f3d Renamed console logging property for consistency with the benchmark app's properties 2019-08-01 17:31:28 -07:00
David.Noble@microsoft.com fd642297ed Merge branch 'master' of https://github.com/Azure/azure-cosmosdb-java into danoble/directtcp-2.5.x/issue-228 2019-08-01 13:54:56 -07:00
Christopher Anderson 9c9d1e80e7
2.6.0 (#241) 2019-07-31 23:40:36 -07:00
David.Noble@microsoft.com 2ea05d41ae Completed first five-minute e2e run that shows no memory leaks with io.netty.leakDetectionLevel=paranoid 2019-07-29 17:38:13 -07:00
David.Noble@microsoft.com 1853d86d85 Bumped netty.version and ensured that we're still at the latest of tcnative 2019-07-29 11:02:04 -07:00
David.Noble@microsoft.com 4ba39d08bb We now evict inactive RntbdServiceEndpoints and we've tightened up checks on ByteBuf releases to rule-out some memory leak sources 2019-07-28 20:55:46 -07:00
David.Noble@microsoft.com 58a8ff9391 Corrected readable bytes length checks in RntbdTokenType and ensured that RntbdObjectMappper.toJson never fails 2019-07-26 10:28:29 -07:00
David.Noble@microsoft.com 1a3c63ad5d Undid an experiment with RntbdReporter.doReportIssue because the error messages produced are less readable 2019-07-25 19:31:02 -07:00
David Noble 80fa55cf85 Bumped metrics.version to (maybe) pick up a bug fix 2019-07-26 01:58:46 +00:00