influxdata / influxdata/influxdb-java
When using library only with udp, still need to provide address in http format
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.2k
- Forks
- 469
- PR merge metrics
- No merged PRs in 30d
Description
If I don't provide a URL with an "http://" prefix, I get a NullReferenceException.
This is not relevant for udp.
Using version 2.5.
The problem is in InfluxDBImpl:
return InetAddress.getByName(HttpUrl.parse(url).host());
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at InfluxDBImpl and inspect the InetAddress lookup using HttpUrl.parse(url). Check how UDP-only configuration reaches this call and verify that it no longer requires an HTTP-formatted address, while preserving valid HTTP URL handling. Confirm the behavior with the project's relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100