Skip to content

[Bookie] Fallback to PULSAR_GC if BOOKIE_GC is not defined#9621

Merged
merlimat merged 1 commit intoapache:masterfrom
lhotari:lh-bookie-gc
Feb 19, 2021
Merged

[Bookie] Fallback to PULSAR_GC if BOOKIE_GC is not defined#9621
merlimat merged 1 commit intoapache:masterfrom
lhotari:lh-bookie-gc

Conversation

@lhotari
Copy link
Copy Markdown
Member

@lhotari lhotari commented Feb 19, 2021

Motivation

Modifications

Change conf/bkenv.sh to handle BOOKIE_GC similarly as BOOKIE_MEM is handled, falling back to PULSAR_*.

- Currently Bookies fallback to PULSAR_MEM if BOOKIE_MEM isn't set (apache#6201).
  For consistency, it's useful to fallback to PULSAR_GC if BOOKIE_GC
  isn't set.
@lhotari
Copy link
Copy Markdown
Member Author

lhotari commented Feb 19, 2021

/pulsarbot run-failure-checks

Copy link
Copy Markdown
Contributor

@eolivelli eolivelli 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
Copy link
Copy Markdown
Member Author

lhotari commented Apr 27, 2021

@eolivelli This and #10397 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.

eolivelli pushed a commit that referenced this pull request Apr 27, 2021
- Currently Bookies fallback to PULSAR_MEM if BOOKIE_MEM isn't set (#6201).
  For consistency, it's useful to fallback to PULSAR_GC if BOOKIE_GC
  isn't set.
@eolivelli eolivelli added cherry-picked/branch-2.7 Archived: 2.7 is end of life release/2.7.2 labels Apr 27, 2021
@eolivelli
Copy link
Copy Markdown
Contributor

@lhotari I have cherry picked to branch-2.7, it will be available on 2.7.2

codelipenghui 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 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.
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