Skip to content

Create cost autoscaler documentation, cleanup stream supervisor tests#18904

Merged
cryptoe merged 3 commits intoapache:masterfrom
Fly-Style:test-small-cleanup-1
Jan 13, 2026
Merged

Create cost autoscaler documentation, cleanup stream supervisor tests#18904
cryptoe merged 3 commits intoapache:masterfrom
Fly-Style:test-small-cleanup-1

Conversation

@Fly-Style
Copy link
Copy Markdown
Contributor

@Fly-Style Fly-Style commented Jan 12, 2026

Description

This patch creates missing cost-based autoscaler documentation and makes a cleanup in stream supervisor's test directory, as discussed here, but with small adjustment: I decided to not to merge changed test classes, because having them separated seems more cleaner; also it follows 'separation of concens' principle, which I respect a lot.

This PR has:

  • been self-reviewed.

@Override
protected OrderedSequenceNumber<String> makeSequenceNumber(String seq, boolean isExclusive)
{
return new OrderedSequenceNumber<>(seq, isExclusive)

Check warning

Code scanning / CodeQL

Inconsistent compareTo Warning test

This class declares
compareTo
but inherits equals; the two could be inconsistent.
EasyMock.expect(spec.getId()).andReturn(SUPERVISOR).anyTimes();
EasyMock.expect(spec.getSupervisorStateManagerConfig()).andReturn(supervisorConfig).anyTimes();
EasyMock.expect(spec.getDataSchema()).andReturn(getDataSchema()).anyTimes();
EasyMock.expect(spec.getDataSchema()).andReturn(getDataSchema(DATASOURCE)).anyTimes();

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
SeekableStreamSupervisorSpec.getDataSchema
should be avoided because it has been deprecated.
Copy link
Copy Markdown
Contributor

@kfaraz kfaraz left a comment

Choose a reason for hiding this comment

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

Looks good, minor doc suggestions.

Comment thread docs/ingestion/supervisor.md Outdated
Comment thread docs/ingestion/supervisor.md Outdated
Comment thread docs/ingestion/supervisor.md Outdated
@Fly-Style
Copy link
Copy Markdown
Contributor Author

Fly-Style commented Jan 12, 2026

@kfaraz or @clintropolis I will be grateful if you re-try this silly failed job. Thank you so much!

@cryptoe cryptoe merged commit 69eb43a into apache:master Jan 13, 2026
95 of 99 checks passed
@kgyrtkirk kgyrtkirk added this to the 37.0.0 milestone Jan 20, 2026
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.

5 participants