Shekharrajak opened a new pull request, #27660: URL: https://github.com/apache/flink/pull/27660
Ref https://issues.apache.org/jira/browse/FLINK-38970 ## What is the purpose of the change Fix flaky [AdaptiveBatchSchedulerTest.testAdaptiveBatchScheduler] which fails some of runs with `AssertionFailedError: expected: 10 but was: -1`. ## Brief change log - Replace [ComponentMainThreadExecutorServiceAdapter.forMainThread()]with a custom [SynchronousComponentMainThreadExecutor] - Maintains synchronous execution via [DirectScheduledExecutorService] - Removes thread identity assertions that fail when `CompletableFuture` callbacks dispatch from IO threads ## Verifying this change - Ran test 30 consecutive times with 0 failures ## Does this pull request potentially affect one of the following parts - Dependencies: no - The public API: no - The serializers: no - The runtime per-record code paths: no - Anything that affects deployment: no ## Documentation - Does this pull request introduce a new feature? no - If yes, how is the feature documented? not applicable -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
