influxdb-java icon indicating copy to clipboard operation
influxdb-java copied to clipboard

question of test case: precision()

Open slzheng2017 opened this issue 3 years ago • 5 comments

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 avatar Jul 29 '22 03:07 slzheng2017

the server is [email protected]

slzheng2017 avatar Jul 29 '22 03:07 slzheng2017

Logging is not synchronous probably

majst01 avatar Jul 29 '22 05:07 majst01

Logging is not synchronous probably

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

image

image

slzheng2017 avatar Jul 29 '22 07:07 slzheng2017

Please show the java code which does this

majst01 avatar Jul 29 '22 08:07 majst01

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

slzheng2017 avatar Jul 29 '22 13:07 slzheng2017