Skip to content

fix supervisor auto scaler config serde bug#12317

Merged
clintropolis merged 1 commit intoapache:masterfrom
pjain1:supervisor_auto_scaling_bug
Mar 10, 2022
Merged

fix supervisor auto scaler config serde bug#12317
clintropolis merged 1 commit intoapache:masterfrom
pjain1:supervisor_auto_scaling_bug

Conversation

@pjain1
Copy link
Member

@pjain1 pjain1 commented Mar 8, 2022

Description

Supervisor auto scaler config becomes null on coordinator restart. This is because SeekableStreamSupervisorIOConfig has property autoScalerConfig but the getter is called getAutoscalerConfig so while serializing the property name becomes autoscalerConfig with small case s and therefore while deserialzing autoScalerConfig becomes null. This PR fixes the spelling of getter. Also added proper formatting for SeekableStreamSupervisorSpecTest class.

Key changed/added classes in this PR
  • SeekableStreamSupervisorIOConfig
  • KafkaSupervisorIOConfigTest

This PR has:

  • been self-reviewed.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.

@pjain1 pjain1 requested a review from zhangyue19921010 March 8, 2022 04:23
@zhangyue19921010
Copy link
Contributor

Ack. Will review ASAP Thanks for this patch.

Copy link
Member

@nishantmonu51 nishantmonu51 left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@zhangyue19921010 zhangyue19921010 left a comment

Choose a reason for hiding this comment

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

LTGM We could land it once tested passed. Thanks for this patch!

@clintropolis clintropolis merged commit 2efb74f into apache:master Mar 10, 2022
@pjain1 pjain1 deleted the supervisor_auto_scaling_bug branch March 10, 2022 03:26
TSFenwick pushed a commit to TSFenwick/druid that referenced this pull request Apr 11, 2022
@abhishekagarwal87 abhishekagarwal87 added this to the 0.23.0 milestone May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants