-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Improve scaling speed and some cleanup #18005
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
Changes from all commits
bd8e4c3
509578a
09877ea
7b1ee3f
60c5128
fb6103e
a452278
eebb78e
2177eca
4806376
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,6 +90,7 @@ public class OperatorContext | |
| private final AtomicReference<Metrics> metrics = new AtomicReference<>(Metrics.EMPTY); // this is not incremental, but gets overwritten by the latest value. | ||
| private final AtomicReference<Metrics> connectorMetrics = new AtomicReference<>(Metrics.EMPTY); // this is not incremental, but gets overwritten by the latest value. | ||
|
|
||
| private final AtomicLong writerInputDataSize = new AtomicLong(); | ||
| private final AtomicLong physicalWrittenDataSize = new AtomicLong(); | ||
|
|
||
| private final AtomicReference<SettableFuture<Void>> memoryFuture; | ||
|
|
@@ -245,6 +246,11 @@ public void setFinishedFuture(ListenableFuture<Void> finishedFuture) | |
| checkState(this.finishedFuture.getAndSet(requireNonNull(finishedFuture, "finishedFuture is null")) == null, "finishedFuture already set"); | ||
| } | ||
|
|
||
| public void recordWriterInputDataSize(long sizeInBytes) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need extra methods for this? I think this value is just same as
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can do this. However, then we have to sum |
||
| { | ||
| writerInputDataSize.getAndAdd(sizeInBytes); | ||
| } | ||
|
|
||
| public void recordPhysicalWrittenData(long sizeInBytes) | ||
| { | ||
| physicalWrittenDataSize.getAndAdd(sizeInBytes); | ||
|
|
@@ -485,6 +491,11 @@ public CounterStat getOutputPositions() | |
| return outputPositions; | ||
| } | ||
|
|
||
| public long getWriterInputDataSize() | ||
| { | ||
| return writerInputDataSize.get(); | ||
| } | ||
|
|
||
| public long getPhysicalWrittenDataSize() | ||
| { | ||
| return physicalWrittenDataSize.get(); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.