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

46 Коммитов

Автор SHA1 Сообщение Дата
asafmahlev 79ae501358 skip for parent 2024-06-03 11:05:53 +03: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
ohad bitton 88ddc35cde
Transient IOError (#331)
* transient IOError

* transient IOError

* move getObjectMapper back to utils

* revert unrelated

* revert unrelated

* fix warning

* revert HttpClientProperties move to http folder

* try again

* format

* disable managed streamign test

* timeout test

* t

* dis q t

* redo test

* redo test

* no retry in cloud test

* no retry in cloud test

* fix vavr not used

* stop it !

* stop it !

* stop it !

* queuedClient test again?

* no managed , queuedClienttest minus ingestFromBlob_IngestionReportMethodIsNotTable_EmptyIngestionStatus

* format

* add again ingestFromBlob_IngestionReportMethodIsNotTable_EmptyIngestionStatus

* now with retries?

* retries not vavr?

* f

* nicer

* nicer

* nicer

---------

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2023-11-27 15:25:23 +02:00
ohad bitton 01b608e6e7
Streaming ingest from blob storage (#288)
* working and nice

* fix tests

* format

* revert samples

* test streaming from blob

* revert revert test

* test

* format

* fix test

* revert

---------

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2023-04-17 13:38:38 +03:00
Welton Rodrigo Torres Nascimento e7829fef08
Fix link for advancedquery in readme (#286) 2023-02-07 13:01:04 +02:00
ohad bitton 1b233a68c0
Java 11 and extract Process name (#260)
Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2022-11-27 11:10:54 +02:00
ohad bitton 6147035e83
Move to Blob Storage v12 and azure bom versioning (#240)
* storage v12

* storage v12

* complete - working

* STORAGE v12

* STORAGE v12 works and tested

* tests revert

* tests revert

* try pom

* try bom 1.0.6 - fails for reactor netty http

* bom 1.0.5 fails for netty for unknown reason - version match!

* bom 1.0.5 fails for netty for unknown reason - version match!

* revert me

* better

* merge it better

* merge better

* cleaner

* should work

* fix bom

* bom 1.2.4

* closeable clients

* merge with master, format and clean

* merge with master, format and clean

* test

* fix tests

* fix tests

* fix not working from stream

* work with older bom as well

* format

* fix verify

* fix ingest

* fix comments

* merge

* merge

* Fix ingestion status

* Fix e2e

* Fix ResourceManagerTest bug

* fix unused ependency

* revert

* format

* comments

* format

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-11-03 18:18:18 +02:00
Tanmaya Panda c3bc04358d
Switch to jackson library from org.json (#272)
* switch to jackson for json

* added formatter

* fixed failing test cases

* fixed testcases

* ran formatter

* added jackson-core to pom

* fixed json string

* fixed string conversion

* bumped release version

* bumped up release version

* addressed Ram's review comments

* formatter changes

* refactored object mapper

* addressed Ram's review comments

* formatter changes

* changes done as per Ohad's comments

* added exception testcase for ResultSetTest

* added bigdecimal for precision in decimal values

* added comment for bigdecimal deserilaization

* made options and parameters mandatory in tojson

* fixed test case

* accept cla

* added formatter

* commit for cla

Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-10-27 12:56:38 +05:30
breriksenms 5da90ad381
Documentation (#245)
* Add advanced query sample

* Fix readme reference to Results

* Incorporate PR comments

* format

Co-authored-by: ohad bitton <32278684+ohadbitt@users.noreply.github.com>
Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-05-29 12:42:28 +03:00
AsafMah ca04a5881a
Formatting - compact (#236)
* Revert "Add formatter plugin (#231)"

This reverts commit f23b0780ca.

* Formatting - compact
2022-03-31 09:58:33 +03:00
AsafMah f23b0780ca
Add formatter plugin (#231)
* Added formatter plugin, right now only starting

* Put config on main file

* Updated style to match ours better.

* Added declaration.

* edit build.yml

* Update style and apply formatting

* Update style and apply formatting

* Tweaked settings again

* Replace with session because that might be the correct path.

* Try formatting

* line endings

* renormalize new lines

* csluuid

* new lines

* new lines

* Run again with clean

* fixed build.yml

* Changed style to be better

* Added some docs
2022-03-29 15:40:49 +03:00
Larisa Andreea Danaila a60d0bdabc
Share HTTP client across requests (#196)
* Share HTTP client across requests

* Testing commit rights

* * changed the SingletonHttpClient to a factory
* added Javadocs across
* changed access modifiers to package private

* Updated the README

* Address CR comments

* Address CR comments 2

* UTs and E2Es

Co-authored-by: Larisa Andreea Danaila <dnil@adobe.com>
Co-authored-by: Ionut-Maxim Margelatu <imargela@adobe.com>
2022-02-03 16:52:41 +02:00
Yihezkel Schoenbrun 2c583f3a7a
Fix enum nomenclature (#209)
* Fix enum nomenclature

* Fix enum nomenclature

* Fix IngestionBlobInfo to use the String versions of the enums

* Add KustoValue to IngestionReportLevel and IngestionReportMethod enums

* From code review
2022-01-11 16:07:28 +02:00
ohad bitton 674045bfb9
Fix time out as timestamp (#185)
* fix timeout

* revert

* timeout as timespan

* j

* many changes

* better

* clean

* clean

* no auth

* better

* better

* comments

* comments

* comments

Co-authored-by: KustoIbizaExtension Build <kustodev@microsoft.com>
Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2021-10-15 13:39:28 +03:00
Yihezkel Schoenbrun c905a4261d
Minor fixes, including enum naming convention (DATA_FORMAT to DataFormat) (#183) 2021-08-23 15:30:28 +03:00
AsafMah 1f1d1245b4
Fixed old readme code (#178) 2021-06-27 14:02:48 +03:00
Yihezkel Schoenbrun f4da15d312
Rearchitect the AAD authentication code to be object oriented (#160)
* Rearchitect the AAD authentication code to be object oriented and follow best-practices (Java and otherwise)

* Rearchitect the AAD authentication code to be object oriented and follow best-practices (Java and otherwise)

* Code review comments:
- Rename to CallbackTokenProvider
- Remove 2 unnecessarily-passed authorityIds

* Add another layer of abstraction (MsalTokenProvider)

* Add another layer of abstraction (MsalTokenProvider)

* Add Override annotation per code review comment
2021-01-07 13:15:08 +02:00
ohbitton d07ae36e95 revert creds 2020-10-26 17:15:05 +02:00
Ohad Bitton 4a64402e70 v2.2.0 2020-08-27 16:13:56 +03:00
ohad bitton 16cc0e8102
Greater adal version (#144)
* reduced wait time on Err

* err

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2020-08-02 16:02:48 +03:00
vladikbr 35d682a89b
Add copyright headers, per MS OSS guidelines. (#141) 2020-06-22 14:38:59 +03:00
ohad bitton ce5e194037
Inline ingestion mapping (#122)
* new mappings

* new mappings

* better

* better

* comment

* comment

* better

* fix tests

* revert

* revert

* comments

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2020-03-18 17:55:54 +02:00
ohad bitton ea621969ea
Kustoresultset (#111)
* resultSet

* resultset

* resultSet

* TRY

* TRY

* good result set

* add count

* long

* fix pom

* save as strings and rename

* comment

* comment

* comments

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2020-03-15 15:30:55 +02:00
ohad bitton c3a13dfbeb
stop using jackson-mapper-asl (#123)
Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2020-03-15 12:36:58 +02:00
ohad bitton 6fdf40c75c
Compression type (#108) 2019-11-07 12:31:03 +02:00
Ariel Yehezkely 427a19247b
Result set to csv (#94)
Use CsvRoutines to convert result set to csv
2019-08-14 16:33:40 +03:00
Ariel Yehezkely 6f4047f8ce
Streaming ingest client (#93)
Introducing Streaming Ingest Client which performs ingest operations, of relatively small volume data for each table, directly to the engine over a special endpoint.
The streaming ingest client is recommended when there is a requirement for low latency queries, but  it is not recommended for bulk ingestion.
2019-07-22 14:32:04 +03:00
Tomer Shetah a04b9c41ca
Version 1.0.0-BETA-05 (#88)
* Update POMs for publish (#79)

* Adding an example of using CompletableFuture with the ingestFromFile() (#75)

* update readme with how to install from maven (#81)

* reportStatusWithoutSecrets (#83)

* ingestWithTagsPropeties (#82)

* aadAuthencticatorLocksFix (#84)

* throw-full-exceptions (#85)

* Ingestion properties: add setAdditionalProperties (#86)

* Reorg dependencies (#87)
2019-05-22 13:35:24 +03:00
Tamir Kamara d58292a76f
Flatten POMs (#77)
* Flatten child poms to remove the need to publish the parent pom
* Add surefire plugin to kusto-data to run unit-tests
* change key file to 128bit to avoid the need for JCE
2019-03-11 23:21:22 +02:00
Rabeea Abu-Saleh 261e75befd
Ingestion Tests + Argument Validation (#63)
* Adding Ingestion Tests
* Adding argument validation
* Changes and fixes to make the code be more testable
* Adding Javadocs
* Renaming AzureStorageHelper -> AzureStorageClient
2019-02-19 17:38:49 +02:00
tamirkamara 595264bb0b add javadoc & source plugins 2019-01-27 15:45:40 +02:00
Daniel Dubovski facdce5c2d
Feature/client request properties (#57)
* add `ClientRequestProperties`
2018-12-13 16:43:16 +02:00
Tamir Kamara 70bd26f486
Samples update (#54)
* move samples readme to module's root folder and minor edits
* separate sample links

Closes #34
2018-12-09 11:55:42 +02:00
tamirkamara 4ab422be37 new version format, add packaging with dependencies back until we publish to maven 2018-12-05 21:16:14 +02:00
Liza Shakury 1716662af4
simplify samples files execution and add samples readme file (#50) 2018-11-25 14:47:22 +02:00
LizaShak ec7eb3a4f2 Data refactor (#27)
* rename package entities and change interfaces
* fix classes access level
* remove kusto references
2018-10-03 13:57:32 +03:00
Rabeea Abu-Saleh 3992ee6579
Resource manager thread safe (#24)
* Add ReadWriteLocks to make the Resource Manager thread safe
* Remove String formatting from logs.
* Use concurrent HashMap for ingestion resources map.
2018-10-02 11:05:56 +03:00
Tamir Kamara 698b0aa8fb
Add Travis-CI (#26)
* Add travis-ci
* updated samples with tenant
* update build status images
2018-09-27 15:56:11 +03:00
Tamir Kamara 60aea05dac
Fix jar packaging, readme, tests, and AAD tenant (#22)
* pom changes: move common jar versions to parent, update minor version of libs
* updated readme fixes #17
* updated file ingest sample
* fixes #9, fix null string check in authentication
* add example of how to do a query
2018-09-17 20:17:06 +03:00
tamirkamara 729e48aae0 remove kusto from class names and methods 2018-09-13 13:39:36 +03:00
rabee333 83890ed24c Merge stream changes with this branch 2018-09-06 10:01:27 +03:00
tamirkamara 0993768246 add factory, interface implementation 2018-09-05 16:15:06 +03:00
rabee333 a19a0a7391 Fix tests and samples after last commit (make it compile and run tests successfully) 2018-09-04 14:43:15 +03:00
Rabeea Abu-Saleh 742a97faca Some unit tests, ResourceManager changes, name refactoring
Add unit-tests
Make changes to ResourceManager.java
variable names refactoring
Fix Kusto client id
2018-08-29 13:01:37 +03:00
tamirkamara 50bfea118f separate to different modules and create packages
git commit --amend --reset-author
2018-08-12 11:53:29 +03:00