Skip to content

Fix ZookeeperConfigWatcherRegister.readConfig() could cause NPE when data.getData() is null#7611

Merged
wu-sheng merged 1 commit into
apache:masterfrom
wankai123:dy-conf-zk-npe
Aug 31, 2021
Merged

Fix ZookeeperConfigWatcherRegister.readConfig() could cause NPE when data.getData() is null#7611
wu-sheng merged 1 commit into
apache:masterfrom
wankai123:dy-conf-zk-npe

Conversation

@wankai123
Copy link
Copy Markdown
Member

Fix ZookeeperConfigWatcherRegister.readConfig() could cause NPE when data.getData() is null

  • Add a unit test to verify that the fix works.

  • Explain briefly why the bug exists and how to fix it.

  • If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #.

  • Update the CHANGES log.

new String(data.getData()) could cause NPE, when clear data bytes or set data byte[] null.

@wankai123 wankai123 added bug Something isn't working and you are sure it's a bug! backend OAP backend related. labels Aug 31, 2021
Copy link
Copy Markdown
Member

@wu-sheng wu-sheng left a comment

Choose a reason for hiding this comment

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

Thanks.

@wu-sheng wu-sheng added this to the 8.8.0 milestone Aug 31, 2021
@wu-sheng wu-sheng merged commit 313edd3 into apache:master Aug 31, 2021
wu-sheng added a commit that referenced this pull request Aug 31, 2021
* master: (41 commits)
  Fix `ZookeeperConfigWatcherRegister.readConfig()` could cause `NPE` when `data.getData()` is null (#7611)
  Fix dynamic configuration watch implementation current value not null when the config is deleted. (#7606)
  Fix CI job `check-dependency-license` failure (#7601)
  Support configure sampling rate dynamically for service dimension on the backend side (#7554)
  Use new GitHub issue form template (#7604)
  Refine backend doc (#7595)
  Update mal.md (#7596)
  Update menu.yml (#7594)
  Remove menu of java agent doc. (#7593)
  Remove agent codes and clean up (#7588)
  refine backend doc (#7587)
  Doc: Reorganize dynamic configuration doc (#7586)
  sync ui and update CHANGES log (#7585)
  Fix issue#7527, add desc sort function in IBrowserLogQueryDAO of H2 and ES (#7580)
  Move shardingsphere plugins into one folder (#7546)
  Escape `.` in `String.replaceFirst` as it acts as a wildcard (#7576)
  Fix dead link (#7575)
  Support k8s configmap grouped dynamic configurations (#7570)
  Fix dead link (#7560)
  refine backend doc (#7559)
  ...
@wankai123 wankai123 deleted the dy-conf-zk-npe branch August 31, 2021 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend OAP backend related. bug Something isn't working and you are sure it's a bug!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants