Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question of test case: precision() #857

Open
slzheng2017 opened this issue Jul 29, 2022 · 5 comments
Open

question of test case: precision() #857

slzheng2017 opened this issue Jul 29, 2022 · 5 comments

Comments

@slzheng2017
Copy link

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
Copy link
Author

the server is influxdb@1.8.10

@majst01
Copy link
Collaborator

majst01 commented Jul 29, 2022

Logging is not synchronous probably

@slzheng2017
Copy link
Author

Logging is not synchronous probably

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

image

image

@majst01
Copy link
Collaborator

majst01 commented Jul 29, 2022

Please show the java code which does this

@slzheng2017
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants