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

[fix](multi-catalog)fix s3 check, complete catalog properties #20591

Merged
merged 5 commits into from
Jun 18, 2023
Merged

[fix](multi-catalog)fix s3 check, complete catalog properties #20591

merged 5 commits into from
Jun 18, 2023

Conversation

wsjz
Copy link
Contributor

@wsjz wsjz commented Jun 8, 2023

Proposed changes

stability and some fixes

  1. fix s3 availability check
  2. add independent minio properties
  3. add job conf cache
  4. remove extra s3 propertie when convert catalog properties
  5. add some ut case to check conveted properties

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@wsjz
Copy link
Contributor Author

wsjz commented Jun 11, 2023

run buildall

@wsjz
Copy link
Contributor Author

wsjz commented Jun 14, 2023

run buildall

1 similar comment
@wsjz
Copy link
Contributor Author

wsjz commented Jun 14, 2023

run buildall

@Jibing-Li
Copy link
Contributor

I have no more comments, just fix the job conf cache refreshing problem.

@@ -153,6 +154,8 @@ public HivePartition load(PartitionCacheKey key) throws Exception {
* generate a filecache and set to fileCacheRef
*/
public void setNewFileCache() {
// init or refresh job conf
jobConf = getJobConf();
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if this change will bring race condition or not. Because the reference of jobConf in getFilesByTransaction and loadFiles may be changed at any time. But I don't think it's a big problem since the refresh frequency is very low.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

add synchronized for getJobConf to avoid this.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@wsjz
Copy link
Contributor Author

wsjz commented Jun 15, 2023

run buildall

1 similar comment
@morningman
Copy link
Contributor

run buildall

morningman
morningman previously approved these changes Jun 16, 2023
Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

@morningman
Copy link
Contributor

run buildall

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jun 16, 2023
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@wsjz
Copy link
Contributor Author

wsjz commented Jun 16, 2023

run buildall

Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

@morningman morningman merged commit 8af7731 into apache:master Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by one committer. dev/2.0-beta-merged reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants