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

[ElasticSearch Sink] Correct @FieldDoc defaultValue for some fields #12697

Merged
merged 2 commits into from
Dec 2, 2021

Conversation

nicoloboschi
Copy link
Contributor

Motivation

FieldDoc#defaultValue() is wrong for these fields:

  • primaryFields
  • maxRetries
  • indexNumberOfReplicas
  • createIndexIfNeeded

These fields are available from the REST API since you can see the configuration for a connector. If not set, the value for these fields is wrong and can be very noisy for troubleshooting operations

Modifications

Fixed default values for these fields.

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Documentation

Need to update docs?

  • no-need-doc

…primaryFields,maxRetries,indexNumberOfReplicas,createIndexIfNeeded
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Nov 9, 2021
@codelipenghui codelipenghui added this to the 2.10.0 milestone Nov 9, 2021
@nicoloboschi
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@nicoloboschi
Copy link
Contributor Author

/pulsarbot run-failure-checks

@eolivelli eolivelli merged commit 5baa2e0 into apache:master Dec 2, 2021
fxbing pushed a commit to fxbing/pulsar that referenced this pull request Dec 19, 2021
…primaryFields,maxRetries,indexNumberOfReplicas,createIndexIfNeeded (apache#12697)
codelipenghui pushed a commit that referenced this pull request Dec 21, 2021
…primaryFields,maxRetries,indexNumberOfReplicas,createIndexIfNeeded (#12697)

(cherry picked from commit 5baa2e0)
@codelipenghui codelipenghui added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connector cherry-picked/branch-2.9 Archived: 2.9 is end of life doc-not-needed Your PR changes do not impact docs release/2.9.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants