Skip to content

[Issue 10161] Fix missing LoggerFactoryPtr type. - #10164

Merged
codelipenghui merged 1 commit into
apache:masterfrom
astifter:branch-2.7
May 21, 2021
Merged

[Issue 10161] Fix missing LoggerFactoryPtr type.#10164
codelipenghui merged 1 commit into
apache:masterfrom
astifter:branch-2.7

Conversation

@astifter

@astifter astifter commented Apr 7, 2021

Copy link
Copy Markdown
Contributor

Fixes #10161.

Motivation

With issue #7132 the LoggerFactoryPtr was removed in favour of relevant memory-safe(r) pointers.

This change forgot to also change the Log4Cxx implementation, fix this by returning (as with
the other LoggerFactory's) a std::unique_ptr.

Modifications

Change remaining LoggerFactoryPtr in Log4Cxx factory to std::unique_ptr to conform to #7132.

Verifying this change

@merlimat merlimat added this to the 2.8.0 milestone Apr 7, 2021
@astifter

astifter commented Apr 7, 2021

Copy link
Copy Markdown
Contributor Author

@merlimat You wan't to base this on master?

@merlimat

Copy link
Copy Markdown
Contributor

@astifter Yes, the PR should be targeting master. Once it's merged then it will be cherry picked for on the 2.7 branch

@eolivelli

Copy link
Copy Markdown
Contributor

@astifter can you send a PR for master branch ?
I am going to cut 2.7.2 release as soon as possible, it would be a pity to not include this patch.

@eolivelli eolivelli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I am commenting with "Request changes" in order to clarify the status of this patch

With issue #7132 the LoggerFactoryPtr was removed in favour of relevant memory-safe(r) pointers.

This change forgot to also change the Log4Cxx implementation, fix this by returning (as with
the other LoggerFactory's) a std::unique_ptr<LoggerFactory>.
@astifter
astifter changed the base branch from branch-2.7 to master April 29, 2021 19:24
@astifter

Copy link
Copy Markdown
Contributor Author

Sorry, missed the deadline for 2.7.2, but I have rebased the change on master.

@Anonymitaet

Copy link
Copy Markdown
Member

@astifter thanks for your code work. For this PR, do we need to update docs?

@astifter

Copy link
Copy Markdown
Contributor Author

@astifter thanks for your code work. For this PR, do we need to update docs?

No, this just fixes the compile.

@BewareMyPower BewareMyPower left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@BewareMyPower

Copy link
Copy Markdown
Contributor

LGTM. This bug was not exposed because CI only build cpp client with USE_LOG4CXX=OFF.

@eolivelli

Copy link
Copy Markdown
Contributor

I misunderstood, the name of the branch on your repo is "branch-2.7" but the target branch is "master"

@codelipenghui
codelipenghui merged commit d700f8d into apache:master May 21, 2021
@astifter

Copy link
Copy Markdown
Contributor Author

I misunderstood, the name of the branch on your repo is "branch-2.7" but the target branch is "master"

Yes, sorry about that. I was working of the 2.7 branch and didn't pay attention. I couldn't change the branch easily so I kept the name. Promise to be more careful in the future.

yangl pushed a commit to yangl/pulsar that referenced this pull request Jun 23, 2021
Fixes apache#10161.

### Motivation

With issue apache#7132 the LoggerFactoryPtr was removed in favour of relevant memory-safe(r) pointers.

This change forgot to also change the Log4Cxx implementation, fix this by returning (as with
the other LoggerFactory's) a std::unique_ptr<LoggerFactory>.
codelipenghui pushed a commit that referenced this pull request Jun 26, 2021
Fixes #10161.

### Motivation

With issue #7132 the LoggerFactoryPtr was removed in favour of relevant memory-safe(r) pointers.

This change forgot to also change the Log4Cxx implementation, fix this by returning (as with
the other LoggerFactory's) a std::unique_ptr<LoggerFactory>.

(cherry picked from commit d700f8d)
@codelipenghui codelipenghui added the cherry-picked/branch-2.7 Archived: 2.7 is end of life label Jun 26, 2021
bharanic-dev pushed a commit to bharanic-dev/pulsar that referenced this pull request Mar 18, 2022
Fixes apache#10161.

### Motivation

With issue apache#7132 the LoggerFactoryPtr was removed in favour of relevant memory-safe(r) pointers.

This change forgot to also change the Log4Cxx implementation, fix this by returning (as with
the other LoggerFactory's) a std::unique_ptr<LoggerFactory>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pulsar 2.7.1 doesn't build with USE_LOG4CXX=ON

7 participants