Skip to content

Remove full cluster state from error logging in MasterService#89960

Merged
original-brownbear merged 1 commit intoelastic:mainfrom
original-brownbear:make-logging-master-error-readable
Sep 9, 2022
Merged

Remove full cluster state from error logging in MasterService#89960
original-brownbear merged 1 commit intoelastic:mainfrom
original-brownbear:make-logging-master-error-readable

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

I found a couple of these error logs in Cloud but was unable to interpret them because the cluster state string was so long that the logs would get truncated. For large deployments the string could be absolutely unmanageable in size even if it wasn't truncated. I think the error is vastly more valuable that the cluster state itself -> lets just log the error.

I found a couple of these error logs in Cloud but was unable to interpret them
because the cluster state string was so long that the logs would get truncated.
For large deployments the string could be absolutely unmanageable in size even
if it wasn't truncated. I think the error is vastly more valuable that the
cluster state itself -> lets just log the error.
@original-brownbear original-brownbear added >non-issue :Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v8.5.0 labels Sep 9, 2022
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Meta label for distributed team. label Sep 9, 2022
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

Copy link
Copy Markdown
Member

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quite right, LGTM

@original-brownbear
Copy link
Copy Markdown
Contributor Author

Thanks David!

@original-brownbear original-brownbear merged commit 20d9758 into elastic:main Sep 9, 2022
@original-brownbear original-brownbear deleted the make-logging-master-error-readable branch September 9, 2022 12:24
weizijun added a commit to weizijun/elasticsearch that referenced this pull request Sep 9, 2022
* main: (176 commits)
  Fix RandomSamplerAggregatorTests testAggregationSamplingNestedAggsScaled test failure (elastic#89958)
  [Downsampling] Replace document map with SMILE encoded doc (elastic#89495)
  Remove full cluster state from error logging in MasterService (elastic#89960)
  [ML] Truncate categorization fields (elastic#89827)
  [TSDB] Removed `summary` and `histogram` metric types (elastic#89937)
  Update testNodeSelectorRouting so that it does not depend on iteration order (elastic#89879)
  Make sure listener is resolved when file queue is cleared (elastic#89929)
  [Stable plugin api] Extensible annotation (elastic#89903)
  Fix double sending of response in TransportOpenIdConnectPrepareAuthenticationAction (elastic#89930)
  Make sure ivy repo directory exists before downloading artifacts
  Use 'file://' scheme for local repository URL
  Use DRA artifacts for release build CI jobs
  Log unsuccessful attempts to get credentials from web identity tokens (elastic#88241)
  Script: Write Field API path manipulation (elastic#89889)
  Fetch health info action (elastic#89820)
  Fix memory leak in TransportDeleteExpiredDataAction (elastic#89935)
  [ML] Performance improvements for categorization jobs (elastic#89824)
  [DOCS] Revert changes for ES_JAVA_OPTS (elastic#89931)
  Fix deadlock bug exposed by a test (elastic#89934)
  [Downsampling] Remove `FieldValueFetcher` validator (elastic#89497)
  ...
@original-brownbear original-brownbear restored the make-logging-master-error-readable branch November 30, 2024 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. >non-issue Team:Distributed Meta label for distributed team. v8.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants