[ 
https://issues.apache.org/jira/browse/IGNITE-29314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitry Werner updated IGNITE-29314:
-----------------------------------
    Description: 
When a node reads a binary object with compact footer and cannot resolve its 
schema, BinaryReaderExImpl#getOrCreateSchema fails with one of two errors:
 * "Cannot find metadata for object with compact footer" - the node has no 
metadata for the type;
 * "Cannot find schema for object with compact footer" - the type is known, but 
not the schema the object was written with.

For an operator both mean the same: the binary metadata available to the node 
does not describe the object.

There is no metric or event for these errors. On server nodes they can only be 
tracked by log messages; on client nodes the lookup logs nothing above DEBUG.

Add one counter for both errors:
 * register: binary.metadata
 * metric: NotFoundCount (long) - total number of failed attempts to find 
metadata or schema for an object with compact footer.

The attempt is counted on the node that reads the object (server or client). 
The register is also created in the ignite-cdc.sh application.

Reads performed by thin clients, the JDBC thin driver and Ignite.NET are out of 
scope.

The metric must be documented in monitoring-metrics/new-metrics.adoc and 
persistence/change-data-capture.adoc and covered by a test.

  was:
When a node reads a binary object with compact footer and cannot resolve its 
schema, BinaryReaderExImpl#getOrCreateSchema fails with one of two errors:

    - "Cannot find metadata for object with compact footer" - the node has no 
metadata for the type;
    - "Cannot find schema for object with compact footer" - the type is known, 
but not the schema the object was written with.

For an operator both mean the same: the binary metadata available to the node 
does not describe the object.

There is no metric or event for these errors. On server nodes they can only be 
tracked by log messages; on client nodes the lookup logs nothing above DEBUG.

Add one counter for both errors:

    - register: binary.metadata
    - metric: NotFoundCount (long) - total number of failed attempts to find 
metadata or schema for an object with compact footer.

The attempt is counted on the node that reads the object (server or client). 
The register is also created in the ignite-cdc.sh application.

Reads performed by thin clients, the JDBC thin driver and Ignite.NET are out of 
scope.

The metric must be documented in monitoring-metrics/new-metrics.adoc and 
persistence/change-data-capture.adoc and covered by a test.


> Add metric for "Cannot find metadata/schema for object with compact footer" 
> errors
> ----------------------------------------------------------------------------------
>
>                 Key: IGNITE-29314
>                 URL: https://issues.apache.org/jira/browse/IGNITE-29314
>             Project: Ignite
>          Issue Type: Task
>            Reporter: Dmitry Werner
>            Assignee: Dmitry Werner
>            Priority: Major
>              Labels: metrics-to-log
>             Fix For: 2.20
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When a node reads a binary object with compact footer and cannot resolve its 
> schema, BinaryReaderExImpl#getOrCreateSchema fails with one of two errors:
>  * "Cannot find metadata for object with compact footer" - the node has no 
> metadata for the type;
>  * "Cannot find schema for object with compact footer" - the type is known, 
> but not the schema the object was written with.
> For an operator both mean the same: the binary metadata available to the node 
> does not describe the object.
> There is no metric or event for these errors. On server nodes they can only 
> be tracked by log messages; on client nodes the lookup logs nothing above 
> DEBUG.
> Add one counter for both errors:
>  * register: binary.metadata
>  * metric: NotFoundCount (long) - total number of failed attempts to find 
> metadata or schema for an object with compact footer.
> The attempt is counted on the node that reads the object (server or client). 
> The register is also created in the ignite-cdc.sh application.
> Reads performed by thin clients, the JDBC thin driver and Ignite.NET are out 
> of scope.
> The metric must be documented in monitoring-metrics/new-metrics.adoc and 
> persistence/change-data-capture.adoc and covered by a test.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to