Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KafakV2SourceConnector #39410

Merged
merged 49 commits into from Mar 29, 2024
Merged

Conversation

xinlian12
Copy link
Member

@xinlian12 xinlian12 commented Mar 26, 2024

Re-add kafka source v2 connector #38748 and #38884

Extra changes added(mainly to reduce the export packages scope from azure-cosmos):
Added the following methods in azure-cosmos (internal and can be accessed from ImplementationBridgeHelpers).

  • CosmosChangeFeedRequestOptions:
static CosmosChangeFeedRequestOptions createForProcessingFromContinuation(
        String continuation, FeedRange targetRange, String continuationLsn) {
  • CosmosAsyncContainer:
   Mono<List<FeedRange>> getOverlappingFeedRanges(FeedRange feedRange) {

   Mono<Boolean> checkFeedRangeOverlapping(FeedRange feedRange1, FeedRange feedRange2) {

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

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

LGTM

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

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

Thanks for removing the shaded Guava/commons files - LGTM

Copy link

Azure Pipelines failed to run 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

Copy link

Azure Pipelines failed to run 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

Copy link

Azure Pipelines failed to run 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

/***
* The CosmosDb source connector.
*/
public class CosmosDBSourceConnector extends SourceConnector {
Copy link
Member

Choose a reason for hiding this comment

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

should it implement AutoCloseable?

Copy link
Member Author

Choose a reason for hiding this comment

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

yea good point, will add in the next PR

@xinlian12
Copy link
Member Author

flaky tests:
readFeedDocumentsAfterSplit
readFeedDocumentsAfterSplit_maxScaleCount
createItem_withBulk_split
createItem_withCacheRefresh

tests passed locally:
tryGetAddress_repeatedlySetUnhealthyStatus_forceRefresh
channelAcquisitionExceptionOnWrites

@xinlian12
Copy link
Member Author

/check-enforcer override

@xinlian12 xinlian12 merged commit e34af58 into Azure:main Mar 29, 2024
67 of 69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants