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

Issue 12645: Pulsar Functions: detect .nar files and prevent spammy logs on functions boot [branch-2.7] #12665

Merged
merged 1 commit into from
Nov 9, 2021

Conversation

eolivelli
Copy link
Contributor

Master Issue: #12645

Motivation

When Pulsar loads .jar file, it tries to unpack it a .nar and then it prints out the stack trace in #12645, that is very misleading.

Modifications

Detect the fact that we are going to load a .nar file, and do not try to unpack it if it is clear that it is not a .nar file.
We are going to preserve partially the previous behaviour and in case of FileNotFound we fallback to loading the file as .jar file as before.

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:

Documentation

Check the box below and label this PR (if you have committer privilege).

Need to update docs?

  • no-need-doc

    It is a small enhancement in logging

Copy link
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

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

LGTM

@lhotari lhotari added area/function type/bug The PR fixed a bug or issue reported a bug labels Nov 8, 2021
@lhotari lhotari added doc-not-needed Your PR changes do not impact docs release/2.7.4 labels Nov 8, 2021
@lhotari lhotari changed the title Issue 12645: Pulsar Functions: detect .nar files and prevent spammy logs on functions boot Issue 12645: Pulsar Functions: detect .nar files and prevent spammy logs on functions boot [branch-2.7] Nov 8, 2021
@codelipenghui codelipenghui modified the milestones: 2.9.0, 2.10.0 Nov 9, 2021
@eolivelli eolivelli merged commit 48ee424 into apache:branch-2.7 Nov 9, 2021
@codelipenghui codelipenghui added the cherry-picked/branch-2.7 Archived: 2.7 is end of life label Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/function cherry-picked/branch-2.7 Archived: 2.7 is end of life doc-not-needed Your PR changes do not impact docs release/2.7.4 type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants