influxdata / influxdata/influxdb-client-java
BucketsApiImpl.createBucket does not convey schemaType
Open
Nobody has claimed this yet.
bug
- Dominant language
- Java
- Stars
- 477
- Forks
- 129
- PR merge metrics
- No merged PRs in 30d
Description
Steps to reproduce:
List the minimal actions needed to reproduce the behavior.
- issue a
BucketsApi.createBucketrequest with aBucketobject havingschemaTypeexplicit - verify that the created bucket has schema type implicit
Expected behavior:
- Obviously one would expect the bucket to have explicit bucket schema type, not implicit
Actual behavior:
- The created bucket has implicit schema type
Problem lines of code
BucketsApiImpl.createBucketdoes not correctly invokePostBucketRequest.schemaTypeon the request object. (See code here.) So it is basically ignoring the schema type set on theBucketobject.
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 in client/src/main/java/com/influxdb/client/internal/BucketsApiImpl.java at createBucket and inspect how the Bucket is mapped to PostBucketRequest. Ensure the request conveys the Bucket schemaType so an explicit schema remains explicit, then verify the created bucket's schema type against the reproduction steps.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100