How to fix the «Base table or view not found: catalog_category_product_index_replica» Magento 2.2 bug?

How to fix

Step 1

UPDATE setup_module
SET schema_version = '2.1.99', data_version = '2.1.99'
WHERE 'Magento_Catalog' = `module` and '2.2.0' = schema_version and '2.2.0' = data_version;

Step 2

bin/magento setup:upgrade && bin/magento indexer:reindex