Skip to content

Fix hbase onConstruct NPE in the file configuration scenario#602

Merged
wu-sheng merged 1 commit intoapache:mainfrom
shichaoyuan:bugfix-htable-construct-npe
Sep 1, 2023
Merged

Fix hbase onConstruct NPE in the file configuration scenario#602
wu-sheng merged 1 commit intoapache:mainfrom
shichaoyuan:bugfix-htable-construct-npe

Conversation

@shichaoyuan
Copy link
Contributor

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

@wu-sheng wu-sheng added the bug Something isn't working label Aug 31, 2023
@wu-sheng wu-sheng added this to the 9.1.0 milestone Aug 31, 2023
@@ -0,0 +1,2063 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Member

Choose a reason for hiding this comment

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

What is this file for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What is this file for?

Configuration configuration = HBaseConfiguration.create();

If I use this api then the file hbase-default.xml will be read by default.

This file contains hbase related configuration.

@wu-sheng
Copy link
Member

Please explain why NPE happens. The code changes are not clear about the reason.

@shichaoyuan
Copy link
Contributor Author

Please explain why NPE happens. The code changes are not clear about the reason.

There are two ways to initialize hbase configuration:

  1. hbase-default.xml
  2. set(String name, String value) method

The first method will not write to the overlay field.

@wu-sheng
Copy link
Member

wu-sheng commented Sep 1, 2023

Look good to me. Notice, the 9.0 is out tomorrow, so, this has been added into the new release(9.1)

@wu-sheng wu-sheng merged commit bc7447a into apache:main Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants