Skip to content

SAMZA-2563: Fix double counting of InMemoryKeyValueStore deletion#1458

Merged
mynameborat merged 1 commit intoapache:masterfrom
ZitingShen-li:doublecount
Feb 4, 2021
Merged

SAMZA-2563: Fix double counting of InMemoryKeyValueStore deletion#1458
mynameborat merged 1 commit intoapache:masterfrom
ZitingShen-li:doublecount

Conversation

@ZitingShen
Copy link
Contributor

Symptom: Calling InMemoryKeyValueStore.delete will double count the deletes in metrics.

Cause: InMemoryKeyValueStore.delete is implemented by calling InMemoryKeyValueStore.put with a null value. InMemoryKeyValueStore.delete explicitly increments the delete metric. InMemoryKeyValueStore.put also explicitly increments the delete metric when passed a null value.

Changes: Remove incrementing the delete metric in InMemoryKeyValueStore.delete

Test: unit tests

@ZitingShen ZitingShen marked this pull request as ready for review February 2, 2021 23:53
@mynameborat mynameborat merged commit 4e7154f into apache:master Feb 4, 2021
@ZitingShen ZitingShen deleted the doublecount branch February 4, 2021 18:36
tranjith pushed a commit to tranjith/samza that referenced this pull request Mar 23, 2021
…ache#1458)

Symptom: Calling InMemoryKeyValueStore.delete will double count the deletes in metrics.

Cause: InMemoryKeyValueStore.delete is implemented by calling InMemoryKeyValueStore.put with a null value. InMemoryKeyValueStore.delete explicitly increments the delete metric. InMemoryKeyValueStore.put also explicitly increments the delete metric when passed a null value.

Changes: Remove incrementing the delete metric in InMemoryKeyValueStore.delete
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.

2 participants