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

[FLINK-35197][table] Support the execution of supsend&resume materialized table in continuous refresh mode #24765

Closed
wants to merge 3 commits into from

Conversation

hackergin
Copy link
Contributor

@hackergin hackergin commented May 9, 2024

What is the purpose of the change

Support the execution of suspend & resume materialized table in continuous refresh mode

Brief change log

  • Fix incomplete serialization and deserialization of materialized tables
  • Support convert alter materialized table suspend/resume nodes to operations
  • Support the execution of suspend, resume materialized table in continuous refresh mode

Verifying this change

-In order to test the repair of incomplete serialization and deserialization of materialized tables, some relevant logic in org.apache.flink.table.catalog.CatalogBaseTableResolutionTest#testPropertyDeSerialization has been added.

  • For the execution of suspend and resume materialized table can be verifed by the new added test case org.apache.flink.table.gateway.service.MaterializedTableStatementITCase#testAlterMaterializedTableSuspendAndResume

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? (yes)
  • If yes, how is the feature documented? ( Will add in a separate PR.)

@flinkbot
Copy link
Collaborator

flinkbot commented May 9, 2024

CI report:

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

@hackergin hackergin force-pushed the FLINK-35197 branch 8 times, most recently from c76f94c to 082ac74 Compare May 10, 2024 03:54
@lsyldliu lsyldliu changed the title [FLINK-35197][table] Support the execution of create materialized table in continuous refresh mode [FLINK-35197][table] Support the execution of supsend&resume materialized table in continuous refresh mode May 10, 2024
Copy link
Contributor

@lsyldliu lsyldliu left a comment

Choose a reason for hiding this comment

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

@hackergin Thanks for your contribution, I left some comments.


// get checkpoint config from the materialized table
CheckpointConfigInfo checkpointConfigInfo =
getCheckpointConfigInfo(clusterClient, continuousRefreshHandler.getJobId());
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we get the JSON string directly? It looks a bit strange to convert the CheckpointConfigInfo to a json string, and then read the interval from json tree.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently, I have not found a good way to directly obtain the response of type String.

A better way might be to add a get method to CheckpointConfigInfo class.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok

@hackergin hackergin force-pushed the FLINK-35197 branch 2 times, most recently from 0b204cd to e436f70 Compare May 11, 2024 08:27
@hackergin hackergin force-pushed the FLINK-35197 branch 4 times, most recently from 6cf510b to f3f6161 Compare May 12, 2024 16:33
Copy link
Contributor

@lsyldliu lsyldliu left a comment

Choose a reason for hiding this comment

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

LGTM

@lsyldliu lsyldliu closed this in e4972c0 May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants