influxdata / influxdata/influxdb-client-java

BucketsApiImpl.createBucket does not convey schemaType

Open
#572 1 comment 0 reactions 0 assignees View on GitHub

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.

  1. issue a BucketsApi.createBucket request with a Bucket object having schemaType explicit
  2. 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.createBucket does not correctly invoke PostBucketRequest.schemaType on the request object. (See code here.) So it is basically ignoring the schema type set on the Bucket object.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.