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

338 Коммитов

Автор SHA1 Сообщение Дата
George Banasios d1db64a1be
Removes Apache HTTP URIBuilder (#397)
* removes apache http URIBuilder

* reverts to ParseException
2024-11-14 11:43:11 +02:00
Yihezkel Schoenbrun ab2910233c
Remove unused timeout from HttpClientProperties and ResourceManager (#395)
* Miscellaneous minor improvements

* Remove timeout from ResourceManager and separate timeout from HttpClientProperties

---------

Co-authored-by: ohad bitton <32278684+ohadbitt@users.noreply.github.com>
2024-11-12 17:27:43 +02:00
ohad bitton 84218c18c1
Managed streaming - better estimation for decision for streaming vs queuing (#368)
* stream source info size

* some good code, unfished

* manaed streaming queuing policy per format

* ser raw size for stream

* remove todo

* format

* fix test

* print exception message on last retry

* used undeclared jackson dep

* format

* add comment

* good comments

* better

* changelog

* format

* comments - E2E

* changelog

* comments

* comment

* fix

* last comments

---------

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2024-11-10 14:23:52 +02:00
ohad bitton b7d2477f08
New client missing feats (#393)
* remvoed maxConnectionsPerRoute
some missing pieces

* timeouts

* timeouts

* format + changelog

* better

* fix test

* revert

* revert

* clean

* format
2024-11-07 18:08:22 +02:00
ohbitton 2850cf28ac wtf 2024-11-07 17:31:16 +02:00
ohbitton afd44a74d0 remove the response timeout option 2024-11-07 15:29:28 +02:00
ohad bitton 378aa5a195
fix redirect count (#391)
* fix redirect couunt

* currentRedirectCounter

* format
2024-11-04 10:11:42 +02:00
Cole d73eeb3663
Implements azure core http client (#388)
* Introduces KustoQuery wrapper object

* working on async client

* updating client with KustoQuery object

* updating client with KustoQuery object

* updating client with KustoQuery object

* will simplify later.

* will simplify later.

* will simplify later.

* ran formatter, fixed test, fixed bad merge

* AtomicBooleans in already modified test. Save some lines, might as well.

* hide KustoQuery object

* rename and hide KustoRequest

* adding E2ETests for async queries

* ran formatter

* no complete in sink

* move blocking operations off the io thread

* run formatter

* replace execute utilization

* fixes teardown. async still doesn't work yet.

* fixes msal4j issue

* build.yaml

* Introduces KustoQuery wrapper object

* working on async client

* updating client with KustoQuery object

* updating client with KustoQuery object

* updating client with KustoQuery object

* will simplify later.

* will simplify later.

* will simplify later.

* ran formatter, fixed test, fixed bad merge

* AtomicBooleans in already modified test. Save some lines, might as well.

* hide KustoQuery object

* rename and hide KustoRequest

* adding E2ETests for async queries

* ran formatter

* no complete in sink

* move blocking operations off the io thread

* run formatter

* replace execute utilization

* fixes teardown. async still doesn't work yet.

* fixes msal4j issue

* rebased

* rework azure branch

* remove unused dependencies

* fix some more issues with imports

* add default timeout 10 min

* re-add readme

* modified changelog

* modified changelog

* removes krL

* remove async test file

* remove closeable from query clients

* fixes pom version change and removes unused reactor property

* CI_EXECUTION

* storageaccountset guard clause

* close clients in E2ETest

* remove extra assertions from teardown

* remove reactor step verifiers for now

* readd deflate to cloudinfo

* renoved reactor test library for now

* run formatter

* added fixme

* move URIBuilder to further facilitate removal of Apache

* add more detail to assertion failure

* Made InvalidConnectionString extend DataClientException so users can optionally catch the more specific exception

* commenting everything async until implementation works

* commenting everything async until implementation works

* ran formatter

* remove unused Apache classes

* removed commented code

* move message to appropriate assertion

* removed last of the commented code and ran formatter

* readd the auto-delete policy

* make request object usage private

* put back more Apache things.

* renove trailing space

* Update BaseClient.java

---------

Co-authored-by: cole <cole.snyder@gmork.tech>
Co-authored-by: asafmahlev <asafmahlev@microsoft.com>
Co-authored-by: ohad bitton <32278684+ohadbitt@users.noreply.github.com>
2024-10-27 15:11:44 +02:00
ohad bitton fb832817eb
Take redirect count from CRP - 0 by default (#389) 2024-10-27 14:13:44 +02:00
Ohad Bitton a00bd15f43 5.2.0 2024-08-27 11:41:30 +03:00
Yihezkel Schoenbrun 8c99dc4a4f
Testing fix to release Action (#375)
* Testing fix to release Action

* try upload blob

* try az upload-batch

* fix syntax

* revert build, update release as needed

* Update release.yml

---------

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
Co-authored-by: ohad bitton <32278684+ohadbitt@users.noreply.github.com>
2024-08-27 10:59:54 +03:00
ohad bitton 4867fb1c45
Changelog + run tests for #378 (#385)
* accoutn

* changelog

---------

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2024-08-27 10:09:32 +03:00
Cole 7f825772b6
fixes token fetch when account provided and bumps version (#378)
Co-authored-by: ohad bitton <32278684+ohadbitt@users.noreply.github.com>
2024-08-26 17:42:11 +03:00
ohad bitton 9ff0fb77b5
HttpClient - Proxy planner support (#370)
* working

* comments - E2E

* comments - E2E

* move SimpleProxyPlanner to test

* fix proxy test

* fix build

---------

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2024-08-26 17:12:24 +03:00
AsafMah 0ec574daad
Add support for configuring SSL/TLS protocols in HttpClient (#382) 2024-08-26 16:30:18 +03:00
alonadam 8cc2ceaead
Update trusted endpoint list with new partners endpoints. (#383) 2024-08-26 12:46:11 +03:00
Yihezkel Schoenbrun 723e09e7e3
Stop tests from depending on table row store being sealed, to shorten E2E runtime, and prevent timeouts even with the new HTTP client. (#380) 2024-08-07 10:11:40 +03:00
Yihezkel Schoenbrun 25af8f90a5
Upgrade version from 5.1.0 to 5.1.1 for release (#372)
* Upgrade version from 5.1.0 to 5.1.1 for release

* Upgrade version from 5.1.0 to 5.1.1 for release
2024-07-25 13:28:58 +03:00
Yihezkel Schoenbrun 374d6fbe8c
Fix client app and version tracing (#371) 2024-07-25 11:27:44 +03:00
asafmahlev 37734314f6 scope 2024-06-25 11:23:45 +03:00
AsafMah f54178f5df
Revert new HTTP client (#367) 2024-06-25 11:19:34 +03:00
Yihezkel Schoenbrun 736113800d
Prevent (theoretical) NPE in reportIngestionResult (#361) 2024-05-21 22:48:24 +03:00
Yihezkel Schoenbrun e87f012ee0
Retry loading ResourceManager resources in all cases (#349)
* Retry loading ResourceManager resources in all cases

* Fix build

* Fix tests

---------

Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2024-05-20 13:05:04 +03:00
Cole 626edb2707
bumps dependencies, removes explicit reactor and msal4j dependency (#357)
Co-authored-by: cole <cole.snyder@gmork.tech>
Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2024-05-05 14:06:30 +03:00
asafmahlev 02925fa998 robust check 2024-04-14 11:35:25 +03:00
AsafMah 1eef873847
secretless (#360) 2024-04-11 10:18:20 +03:00
t-ronmoneta 2b49b63feb
App and user for tracing (#359)
* Added kcsb's app for tracing and user for tracing to queued ingest client and ingestion properties

* Changed setter\getters permissions in ingestionProperties

* Removed tracing from ingestionProperties

* Pr comments and created a clientdetails to handle deafults
2024-04-08 13:21:20 +03:00
ohad bitton d112a99e41
remove unused netty dependency (#356)
Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2024-03-24 14:27:37 +02:00
Cole 0057e8f061
Removes apache http libraries and replace with azure core httpclient (#335)
* initial commit removing apache http libraries

* updated MSAL wrapper class to include headers in response

* Added TestHttpResponse class to replace BasicHttpResponse in Tests

* Added KustoParseException to replace ParseException from old Apache Client.

* removed todo regarding ParseException

* removed EofSensorInputStream

* added fixme to replace EofSensorInputStream

* Return of the Apache

* Fixed UtilitiesTest
Removed cast to Closeable in CloudInfo

* return UriBuilder to UriUtils

* add proxy options back to HttpClientFactory

* ran formatter

* closeable and fix build

* fix test

* format

* removed extra throws

* Per Ohad review comments:
-Adds custom HTTP status codes
-Integrates status codes
-Uses Context.NONE static factory

* removed caught exceptions that were rethrown with no changes/side effects in QueuedIngestClientImpl per review comments

* removes block on body by using BinaryData
removes Entity references

* ran formatter

* added Tracing object and builder to shorten method signatures
added HttpRequestBuilder to separate request building logic from execute methods in the client, providing better testability
Created BaseClient class to host the inner httpClient
Put post methods on BaseClient so no need for utils class
removed HttpPostUtils.java
updated impacted tests
left notes on Keep-Alive header in ClientFactory
ran formatter

* puts old URIBuilder back in place

* update readme with ProxyOptions

* aligns with PR 342

* fix issue with Closeable

* ran formatter

* Fix sync HttpWrapper implementation

* fix build

* format

* build

* Few bug fixes
Build works also with OKHttp providers

* readd the exclusion of commons-codec for security posture

* adds response timeout and client provider to the client properties wrapper

* removes references to Netty

* removes extra comment

* adds Keep-Alive back to prevent breaking change for users of Keep-Alive. updates CHANGELOG.md
ran formatter.

* removes deflate algorithm from encoding header

* revert removing Apache core (URIBuilder depends on utilities in core)

* remove netty from client factory

* fix

* removes CloseParentResourcesStream.java

* reusable Gzip logic

* factory now uses azure-core default http client options

* I always forget the formatter

* fix test

---------

Co-authored-by: cole <cole.snyder@gmork.tech>
Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
Co-authored-by: ohad bitton <32278684+ohadbitt@users.noreply.github.com>
2024-03-24 14:04:17 +02:00
ohad bitton 0783b1c2ec
Jmeter stress test (#354)
* Jmeter stress test

* better

* better error on null

---------

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2024-03-10 12:30:12 +02:00
AsafMah 83a6a1ea82
Update release.yml 2024-03-06 15:30:15 +02:00
Yihezkel Schoenbrun 03e37674d1
Update version from 5.0.4 to 5.0.5 (#355) 2024-03-06 15:09:04 +02:00
AsafMah afdac272d0
Update release.yml 2024-02-28 10:20:47 +02:00
Yihezkel Schoenbrun 4d66a3c760
Fix ConcurrentModificationException (#353)
* Fix ConcurrentModificationException

* Black

* Asaf was right
2024-02-27 02:32:43 +02:00
ohad bitton 477564f66a
Update issue templates (#350)
* Update issue templates

* Update bug_report.md
2024-02-06 17:42:19 +02:00
AsafMah 32bb34b9cc
Update build.yml (#351) 2024-02-06 16:44:53 +02:00
Yihezkel Schoenbrun 433bf6e293
Fix integration tests that should be unit tests (#348)
* Fix integration tests that should be unit tests

* Fix integration tests that should be unit tests

* Black

* Add unit-ish test for autoCorrectEndpoint boolean

* Black
2024-02-05 18:34:59 +02:00
Yihezkel Schoenbrun 27d5c2fac2
Fix CRP's servertimeout bugs in how it's set/get, and make consistent (#346)
* Fix CRP's servertimeout bugs in how it's set/get, and make consistent

* Per Asaf's review

* Per Asaf's review
2024-02-01 10:58:11 +02:00
Yihezkel Schoenbrun 5af94bc64a
Minor sample app fixes (#347)
* Minor SampleApp fixes

* Minor SampleApp fixes
2024-01-29 14:04:08 +02:00
asafmahlev e69ffcbe8c yaml 2024-01-23 14:11:02 +02:00
asafmahlev de08ccf056 yaml 2024-01-23 13:59:27 +02:00
asafmahlev 7d530ad3a6 Fixed build? 2024-01-23 13:58:34 +02:00
Ohad Bitton 9e4553364e v5.0.4 2024-01-23 13:29:51 +02:00
ohad bitton 1a34fd40da
Resource manager can return an empty list (#340)
* test fail

* test good

* format

* fix resource manager

* fix resource manager

* ResourceManagerTest fix

* ResourceManagerTest fix

* ResourceManagerTest fix

* tyr not to hang the tests

* format

---------

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2024-01-23 12:43:40 +02:00
Yihezkel Schoenbrun 612e9930fc
Fix excessive test runtime (#344)
* Test without these classes

* Test without these classes

* Test without these classes

* Test without these classes

* Test without these classes

* Test without these classes

* Test without these classes

* Test without these classes

* Test without these classes

* Test without these classes

* Test without these classes

* Test without these classes

* Test without these classes

* Test without these classes

* Test without these classes

* Test without these classes

* Test without these classes

* Test without these classes

* Test without these classes

* Test Ohad's proposal

* Test Ohad's proposal
2024-01-23 08:46:07 +02:00
Yihezkel Schoenbrun d0f1da973b
Add missing headers (#342)
* Add missing headers

* Add missing headers

* No need for query_language header
2024-01-22 08:23:53 +02:00
t-ronmoneta 09b65d03be
T ronmoneta/compression auto detect fix (#337)
* Changed DataFormats to not compress if needed

* Changed CHANGELOG.md
2024-01-21 14:12:34 +02:00
Yihezkel Schoenbrun 7e6a85fc97
Enforce and document valid server timeout range (#343)
* Enforce and document valid server timeout range

* Add test

* Remove unused dependency
2024-01-21 09:51:30 +02:00
Yihezkel Schoenbrun 325e81c18b
Fix exception java.lang.NoClassDefFoundError: io.opentelemetry.sdk.logs.SdkLogEmitterProviderBuilder (#341)
* Fix exception "java.lang.NoClassDefFoundError: io.opentelemetry.sdk.logs.SdkLogEmitterProviderBuilder"

* Remove unused dependency
2024-01-18 22:55:36 +02:00
Cole c1de60b932
bumps dependencies and removes vulnerability caused by apache httpclient (#333) 2024-01-18 15:26:47 +02:00