flink icon indicating copy to clipboard operation
flink copied to clipboard

[FLINK-29093][table] Fix InternalCompilerException in LookupJoinITCase + reset resource counter before each test

Open SmirAlex opened this issue 2 years ago • 5 comments

What is the purpose of the change

Fixed unstable test LookupJoinITCase with Full cache

Brief change log

  • Avoided concurrent creation of Projection object from generated code
  • Fixed closing logic, so now close method waits until current reload is over+ there can't be another reload after closing
  • Reset resource counter in LookupJoin IT cases before each test, so if one will be failed, other ones will not be affected by that

Verifying this change

This change is already covered by existing tests, such as LookupJoinITCase.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
  • The serializers: (no)
  • The runtime per-record code paths (performance sensitive): (no)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no)
  • The S3 file system connector: (no)

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? not documented)

SmirAlex avatar Sep 01 '22 10:09 SmirAlex

CI report:

  • a115ab9592fb5ab8d7f3035d66eaba3e6446d3d5 Azure: FAILURE
Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

flinkbot avatar Sep 01 '22 10:09 flinkbot

Successful pipeline - https://dev.azure.com/asmirnov1/Flink/_build/results?buildId=35&view=results

SmirAlex avatar Sep 02 '22 09:09 SmirAlex

Successful pipeline after update - https://dev.azure.com/asmirnov1/Flink/_build/results?buildId=36&view=results

SmirAlex avatar Sep 06 '22 09:09 SmirAlex

cc @PatrickRen

HuangXingBo avatar Sep 07 '22 02:09 HuangXingBo

Hi @PatrickRen, I updated the PR according to your comments. About closing of InputFormats - they are closed in the finally block of InputSplitCacheLoadTask#run. Also I added checks for open-closed counter in all tests with FullCacheTestInputFormat.

SmirAlex avatar Sep 14 '22 11:09 SmirAlex

The CI failed because of an unrelated issue FLINK-29315. Merging to master

PatrickRen avatar Sep 23 '22 14:09 PatrickRen