flink icon indicating copy to clipboard operation
flink copied to clipboard

[FLINK-28767][sql-gateway] Fix unstable SqlGatewayServiceITCase.testC…

Open fsk119 opened this issue 3 years ago • 1 comments

…ancelOperation

What is the purpose of the change

Fix unstable SqlGatewayServiceITCase.testCancelOperation. The main cause is the main thread tries to get the OperationStatus after canceling the execution. But the execution thread record the exception in async mode. It means the main thread will get the OperationStatus that may contains exception or not.

I think we don't need to record the exception if the thread is interrupted.

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

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

Documentation

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

fsk119 avatar Aug 10 '22 08:08 fsk119

CI report:

  • 22c9ecc38a9c62e135a9bbc969ceeb26a08b08da Azure: SUCCESS
Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

flinkbot avatar Aug 10 '22 08:08 flinkbot