Skip to content

[Bookie] Fallback to PULSAR_EXTRA_OPTS if BOOKIE_EXTRA_OPTS isn't defined#10397

Merged
codelipenghui merged 1 commit intoapache:masterfrom
lhotari:lh-bookie-should-fallback-to-PULSAR_EXTRA_OPTS
Apr 28, 2021
Merged

[Bookie] Fallback to PULSAR_EXTRA_OPTS if BOOKIE_EXTRA_OPTS isn't defined#10397
codelipenghui merged 1 commit intoapache:masterfrom
lhotari:lh-bookie-should-fallback-to-PULSAR_EXTRA_OPTS

Conversation

@lhotari
Copy link
Copy Markdown
Member

@lhotari lhotari commented Apr 27, 2021

Motivation

Modifications

  • fallback to PULSAR_EXTRA_OPTS if BOOKIE_EXTRA_OPTS isn't defined

  • don't pass -Dio.netty.* system properties if PULSAR_EXTRA_OPTS or
    BOOKIE_EXTRA_OPTS is set

    • this is to be consistent with PULSAR_EXTRA_OPTS behavior and
      to prevent duplicate properties
    • add -Dio.netty.leakDetectionLevel=disabled unless BOOKIE_EXTRA_OPTS
      is set since PULSAR_EXTRA_OPTS doesn't include that setting by default.
      (simple is the default if the property isn't set)

Other context

…ined

- don't pass -Dio.netty.* system properties if PULSAR_EXTRA_OPTS or
  BOOKIE_EXTRA_OPTS is set
  - this is to be consistent with PULSAR_EXTRA_OPTS behavior and
    to prevent duplicate properties
  - add "-Dio.netty.leakDetectionLevel=disabled" unless BOOKIE_EXTRA_OPTS
    is set since PULSAR_EXTRA_OPTS doesn't include that setting by default

- apache#9469 introduced a breaking change by changing the behavior
@lhotari
Copy link
Copy Markdown
Member Author

lhotari commented Apr 27, 2021

@eolivelli This and #9621 is needed in 2.7.2 because #9469 in 2.7.1 causes issues for users upgrading to 2.7.x . There's a slack discussion about it.

@lhotari
Copy link
Copy Markdown
Member Author

lhotari commented Apr 28, 2021

@codelipenghui @Renkai @eolivelli @murong00 @sijie @addisonj Please review. This is a follow up to #9469 since it breaks backwards compatibility for Pulsar users that are upgrading to Pulsar 2.7.1.

@codelipenghui codelipenghui added this to the 2.8.0 milestone Apr 28, 2021
@codelipenghui codelipenghui merged commit 212ad48 into apache:master Apr 28, 2021
eolivelli pushed a commit that referenced this pull request Apr 28, 2021
…ined (#10397)

### Motivation

- #9469 introduced a breaking change by changing the behavior . This change was part of 2.7.1 release.

### Modifications

- fallback to `PULSAR_EXTRA_OPTS` if `BOOKIE_EXTRA_OPTS` isn't defined

- don't pass `-Dio.netty.*` system properties if `PULSAR_EXTRA_OPTS` or
  `BOOKIE_EXTRA_OPTS` is set
  - this is to be consistent with `PULSAR_EXTRA_OPTS` behavior and
    to prevent duplicate properties
  - add `-Dio.netty.leakDetectionLevel=disabled` unless `BOOKIE_EXTRA_OPTS`
    is set since `PULSAR_EXTRA_OPTS` doesn't include that setting by default.
   (`simple` is the default if the property isn't set)

### Other context

- It is also necessary to cherry-pick #9621 to restore backwards compatibility in 2.7.x branch.
@eolivelli eolivelli added the cherry-picked/branch-2.7 Archived: 2.7 is end of life label Apr 28, 2021
@eolivelli
Copy link
Copy Markdown
Contributor

@lhotari
cherry picked to branch-2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked/branch-2.7 Archived: 2.7 is end of life release/2.7.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants