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

Added more logging in Scheduler w.r.t. StreamConfigs. #1057

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

stair-aws
Copy link
Contributor

Issue #, if available:
N/A

Description of changes:
Added more logging in Scheduler w.r.t. StreamConfigs.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@stair-aws stair-aws added the v2.x Issues related to the 2.x version label Mar 6, 2023
retrievalConfig = new RetrievalConfig(kinesisClient, multiStreamTracker, applicationName)
.retrievalFactory(retrievalFactory);
leaseManagementConfig = new LeaseManagementConfig(tableName, dynamoDBClient, kinesisClient,
workerIdentifier).leaseManagementFactory(new TestKinesisLeaseManagementFactory(true, true));
scheduler = new Scheduler(checkpointConfig, coordinatorConfig, leaseManagementConfig, lifecycleConfig,
metricsConfig, processorConfig, retrievalConfig);
scheduler.initialize();
shardDetectorMap.values().stream()
Copy link
Contributor

@pelaezryan pelaezryan Mar 6, 2023

Choose a reason for hiding this comment

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

For my own understanding. Why is .stream() omitted from a handful of the tests? I presume it's not (no longer ?) necessary but would like to understand why.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

FYI, this SO thread captures a significant amount of detail: https://stackoverflow.com/questions/23218874/what-is-difference-between-collection-stream-foreach-and-collection-foreach tl;dr They're (mostly) interchangeable.

Primary motivation here is to reduce IDE warnings (e.g., "stream().forEach()" can be replaced with "forEach()") to increase the visibility of other warnings.

@stair-aws stair-aws merged commit 87dc586 into awslabs:master Mar 6, 2023
@stair-aws stair-aws deleted the config-logging branch March 6, 2023 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2.x Issues related to the 2.x version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants