The query was like this:
{
var(func: has(name)){
a as count(uid)
}
me(func: uid(a), orderasc: initial_release_date){
name
val(a)
}
}
I defined a value variable “a” on “count(uid)”, the uid of “a” was supposed to be “0xffffffffffffffff”,so applying a sort on it would be meaningless. I expected dgraph to report an error,but it seemed that dgraph got into unhealthy state. Is it a bug?