Skip to content
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

Implement maintenance methods #13

Merged
merged 2 commits into from
Jan 22, 2018
Merged

Implement maintenance methods #13

merged 2 commits into from
Jan 22, 2018

Conversation

magik6k
Copy link
Member

@magik6k magik6k commented Jan 13, 2018

No description provided.

@ghost ghost assigned magik6k Jan 13, 2018
@ghost ghost added the status/in-progress In progress label Jan 13, 2018
Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

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

One question but mostly LGTM.


func (m *measure) CollectGarbage() error {
defer recordLatency(m.gcLatency, time.Now())
m.gcNum.Inc()
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we only modify the metrics if we actually do a GC? That is, shouldn't these go inside the condition?

Copy link
Member Author

Choose a reason for hiding this comment

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

The count metrics are described as Total number of Datastore.[..] calls, so my reasoning was that we want to count number of method invocations, not what they are actually doing.

Copy link
Member

Choose a reason for hiding this comment

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

I see... Meh.

Copy link
Member

@whyrusleeping whyrusleeping left a comment

Choose a reason for hiding this comment

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

LGTM, merge at will

@magik6k magik6k force-pushed the feat/maintenance-methods branch from 7a90d29 to fa0f7cf Compare January 22, 2018 18:04
@magik6k
Copy link
Member Author

magik6k commented Jan 22, 2018

Rebased, merging to avoid further conflicts

@magik6k magik6k merged commit 596b002 into master Jan 22, 2018
@ghost ghost removed the status/in-progress In progress label Jan 22, 2018
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.

3 participants