Skip to content

Conversation

@xinghuayu007
Copy link
Contributor

@xinghuayu007 xinghuayu007 commented Apr 30, 2021

Proposed changes

When the Doris system is on OOM continuly caused by stream load/broker load, we has no method to handle stream load /broker load. Therefore, this PR add four configs to have a influnce on stream load, broker load, truncate table, alter table.

Types of changes

What types of changes does your code introduce to Doris?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)
  • Code refactor (Modify the code structure, format the code, etc...)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have created an issue on (Fix #ISSUE) and described the bug/feature there in detail
  • Compiling and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • If these changes need document changes, I have updated the document
  • Any dependent changes have been merged

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...

public static boolean disable_truncate_table = false;

@ConfField(mutable = true)
public static boolean disable_stream_load = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can create an array config to do this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea. Array config is easy to be extended and can reduce too much configs.

@xinghuayu007 xinghuayu007 force-pushed the switch_for_alter_load_truncate branch from 583d86b to 321b479 Compare May 10, 2021 12:11
* It can be extended to add more disable operations
*/
@ConfField(mutable = true, comment = "disable_alter_table, disable_broker_load, disable_truncate_table, disable_stream_load")
public static boolean[] disable_config = new boolean[4];
Copy link
Contributor

Choose a reason for hiding this comment

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

why not using string array to make it more readable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It has been modified to string array.

@xinghuayu007 xinghuayu007 force-pushed the switch_for_alter_load_truncate branch 2 times, most recently from b03e926 to 401cc1a Compare May 13, 2021 11:35
@xinghuayu007 xinghuayu007 force-pushed the switch_for_alter_load_truncate branch from 401cc1a to a511e22 Compare May 13, 2021 11:37
yiguolei pushed a commit to yiguolei/incubator-doris that referenced this pull request Dec 30, 2025
… requires all window expressions are in the same order apache#56622 (apache#5752)

cherry-picks from apache#56622
Related to apache#5098

Co-authored-by: minghong <zhouminghong@selectdb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants