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

ORC-1480: [C++] Fix build break w/ BUILD_CPP_ENABLE_METRICS=ON #1646

Closed
wants to merge 1 commit into from

Conversation

wgtmac
Copy link
Member

@wgtmac wgtmac commented Nov 2, 2023

What changes were proposed in this pull request?

Pass IOCount to SCOPED_STOPWATCH when counting I/Os.

Why are the changes needed?

SCOPED_STOPWATCH macro was not correctly called when counting I/Os. This breaks build when BUILD_CPP_ENABLE_METRICS is set to ON and fails the unit test as well.

How was this patch tested?

Failed test cases are fixed and all cases pass.

@wgtmac wgtmac requested a review from coderex2522 November 2, 2023 02:15
@github-actions github-actions bot added the CPP label Nov 2, 2023
@wgtmac
Copy link
Member Author

wgtmac commented Nov 2, 2023

cc @ffacs @coderex2522

@ffacs
Copy link
Contributor

ffacs commented Nov 2, 2023

LGTM

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM.

@dongjoon-hyun dongjoon-hyun added this to the 2.0.0 milestone Nov 2, 2023
@wgtmac
Copy link
Member Author

wgtmac commented Nov 3, 2023

Thank you @ffacs and @dongjoon-hyun !

@wgtmac wgtmac closed this in 7c83925 Nov 3, 2023
wgtmac added a commit that referenced this pull request Nov 3, 2023
### What changes were proposed in this pull request?
Pass IOCount to SCOPED_STOPWATCH when counting I/Os.

### Why are the changes needed?
SCOPED_STOPWATCH macro was not correctly called when counting I/Os. This breaks build when BUILD_CPP_ENABLE_METRICS is set to ON and fails the unit test as well.

### How was this patch tested?
Failed test cases are fixed and all cases pass.

Closes #1646 from wgtmac/ORC-1480.

Authored-by: Gang Wu <ustcwg@gmail.com>
Signed-off-by: Gang Wu <ustcwg@gmail.com>
(cherry picked from commit 7c83925)
Signed-off-by: Gang Wu <ustcwg@gmail.com>
@wgtmac
Copy link
Member Author

wgtmac commented Nov 3, 2023

I have also backported it into branch-1.9

cxzl25 pushed a commit to cxzl25/orc that referenced this pull request Jan 11, 2024
### What changes were proposed in this pull request?
Pass IOCount to SCOPED_STOPWATCH when counting I/Os.

### Why are the changes needed?
SCOPED_STOPWATCH macro was not correctly called when counting I/Os. This breaks build when BUILD_CPP_ENABLE_METRICS is set to ON and fails the unit test as well.

### How was this patch tested?
Failed test cases are fixed and all cases pass.

Closes apache#1646 from wgtmac/ORC-1480.

Authored-by: Gang Wu <ustcwg@gmail.com>
Signed-off-by: Gang Wu <ustcwg@gmail.com>
@wgtmac wgtmac deleted the ORC-1480 branch February 27, 2024 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants