DBClient & Core version 4.11.0 and possible write issue

Aperta
#498 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
csharp
Ambito
database

Direzione di ricerca

Riproduci il report con InfluxDB.Client 4.10.0 o 4.11.0 verso Influx Cloud, usando InfluxDBClientFactory.Create o il costruttore di InfluxDBClient e la chiamata GetWriteApi/WritePoint mostrata. Confronta il risultato con la versione 4.6.0; il lavoro è completato quando viene identificato il motivo per cui non appare alcun punto e viene confermata una scrittura o un errore segnalato con le versioni più recenti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Today i've come accross with the issue writing points to Influx Cloud using 4.10.0 & 4.11.0 (InfluxDB.Client & InfluxDB.Client.Core).
We were using 4.6.0 before the upgrade - everything is working fine with 4.6.0.

var influxDBClient = InfluxDBClientFactory.Create("url", "token");  
using (var writeApi = influxDBClient.GetWriteApi())
                    {
                        var point = PointData.Measurement("temperature")
                            .Tag("location", "west")
                            .Field("value", 1.0)
                            .Timestamp(DateTime.UtcNow.AddSeconds(-10), WritePrecision.Ns);
                        writeApi.WritePoint(point, "bucket_name", "org_id"); 
                    }
                    influxDBClient.Dispose();

Steps to reproduce:
I've tried with 4.11.0 and also changed the InfluxDBClientFactory.Create to the new method

 using var client = new InfluxDBClient("http://localhost:8086", Token);
  1. Install InfluxDB.Client (4.10.0 or 4.11.0)
  2. Run the code above
  3. We are using Influx Cloud, haven't tested the behaviour on OSS version

Expected behavior:
Points should be written to the bucket. -- Data should be present in InfluxDb bucket

Actual behavior:
No points written to Influx. No error / exception throw in the code.

Specifications:

  • Client Version: 4.10.0 or 4.11.0
  • InfluxDB Version: Influx Cloud
Lingua principale
C#
Stelle
377
Fork
93
Merge medio
9g 2h
PR unite (30g)
1

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di influxdata/influxdb-client-csharp

Tutte le issue di influxdata/influxdb-client-csharp

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.