Issue with Broker Decommissioning in Lenses After Node Pool Change

Hi,

We are running a Strimzi cluster using KRaft and Node Pools. After switching our storage backend, we created a new node pool and removed the old one. Lenses correctly identified the new brokers, but it still displays the old, decommissioned ones. As a result, attempting to open the broker overview leads to the following error message:

TypeError: Cannot read properties of null (reading 'activeControllers')

TypeError: Cannot read properties of null (reading 'activeControllers')
    at https://lenses-environment.example.com/js/app.f90739b5ef17f944e3a4.js:2:710988
    at Array.every (<anonymous>)
    at https://lenses-environment.example.com/js/app.f90739b5ef17f944e3a4.js:2:710931
    at Object.useMemo (https://lenses-environment.example.com/js/vendors~app.2200c238fad78ad24d71.js:2:2675968)
    at t.useMemo (https://lenses-environment.example.com/js/vendors~app.2200c238fad78ad24d71.js:2:2612988)
    at Ee (https://lenses-environment.example.com/js/app.f90739b5ef17f944e3a4.js:2:710902)
    at Yi (https://lenses-environment.example.com/js/vendors~app.2200c238fad78ad24d71.js:2:2671116)
    at ms (https://lenses-environment.example.com/js/vendors~app.2200c238fad78ad24d71.js:2:2717355)
    at lu (https://lenses-environment.example.com/js/vendors~app.2200c238fad78ad24d71.js:2:2709903)
    at uu (https://lenses-environment.example.com/js/vendors~app.2200c238fad78ad24d71.js:2:2709828)

We’ve reviewed the documentation on broker decommissioning (link), but wanted to ask if there’s an alternative way to manually remove the old brokers — perhaps directly from the database — as a temporary workaround?

Lenses v5 holds the information about brokers (changed and the new ones in your case) in memory so technically, restart of Lenses should release old brokers.

If that doesn’t help and you do not want to meddle down with database and cleaning the records, you can try deleting the same with utilising following APIs where you would first get all the brokers and its IDs and then delete the ones which are not necessary.

GET /api/brokers
DELETE /api/brokers/<brokerId>