Skip to content

HDDS-11168. [hsync] Instantiates audit parameter lazily in DataNode dispatch handler#6933

Merged
jojochuang merged 1 commit intoapache:HDDS-7593from
jojochuang:HDDS-11168
Jul 16, 2024
Merged

HDDS-11168. [hsync] Instantiates audit parameter lazily in DataNode dispatch handler#6933
jojochuang merged 1 commit intoapache:HDDS-7593from
jojochuang:HDDS-11168

Conversation

@jojochuang
Copy link
Contributor

What changes were proposed in this pull request?

HDDS-11168. [hsync] Instantiates audit parameter lazily in DataNode dispatch handler

Please describe your PR in detail:

The profiler flamegraph shows audit parameters are created for every request even when they are not used. It's a small impact but it would be nice to remove the overhead. It is seen inside writeStateMachine() and applyTransaction()

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-11168

How was this patch tested?

Existing unit tests. There's no functional change.

…ispatch handler

Change-Id: I0595905b7ac238f38b35a618d499991542f34e1e
(cherry picked from commit 8ab92d0864dadf571a2ae6b89b7b7839025980d1)
@jojochuang jojochuang requested a review from smengcl July 12, 2024 17:46
@jojochuang jojochuang marked this pull request as ready for review July 12, 2024 21:42
@jojochuang jojochuang requested a review from duongkame July 12, 2024 21:42
Copy link
Contributor

@duongkame duongkame left a comment

Choose a reason for hiding this comment

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

Thanks @jojochuang for the patch. It makes sense to me. +1.

@jojochuang jojochuang merged commit e79dc66 into apache:HDDS-7593 Jul 16, 2024
@jojochuang
Copy link
Contributor Author

Thanks @duongkame. Merged.

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