Hi Team, I am pusing some segments in an offline t...
# troubleshooting
r
Hi Team, I am pusing some segments in an offline table. I am able to push segments successful and data is also showing in table but segment status is always showing Bad.
x
Can u check table external view?
r
@Xiang Fu
n
does the external view match the ideal state? if yes, might be a UI bug
@Sanket Shah can you help us check what the logic is to determine if a segment should be GOOD/BAD on the UI?
s
@Neha Pawar We compare the IdealState with ExternalView and if both are same then GOOD else BAD. Ref: https://github.com/apache/pinot/blob/master/pinot-controller/src/main/resources/app/utils/PinotMethodUtils.ts#L463
n
thanks Sanket. @RK please check ideal state. If that is also all ONLINE, then we need to investigate on UI side. Sometimes, it also is temporary
r
@Neha Pawar @Sanket Shah yes Idealstate is also showing online.
🙌 1
s
@RK ideal state has 2 server entries in each object inside mapFields whereas external view has only one. That's why we see status as BAD
r
@Sanket Shah but I have only one server. What should I do to remove this one entry?
s
There is an edit button to update but I'm not entirely sure if that will have any consequences or not. @Neha Pawar might be able to suggest better.
n
Good catch! Is that other server shut down @RK?
r
Yes @Neha Pawar I was using that other server earlier. But when I created this new table so killed the other server and stated only one server
The other server is old one. Even I tried to restart the other server but status is same i.e. Bad
n
You'll have to untag it and then rebalance
r
How to untag..or if I remove this instance from zookeeper and restart will it work?
n
r
Okay... Thanks alot @Neha Pawar @Sanket Shah