Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

add back METRIC_BYTES_TO_INSTANCES_LOST#2037

Closed
huijunwu wants to merge 1 commit into
apache:masterfrom
huijunwu:METRIC_BYTES_TO_INSTANCES_LOST
Closed

add back METRIC_BYTES_TO_INSTANCES_LOST#2037
huijunwu wants to merge 1 commit into
apache:masterfrom
huijunwu:METRIC_BYTES_TO_INSTANCES_LOST

Conversation

@huijunwu
Copy link
Copy Markdown
Member

@huijunwu huijunwu commented Jul 7, 2017

Related to #1908

Add back metrics:
METRIC_BYTES_TO_INSTANCES_LOST

@huijunw huijunw changed the title add METRIC_BYTES_TO_INSTANCES_LOST add back METRIC_BYTES_TO_INSTANCES_LOST Jul 7, 2017
LOG(ERROR) << "task_id " << _task_id << " has not yet connected to us. Dropping..."
<< std::endl;
LOG(ERROR) << "task_id " << _task_id << " has not yet connected to us. Dropping...";
stmgr_server_metrics_->scope(METRIC_BYTES_TO_INSTANCES_LOST)->incr_by(_message.ByteSize());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

CachedByteSize?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I did not find the CachedByteSize() in protobuf.
There is SpaceUsed() which is noticeably slower than ByteSize()

@huijunw
Copy link
Copy Markdown
Contributor

huijunw commented Jul 8, 2017

moved to #2035

@huijunw huijunw closed this Jul 8, 2017
@huijunwu huijunwu deleted the METRIC_BYTES_TO_INSTANCES_LOST branch August 21, 2018 09:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants