influxdata / influxdb-java

Java client for InfluxDB
MIT License
1.19k stars 478 forks source link

question of test case: precision() #857

Open slzheng2017 opened 2 years ago

slzheng2017 commented 2 years ago

hello, i test the case precision() in src/test/java/org/influxdb/impl/BatchProcessorTest.java it should execute like below:

  1. CREATE DATABASE "write_unittest_1659064333553"
  2. CREATE RETENTION POLICY somePolicy ON write_unittest_1659064333553 DURATION 30h REPLICATION 2 DEFAULT
  3. POST /write?db=write_unittest_1659064333553&rp=somePolicy&precision=s&consistency=one the point
  4. DROP DATABASE "write_unittest_1659064333553"'

but, actually it execute look like image below

image

the drop action before the write action!

i don't know it is my fault or the case has some problem?

slzheng2017 commented 2 years ago

the server is influxdb@1.8.10

majst01 commented 2 years ago

Logging is not synchronous probably

slzheng2017 commented 2 years ago

Logging is not synchronous probably

i try tcpdump, the client request sequentially by drop action, and follower by write action

image

image

majst01 commented 2 years ago

Please show the java code which does this

slzheng2017 commented 2 years ago

Please show the java code which does this

code in src/test/java/org/influxdb/impl/BatchProcessorTest.java

the write point ahead image

finally delete database

image