Skip to content

Users/ramacg/refactor managed uploader#455

Merged
ag-ramachandran merged 9 commits intofeature/IngestV2from
users/ramacg/RefactorManagedUploader
Jan 21, 2026
Merged

Users/ramacg/refactor managed uploader#455
ag-ramachandran merged 9 commits intofeature/IngestV2from
users/ramacg/RefactorManagedUploader

Conversation

@ag-ramachandran
Copy link
Contributor

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the ManagedUploader by simplifying the selectContainers method interface and enhancing the configuration cache to support server-specified refresh intervals.

Key Changes:

  • Removed configurationCache parameter from selectContainers method, accessing it as a class property instead
  • Changed configurationCache visibility from private to public in ContainerUploaderBase
  • Added logic to use server-specified refresh intervals from configuration responses
  • Added comprehensive tests for container selection with different upload methods

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
ingest-v2/src/test/resources/config-response.json New test fixture providing sample configuration with both storage and lake containers
ingest-v2/src/test/kotlin/com/microsoft/azure/kusto/ingest/v2/uploader/ManagedUploaderTest.kt New parameterized test validating container selection logic for DEFAULT, STORAGE, and LAKE upload methods
ingest-v2/src/main/kotlin/com/microsoft/azure/kusto/ingest/v2/uploader/ManagedUploader.kt Removed configurationCache parameter from selectContainers method signature
ingest-v2/src/main/kotlin/com/microsoft/azure/kusto/ingest/v2/uploader/ContainerUploaderBase.kt Made configurationCache property public and updated selectContainers signature and documentation
ingest-v2/src/main/kotlin/com/microsoft/azure/kusto/ingest/v2/common/ConfigurationCache.kt Enhanced to calculate effective refresh interval using minimum of default and server-specified intervals

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

github-actions bot commented Jan 9, 2026

Test Results

530 tests  ±0   521 ✅ ±0   3m 25s ⏱️ -1s
 31 suites ±0     9 💤 ±0 
 31 files   ±0     0 ❌ ±0 

Results for commit 11d42f6. ± Comparison against base commit b9ccf14.

@github-actions
Copy link

github-actions bot commented Jan 9, 2026

Test Results

530 tests  ±0   521 ✅ ±0   8m 26s ⏱️ -7s
 31 suites ±0     9 💤 ±0 
 31 files   ±0     0 ❌ ±0 

Results for commit c97fb4c. ± Comparison against base commit 4c3d8f6.

♻️ This comment has been updated with latest results.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 128 to 182
LocalTime.parse(configRefreshInterval).toSecondOfDay() *
1000L,
Copy link

Copilot AI Jan 9, 2026

Choose a reason for hiding this comment

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

The refresh interval parsing uses LocalTime.parse() which expects a time format (HH:mm:ss), but the actual format in the config is a TimeSpan/Duration string ("01:00:00"). While "01:00:00" may parse as LocalTime, this is semantically incorrect - you're parsing a duration as a time-of-day. Consider using Duration.parse() with the ISO-8601 duration format (e.g., "PT1H") or implement proper TimeSpan parsing that handles the format correctly.

Copilot uses AI. Check for mistakes.
ag-ramachandran and others added 7 commits January 20, 2026 17:25
…uploader/ContainerUploaderBase.kt

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…uploader/ContainerUploaderBase.kt

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…uploader/ManagedUploaderTest.kt

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Add tests for duration
@ag-ramachandran ag-ramachandran merged commit 5f296db into feature/IngestV2 Jan 21, 2026
5 of 8 checks passed
@ag-ramachandran ag-ramachandran deleted the users/ramacg/RefactorManagedUploader branch January 21, 2026 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant