Skip to content

point updates don't work on 0.12,0 and 0.12.1 - after few hours #6439

Closed
@sonneym

Description

update point doesn't work after a few hours on 0.12.1 stable

example:

(create database:)

curl -G http://localhost:8086/query --data-urlencode "q=CREATE DATABASE mydb" 

(add point:)

curl -i -XPOST 'http://localhost:8086/write?db=mydb' -d 'cpu,host=server01 value=0.64'

(update it and check. Note: you will have to change the value of timeuid 1461207718937586169 to the one that's correct for you)

curl -X POST 'http://localhost:8086/write?db=mydb' --data-binary 'cpu,host=server01 value=0.67 1461207718937586169'

curl -G http://localhost:8086/query?pretty=true --data-urlencode "db=mydb" --data-urlencode "q=select * from cpu" 

result is good:

{
    "results": [
        {
            "series": [
                {
                    "name": "cpu",
                    "columns": [
                        "time",
                        "host",
                        "value"
                    ],
                    "values": [
                        [
                            "2016-04-21T03:01:58.937586169Z",
                            "server01",
                            0.67
                        ]
                    ]
                }
            ]
        }
    ]

(leave if for about 5-8 hrs, then try to update again)


curl -X POST 'http://localhost:8086/write?db=mydb' --data-binary 'cpu,host=server01 value=0.70 1461207718937586169'

curl -G http://localhost:8086/query?pretty=true --data-urlencode "db=mydb" --data-urlencode "q=select * from cpu" 

result is bad with old value:

{
    "results": [
        {
            "series": [
                {
                    "name": "cpu",
                    "columns": [
                        "time",
                        "host",
                        "value"
                    ],
                    "values": [
                        [
                            "2016-04-21T03:01:58.937586169Z",
                            "server01",
                            0.67
                        ]
                    ]
                }
            ]
        }
    ]
}

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions