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

1644 Коммитов

Автор SHA1 Сообщение Дата
kirankumarkolli 5cd368e571
Signed build assembly info fix (#103) 2019-04-04 02:55:43 +05:30
Garrett Ausfeldt b08a2f7a06 bump direct to 3.0.0.21 & Client to 3.0.0.10 (#102)
* bump direct to revision 21

* bump sdk version
2019-04-04 01:26:38 +05:30
Matias Quaranta dba4b60bdd Initial Change Feed Processor port (#98)
* Initial code port

* Correcting license text

* Refactoring public types

* Refactoring more namespaces

* Reorganizing namespaces

* Refactoring public APIs

* Refactoring estimator as push

* Refactoring more access

* Correctly handling thread

* Removing extensions

* HealthMonitor internal

* Adding estimation interval and custom lease options

* Hiding ProcessorOptions

* Removing instance

* Default type

* Renaming builder methods

* Removing catch for NotFound

* Build is now sync

* Builder signature with generic

* FIxing null check

* Fixing comments

* Refactor to remove abstract

* Fixing message

* Renaming feedpoll and promoting workflowname

* Argument per line

* Removing internal on public

* Setting logging as internal

* Adjusting namespace test

* Namespace shuffle

* Marking as virtual

* Missed one virtual
2019-04-03 23:47:47 +05:30
j82w c3ba97ec3e Add test to verify that EPK option is honored in query pipeline. (#101)
* Add test to verify that EPK option is honored in query pipeline.

* Added custom error messages.
2019-04-03 03:32:01 +05:30
j82w 4393662144 Query pipeline honors effective partition key property (#89)
* Init, add support for EPK property in query pipeline.

* Bug fix

* Refactored code based on feedback.

* Added "this" back to local method calls.

* Fix comment spelling

* Adding a comment

* Add null checks
2019-04-02 16:25:14 +05:30
j82w 2bf07ce632 Update cross partition query test to use v3 API (#99)
* Init, it builds, need to validate tests still

* Fixed the test init. All tests are passing.

* Fixed naming

* Updated NameRoutingSmokeGatewayTest to use v3 API

* Fixed test common delete all databases to use CosmosClient, and updated references to call it in an async await instead of .Wait(). Removed unnecessary delete all databases from test methods. Only class cleanup now deletes all databases.

* Updated DirectRESTTests to be async.
2019-04-02 12:27:33 +05:30
j82w ce2d41925a Add unit test support for Cosmos Client types (#90)
* Init rename files to append core

* Update class names to match new file name.

* Added new base abstract classes. Refactored everything to use new base classes.

* Fixed comments

* Fixed feed options file encoding

* Fixed comments

* Remove comment references to core classes

* Removed unnecessary using.

* Removed unused using statements

* Removing unnecessary comments
2019-04-02 02:31:37 +05:30
kirankumarkolli 5ce792f507
Integrating master direct pacakge [BREAKING CHANGES] (#97)
* a draft version

* One more draft

* Simple namespace and code removal changes

* New REST contract types

* Some more contract changes

* Moving type conversion to new CosmosResource

* Some more contract changes

* Dance between different resource types

* Committing a binary diff

* Test project changes

* Cosmos tests building

* Tests green

* CosmosResource as base type removed and required properties are in-lined

AltLink is removed from all resources and also consumption constructs them on-demand.

* Committing local project system changes as well.

* New contract validation tests for database and container to match old contracts

Leveraged C# 6.0 syntax to clean-up default initialization code
PartitionKeyRangeStatisc type removed from contracts

Future work:
1. SchemaBuilderPolicy
2. SpatialSpec
3. CompositePaths

* RequestOptions excluded from GitHub

Mainfest bug fix (all UT GREEN now)

* Some more emulator cmpilation fixes

* Emulator project building

* Integrated into new StoreClientFactory

* Some more test fixes

* All except performance GREEN

* Including missing file

* Ignoring all quarantines tests

* All emulator tests GREEN

* All solution GREEN

* Including JsonNavigator code

Also all solution builds GREEN

* Cosmos regions & Proximity utils moved to Direct.

Offer tests fixed.

* Moving UT into unit-tests project.

* Removing TestJosns from Test FX project

* Solition and project file changes refresh
2019-03-28 04:17:17 +05:30
Garrett Ausfeldt 175a52286d bump revision to 9 (#85)
* bump revision to 9

* <IncludeSymbols>false</IncludeSymbols>
2019-03-21 11:07:08 +05:30
Naveen Singh 7c579bd9df Porting spatial class from V2 to V3 , along with new MultiPolygon (#79)
* making spatial classes public along with MultiPolygon

* adding query test

* adding query to multipolygon

* resolving commits

* sending mock iteration to trigger build
2019-03-21 03:38:24 +05:30
j82w e4a4cd1e33 Adding support for cross partition query stream (#78)
* Init, no testing done

* Fixed casting exception. Removed some read feed logic from query pipeline.

* Fixed merge issues

* Refactored CosmosResultSetIterator to CosmosResultSetFeedIterator. Returning a cross partition query only has a single stream and does not need to implement IEnumerable. CosmosResponseMessage was not designed to handle aggregate of responses. The current solution is to have 3 different iterators (typed query, stream query,  feed).

* Stored DocumentQuery in the state to prevent creating for each call.

* Cross partition query stream is now exceptionless and always returns a CosmosQueryResponse. The try catch is temporary until the query pipeline is made exceptionless.

* Fixed tests

* Fixed bad merge.

* Added more tests. Exposed query metrics and count on CosmosQueryResponse.

* Fixed comments

* Exposed ContentSerializationFormat in the request options

* Converted CosmosQueryResponse to use http status code and error message. Added request options to support a custom IJsonNavigator and JsonWriter.

* Converted everything to use the new options class.

* Ignore test that requires handler pipeline

* Add tests for custom serialization settings.

* Changes

* Fixed tests by switching the newtonsoft conversion. The previous method did not correctly handle double correctly and cause arithmetic overflows.

* Fixed tests and read feed via query pipeline.

* Fix test

* Fix offers operations

* Added retry after to query response

* Fixed the offers and index APIs.

* More test fixes. Converting tests to handle the JObject instead of dynamic Document from v2 SDK.

* Added json settings to json converter to fix tests.

* Removed query metrics, renamed methods, and fixed a test failure.

* Ignored tests that need to be converted to v3 API.

* Changed feed options to utf8 encoding.
2019-03-20 23:33:38 +05:30
Kiran 9273406f26 simplifying the logic 2019-03-18 21:49:43 +05:30
Kiran 4ff2352b18 Hard bind direct pacakage to a fixed version 2019-03-18 21:37:24 +05:30
REDMOND\gaausfel 4c6ecb6caf lockstep on major and minor 2019-03-15 12:56:09 -07:00
kirankumarkolli 33b215b06d
Merge branch 'master' into users/gaausfel/remove_version_lockstep 2019-03-15 18:38:39 +05:30
Brandon Chong fff424b0dc whoops 2019-03-14 18:01:47 -07:00
kirankumarkolli 68c5443422
Merge branch 'master' into users/brchon/LazyCrossPartitionQuery 2019-03-15 03:40:35 +05:30
kirankumarkolli 79f7585886
Merge branch 'master' into users/gaausfel/remove_version_lockstep 2019-03-15 02:20:31 +05:30
Brandon Chong 1d913ca144 fixed various bugs 2019-03-14 08:59:14 -07:00
Brandon Chong 61574ed75a
Merge branch 'master' into users/brchon/JsonReaderWriterNavigatorTests 2019-03-13 19:24:59 -07:00
Brandon Chong 59a374d483 added interop reader 2019-03-13 19:24:22 -07:00
Brandon Chong 094645ed6f fixed CosmosElementJsonConverter 2019-03-13 19:24:04 -07:00
Brandon Chong 0e388ec5f7 revert dummy commit 2019-03-13 17:52:02 -07:00
Brandon Chong 9383c49a69 dummy commit 2019-03-13 17:51:14 -07:00
Brandon Chong 0c799c7b89 whoops 2019-03-13 17:29:44 -07:00
Brandon Chong 9e0099dca2 merged 2019-03-13 14:21:30 -07:00
Brandon Chong 41c242e5d0 resolved iteration comments 2019-03-13 14:18:47 -07:00
Brandon Chong 1bca21e297 revert dummy commit 2019-03-12 19:10:36 -07:00
Brandon Chong d94cf6c335 dummy commit 2019-03-12 19:10:20 -07:00
Brandon Chong 24cb6ecd42
Merge branch 'master' into users/brchon/LazyDeserializedJSON 2019-03-12 19:07:00 -07:00
Brandon Chong 5a47631485 fixed formatting 2019-03-12 13:25:12 -07:00
REDMOND\gaausfel 7327c8febb add DirectVersion property 2019-03-12 12:57:53 -07:00
Brandon Chong 995a9c7503 requeueing after git lfs change 2019-03-12 11:57:27 -07:00
Brandon Chong 1f140a400d added additional tracing 2019-03-12 11:20:15 -07:00
Brandon Chong d70a3ca75b refactored to not use object as intermediary value 2019-03-11 21:56:36 -07:00
Brandon Chong 736e13e5f9 merged 2019-03-11 11:27:45 -07:00
Brandon Chong 349ef8008f changed up equality comparer 2019-03-11 10:06:50 -07:00
Brandon Chong dc73331122 Merge branch 'users/brchon/LazyDeserializedJSON' of https://github.com/Azure/azure-cosmos-dotnet-v3 into users/brchon/LazyDeserializedJSON 2019-03-08 14:35:28 -08:00
Brandon Chong 96fa44ec2d binary to text file 2019-03-08 14:33:24 -08:00
Brandon Chong 98db95d6ca iteration comments 2019-03-08 14:32:25 -08:00
kirankumarkolli 920f916d70
Merge branch 'master' into users/brchon/LazyDeserializedJSON 2019-03-08 22:21:45 +05:30
REDMOND\gaausfel 235fea51cb remove net461 target 2019-03-07 18:50:52 -08:00
REDMOND\gaausfel 7f9eb8beaf remove lockstepping version 2019-03-07 16:19:23 -08:00
Brandon Chong 136dff5ca1 ran stylecop 2019-03-07 15:45:36 -08:00
Brandon Chong 9cd4567284 opted for partial private factory pattern 2019-03-07 15:13:25 -08:00
Brandon Chong cb786b7f61 added Eager implementations 2019-03-07 14:44:28 -08:00
Brandon Chong 7a80dda968 resolved iteration comments 2019-03-07 14:13:30 -08:00
Brandon Chong f6bad62313 move validation code to a static class 2019-03-07 10:13:25 -08:00
Brandon Chong e206155e20 opted for overloads on factory 2019-03-07 09:56:09 -08:00
Brandon Chong a523613711 got rid of ILazyCosmosElement and make WriteToWriter a member of the root base class 2019-03-07 09:49:37 -08:00
Brandon Chong 7ff476284d made lazy cosmos number always a double 2019-03-07 09:39:19 -08:00
Brandon Chong ead702e551 opted for AsDouble() 2019-03-07 09:37:35 -08:00
Brandon Chong 0c46ec2fa7 made null a sealed type 2019-03-07 09:30:07 -08:00
Brandon Chong f71f4944c4 made CosmosBoolean a sealed type 2019-03-07 09:25:48 -08:00
Brandon Chong 96b1017649 sorted 2019-03-07 09:22:28 -08:00
Brandon Chong 075d0d144c fixed misc tests 2019-03-06 18:19:02 -08:00
Brandon Chong 792524fae6 wired up CosmosElement through DISTINCT document query execution context 2019-03-06 17:36:44 -08:00
Brandon Chong 76bcaff662 wired up CosmosElement through Aggregate Execution Component 2019-03-06 15:00:54 -08:00
kirankumarkolli 4b22bb2b23
Merge branch 'master' into users/kriankk/cosmos_extension_internals 2019-03-07 03:23:15 +05:30
Brandon Chong 5054baffbd got Lazy Cosmos Element Working With Cross Partition Order By 2019-03-06 11:40:22 -08:00
Oleg Ignat a9c8c7200b Merged PR 193436: Expose CPU monitor and store client on cosmos client
Cosmos client wraps Document client and needs to expose 2 controls for compute gateway:
1. Ability to disable CPU monitoring which is unnecessary because compute has own telemetry stream and cpu monitoring will consume a thread
2. Ability to pass the same IStoreClientFactory into all document clients in the process

Related work items: #382908
2019-03-06 18:07:02 +00:00
Kiran Kumar Kolli b2aeb07f85 InternalsVisibleTo Cosmos.Extensions 2019-03-06 16:04:51 +05:30
Brandon Chong cdbf73ec3e got lazy deserialization working through parallel 2019-03-06 02:10:43 -08:00
Brandon Chong 495fbe8e95 wired up cosmmos element through parallel and order by 2019-03-06 00:21:25 -08:00
Brandon Chong 11c5c0b64f added test cases 2019-03-05 21:58:21 -08:00
Brandon Chong a35bc4262d added CosmosElements Object Model 2019-03-05 21:58:03 -08:00
Brandon Chong 3c6dbd59c3 ported over the reader writer navigator tests 2019-03-05 18:03:51 -08:00
Garrett Ausfeldt 2881332cb5 bump revision to 3.0.0.5 (#59) 2019-03-05 14:27:38 -08:00
Vinod Sridharan fd4136d0bf Merged PR 191936: [Port] Fix regions to add new regions
Fix regions to add new regions

Cherry picked from !191863

Related work items: #379157
2019-03-05 17:33:19 +00:00
REDMOND\gaausfel f702394c95 remove and add unformated twitter_data.json 2019-03-01 13:51:32 -08:00
Naveen Kumar Singh 36e431ce1a Merged PR 191103: Correcting spelling mistake for CreateStoredProceducreAsync
Miscellaneous typo fix   as per https://github.com/Azure/azure-cosmos-dotnet-v3/issues/45 , https://github.com/Azure/azure-cosmos-dotnet-v3/issues/41

Related work items: #378054
2019-02-28 22:07:38 +00:00
Jake Willey 543afc3797 Merged PR 188860: Adding support for non JSON payloads during exceptions
Adding support to handle HTML content on exceptions. This will fix the JSON parsing exceptions that are currently hit by this scenario.

Related work items: #375870
2019-02-22 18:56:24 +00:00
Garrett Ausfeldt b0eb8cc186 Merged PR 188201: Port cross partition query improvements
5cfd441e21

Related work items: #370177
2019-02-19 23:56:05 +00:00
Garrett Ausfeldt 301a82c1f7 Merged PR 187055: Use LFS for test json files and remove owners from tests
Use LFS for test json files and remove owners from tests. LFS has to be used because files over 100mb will cause a push to fail.

Related work items: #369455
2019-02-13 20:40:19 +00:00
kirankk 99924a5c50 Merged PR 184470: Pushing DocumentClient access down post initialization
Pushing down all documentclient access into RequestInokehandler+
Argument checks for ExecUtils and few paths.

Related work items: #365624
2019-02-05 19:47:36 +00:00
Abhijit P. Pai 271034f524 Batch cosmos-sdk changes to allow execution
Batch operation to be treated as a POST operation; expose PartitionKeyDefinition and CollectionRoutingMap to get PartitionKeyRangeId given a partition key for cross-partition batching.
Bump SDK to 3.0.0.4 corresponding to .Direct package.
2019-02-04 20:30:22 +00:00
Matias Quaranta e6dde34c09 Merged PR 184198: Exceptionless 429 on V3
Porting Gateway changes from !179520 plus adding initial unit tests.

Tests were added for:

* DocumentServiceRequest Extensions, to verify the Flags work correctly with Status Codes
* TransportClient not throwing for known status codes
* GatewayStoreClient not throwing for known status codes
* TransportHandler not receiving exceptions from the StoreModel for known exceptionless status codes

Related work items: #333331
2019-02-01 17:58:44 +00:00
Jake Willey b50b2984eb Merged PR 179529: Adding internal stream support for database operations.
Adding stream support for database and container operations.
1. Added new stream methods for database create, read, and delete
2. Added new emulator tests for the new methods
3. Added a new ExecUtil method that does not take a response factory since stream operations do nothing to the operation.
4. Refactored the logic for the typed responses to call the equivalent stream methods. This will ensure the same validation is done for all the calls and prevent duplicate code.

Related work items: #333328
2019-02-01 13:42:42 +00:00
kirankk 149dce5961 Merged PR 183608: Integrating LINQ tests
Integrating LINQ tests

Related work items: #333325
2019-01-30 17:44:11 +00:00
Vinod Sridharan bd9c0c8127 Merged PR 183574: Fixes ported from v3sdkbaseline
Fix Change-Feed for non-Stream API
Allow EPK as a header for PK for query.

Related work items: #342004
2019-01-29 23:41:37 +00:00
kirankk 6975dbaf23 Merged PR 182333: Porting EN20181130 client changes
Porting EN20181130 client changes

Unit tests follow-up
   GlobalDatabaseAccountTests.cs
   IndexingPolicyTests.cs:CompositeIndex
   RntbdTests.cs:IdleChannelClosureAsyncTest

Related work items: #333325
2019-01-29 06:55:06 +00:00
Jake Willey d08a9c305d Merged PR 178419: Add cosmos client builder
Adding the Cosmos client builder. The builder was added so each Cosmos client instance gets it's own immutable cosmos configuration. This makes it clear that new cosmos client is required to update any of the cosmos client configuration properties.

Related work items: #333319
2019-01-24 19:53:24 +00:00
Garrett Ausfeldt d657deaddd Merged PR 179781: Fix ChangeFeed continuation bug
The continuation is supposed to be Etag and content length is always 0.

Related work items: #341692
2019-01-23 16:53:45 +00:00
Garrett Ausfeldt 9f97ecdd9a Merged PR 177881: Set IncludeSymbols to true
Set IncludeSymbols to true

Related work items: #340536
2019-01-15 20:01:29 +00:00
Garrett Ausfeldt dbdb46e789 Merged PR 177870: Change CosmosDefaultJsonSerializer from Encoding.Default to Encoding.Utf8
Change CosmosDefaultJsonSerializer from Encoding.Default to Utf8Encoding(false, true). Required by Mongo Interop. Default.Utf8 will not work because it will emit unicode byte order mark which will cause a 400 from the backend. The false of Utf8Encoding(false, true) makes it not emit it.

Related work items: #341166
2019-01-15 19:23:46 +00:00
Matias Quaranta 02d56014c7 Merged PR 176216: Moving Perf project to new repo
This PR moves the Perf project to the new cosmos-sdk repo from the V3 branch

Related work items: #332951
2019-01-03 21:04:12 +00:00
Garrett Ausfeldt 0680d4fd71 Merged PR 173926: Port hotfixes from v3sdk
Port hotfixes from v3sdk

Related work items: #334691
2018-12-31 18:24:41 +00:00
Matias Quaranta b865428d99 Merged PR 176205: [V3 SDK] double.parse should be invariant
When the OS culture is set with a different decimal separator, double.parse fails with a FormatException.

Related work items: #338171
2018-12-26 17:56:53 +00:00
Jake Willey 520319ed30 Merged PR 175421: Enabled different types of partition keys and added unit tests
Enabled different types of partition keys and added unit tests

Related work items: #333709
2018-12-20 21:08:10 +00:00
Jake Willey b642f2c87e Merged PR 175607: Enabled all the quarantined tests.
Enabled all the quarantined tests. They all pass locally with the public emulator.

Related work items: #320922
2018-12-20 18:39:26 +00:00
Garrett Ausfeldt 5e9d29785d Merged PR 174947: Make the direct package version dynamic
Make the direct package version dynamic for nightly builds.

If msbuild parameter IsNighly=1 is supplied it will suffix the version with -nighly{DATE}

Example:

Release is 3.0.0.1-preview
Example of nightly will be 3.0.0.1-preview-nightly20181217
GA will be 3.0.0
Example of GA nightly will be 3.0.0-nightly20190318

Related work items: #336001
2018-12-19 07:56:51 +00:00
Garrett Ausfeldt ba1be00115 Merged PR 173904: Change package reference names
Signed and unsigned packages can't have the same names.

Related work items: #334670
2018-12-13 19:47:00 +00:00
Nick Chapsas f0b3a59445 Fixed the maxConcurrency parameter summary 2018-12-04 19:25:09 +00:00
REDMOND\gaausfel 4d35e9ce6a add source 2018-11-30 19:06:23 -08:00