Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve --replace-indexer message when redeploying an indexer #1461

Open
Braqzen opened this issue Nov 9, 2023 · 1 comment
Open

Improve --replace-indexer message when redeploying an indexer #1461

Braqzen opened this issue Nov 9, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@Braqzen
Copy link
Contributor

Braqzen commented Nov 9, 2023

I had a service running in the docker container which did not include the --replace-indexer flag.

When I have altered an indexer and wanted to redeploy it I was presented with a message telling me to add the --replace-indexer flag but it did not tell me where to use it.

I have assumed that I was meant to replace

forc index deploy

with

forc index deploy --replace-indexer

but that was insufficient.

1

To fix the issue and redeploy the new version of the indexer I had to start the indexer service with that --replace--indexer flag in order for the flag in the deploy command to work.

Solution: replace the current message to inform the user that both the service and the deploy command must provide the --replace-indexer flag in order to redeploy an indexer under the same name.

@Braqzen Braqzen added documentation Improvements or additions to documentation good first issue Good for newcomers labels Nov 9, 2023
@richardgreg
Copy link

richardgreg commented Dec 4, 2023

Loud and clear.

When you initially run for index deploy after altering the service, the message should read Indexer({namespace}. {identifier}) already exists. Use --replace-indexer to re-start the indexer service and again during deployment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants