liveBook · Manning

Time-based anomaly

As explained in Troubleshooting Java, Second Edition

A time-based anomaly is an irregularity in the timing, ordering, or temporal correlation of events relative to expected system behavior.

A time-based anomaly is an irregularity in event timing, ordering, or correlation that departs from expected system behavior. Delays, out-of-order operations, duplicate retries, and mismatched timestamps can expose coordination or consistency problems without immediate exceptions. section 13.1.1

Investigate the anomaly across the complete transaction path:

  • Follow requests with distributed tracing tools such as OpenTelemetry or Zipkin; treat missing spans and trace trees ending before writes or publishing as red flags. section 13.1.1
  • Compare application logs with Kafka topic inspection to confirm whether messages propagated through the system. section 13.1.1
  • Query the database for missing records or sequence gaps, then inspect PostgreSQL deadlock logs for concurrency failures and unhandled retries. section 13.1.1

Payment trace that stops early

A payment trace reaches the payment-processing service but records no further spans. Checking POS logs, the Kafka topic, and database evidence can identify whether auditing, message propagation, or transaction handling failed.

How Troubleshooting Java, Second Edition covers it

How deep it goes
Defines timing irregularities and provides a cross-system diagnostic checklist using traces, logs, topics, and database evidence.
Examples
Uses a payment trace with missing spans, Kafka inspection, POS logs, database gaps, and a PostgreSQL deadlock.
What you can do after
Diagnose/debug with traces, logs, message topics, database queries, and deadlock evidence.
How it connects
Connects distributed tracing, Kafka, application logs, database transactions, timestamps, deadlocks, and transaction rollbacks.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Troubleshooting Java, Second Edition. The section links point to the parts of the book it draws on.