Slackbot
02/28/2023, 1:55 PMSergio Ferragut
02/28/2023, 6:33 PMSergio Ferragut
02/28/2023, 6:34 PMAlejandro Galue
02/28/2023, 7:19 PMAlejandro Galue
02/28/2023, 7:29 PMis_leader: 0 for all the coordinators, which contradicts what the coordinators return via ReST. Is that stored on ZooKeeper or PostgreSQL?Ben Krug
02/28/2023, 7:55 PMAlejandro Galue
02/28/2023, 8:00 PM2023-02-28T19:52:25,886 INFO [LeaderSelector[/druid/coordinator/_COORDINATOR]] org.apache.druid.server.coordinator.DruidCoordinator - I am the leader of the coordinators, all must bow! Starting coordination in [PT10S].
2023-02-28T19:52:25,908 INFO [LeaderSelector[/druid/coordinator/_COORDINATOR]] org.apache.druid.curator.discovery.CuratorServiceAnnouncer - Announcing service[DruidNode{serviceName='druid/coordinator', host='10.244.34.4', bindOnHost=false, port=-1, plaintextPort=8081, enablePlaintextPort=true, tlsPort=-1, enableTlsPort=false}]
2023-02-28T19:52:25,914 INFO [LeaderSelector[/druid/overlord/_OVERLORD]] org.apache.druid.indexing.overlord.TaskMaster - By the power of Grayskull, I have the power!
So, leader election happens but this "sys.servers" table is not updated correctly, and the logs have no errors.Ben Krug
02/28/2023, 8:04 PMAlejandro Galue
02/28/2023, 8:10 PMSergio Ferragut
02/28/2023, 8:44 PMGian Merlino
03/01/2023, 2:26 AMGian Merlino
03/01/2023, 2:29 AMGian Merlino
03/01/2023, 2:31 AMis_leader in sys.segments for coordinator is populated by calling /druid/coordinator/v1/leader on any one of the coordinators and comparing it to the host/port advertised by each coordinatorAlejandro Galue
03/01/2023, 12:09 PMsys.servers returns 0 for the is_leader column for all the coordinators. However, the endpoint you mentioned returns the correct result (/druid/coordinator/v1/leader). Leader election works (I tested it). That's why I don't understand what's happening.Alejandro Galue
03/01/2023, 5:33 PMSergio Ferragut
03/01/2023, 7:21 PMSergio Ferragut
03/01/2023, 7:21 PMGian Merlino
03/07/2023, 1:37 PM