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

stats should not count expired vertex\edge data #4696

Closed
nebula-bots opened this issue Oct 8, 2022 · 1 comment
Closed

stats should not count expired vertex\edge data #4696

nebula-bots opened this issue Oct 8, 2022 · 1 comment
Labels
affects/none PR/issue: this bug affects none version. auto-sync find/automation process/done Process of bug severity/minor Severity of bug type/bug Type: something is unexpected wontfix Solution: this will not be worked on recently
Milestone

Comments

@nebula-bots
Copy link
Contributor

Your Environments (required)
image

How To Reproduce(required)

  • Background
Given create a space with following options:
            | partition_num  | 9                |
            | replica_factor | 1                |
            | vid_type       | FIXED_STRING(30) |
            | charset        | utf8             |
            | collate        | utf8_bin         |
        And executing query:
            """
            CREATE TAG player(name string, age int, update_time timestamp DEFAULT now())TTL_DURATION= 10, TTL_COL = "update_time";
            CREATE TAG team(name string);
            CREATE EDGE follow(start_time timestamp DEFAULT now(), degree int)TTL_DURATION= 10, TTL_COL = "start_time";;
            CREATE EDGE serve(start_year int, end_year int);
            CREATE TAG INDEX player_index_1 ON player(name(10),age);
            CREATE EDGE INDEX follow_index_1 ON follow(start_time);
            """
        And retry executing query:
            """
            INSERT VERTEX player(name, age) VALUES "player100":("Tim Duncan", 42);
            INSERT VERTEX player(name, age) VALUES "player101":("Tony Parker", 36);
            INSERT VERTEX player(name, age) VALUES "player102":("LaMarcus Aldridge", 33);
            INSERT VERTEX team(name) VALUES "team203":("Trail Blazers"), "team204":("Spurs");
            INSERT EDGE follow(degree) VALUES "player101" -> "player100":(95);
            INSERT EDGE follow(degree) VALUES "player101" -> "player102":(90);
            INSERT EDGE follow(degree) VALUES "player102" -> "player100":(75);
            INSERT EDGE serve(start_year, end_year) VALUES "player101" -> "team204":(1999, 2018),"player102" -> "team203":(2006,  2015);
            """
  • View stats data before expiration
submit job stats;
show stats;

image

  • When sleep 11 s, View stats data after expiration
submit job stats;
show stats;

image

Expected behavior
stats should not count expired vertex\edge data
image

@nebula-bots nebula-bots added auto-sync severity/minor Severity of bug type/bug Type: something is unexpected labels Oct 8, 2022
@Sophie-Xie Sophie-Xie added this to the v3.3.0 milestone Oct 9, 2022
@Sophie-Xie
Copy link
Contributor

Discuss it offline with fangyang, jingchun, siwang : If we fix it, we need to make a lot of changes. And it still won't be statistically accurate, so we will not fix it.

@Sophie-Xie Sophie-Xie added the wontfix Solution: this will not be worked on recently label Oct 9, 2022
@nebula-bots nebula-bots added affects/none PR/issue: this bug affects none version. process/done Process of bug labels Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/none PR/issue: this bug affects none version. auto-sync find/automation process/done Process of bug severity/minor Severity of bug type/bug Type: something is unexpected wontfix Solution: this will not be worked on recently
Projects
None yet
Development

No branches or pull requests

2 participants