[ 
https://issues.apache.org/jira/browse/PHOENIX-5980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17676857#comment-17676857
 ] 

Viraj Jasani edited comment on PHOENIX-5980 at 1/14/23 6:59 AM:
----------------------------------------------------------------

[~mnpoonia] thanks for the PR, merged it to master branch. Since it is not 
directly applied, can you please also create PR for 5.1 branch?

Once PR for 5.1 branch is created and merged, will update fix version of the 
Jira. Until then, let me mark the Jira fixed for 5.2.0 as we have the change 
committed to master branch.


was (Author: vjasani):
[~mnpoonia] thanks for the PR, merged it to master branch. Since it is not 
directly applied, can you please also create PR for 5.1 branch?

> MUTATION_BATCH_FAILED_SIZE metric is incorrectly updated for failing delete 
> mutations
> -------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-5980
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5980
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.15.0
>            Reporter: Chinmay Kulkarni
>            Assignee: Aman Poonia
>            Priority: Major
>              Labels: metrics, phoenix-hardening, quality-improvement
>             Fix For: 5.2.0
>
>
> In the conn.commit() path, we get the number of mutations that failed to be 
> committed in the catch block of MutationState.sendMutations() (see 
> [here|https://github.com/apache/phoenix/blob/dcc88af8acc2ba8df10d2e9d498ab3646fdf0a78/phoenix-core/src/main/java/org/apache/phoenix/execute/MutationState.java#L1195-L1198]).
>  
> In case of delete mutations, the uncommittedStatementIndexes.length always 
> resolves to 1 and we always update the metric value by 1 in this case, even 
> though the actual mutation list corresponds to multiple DELETE mutations 
> which failed. In case of upserts, using unCommittedStatementIndexes.length is 
> fine since each upsert query corresponds to 1 Put. We should fix the logic 
> for deletes/mixed delete + upsert mutation batch failures.
> This wrong value is propagated to global client metrics as well as 
> MutationMetricQueue metrics.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to