Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,11 @@ public CompletableFuture<SchemaVersion> putSchemaIfAbsent(String schemaId, Schem
}))).whenComplete((v, ex) -> {
var latencyMs = this.clock.millis() - start.longValue();
if (ex != null) {
log.error("[{}] Put schema failed", schemaId, ex);
if (ex instanceof IncompatibleSchemaException) {
log.warn("[{}] Put schema failed due to incompatible schema", schemaId, ex);
} else {
log.error("[{}] Put schema failed", schemaId, ex);
}
if (start.longValue() != 0) {
this.stats.recordPutFailed(schemaId, latencyMs);
}
Expand Down Expand Up @@ -458,7 +462,7 @@ private CompletableFuture<Void> checkCompatibilityWithLatest(String schemaId, Sc
CompletableFuture<Void> result = new CompletableFuture<>();
result.whenComplete((__, t) -> {
if (t != null) {
log.error("[{}] Schema is incompatible", schemaId);
log.warn("[{}] Schema is incompatible", schemaId);
this.stats.recordSchemaIncompatible(schemaId);
} else {
if (log.isDebugEnabled()) {
Expand Down Expand Up @@ -495,7 +499,7 @@ private CompletableFuture<Void> checkCompatibilityWithAll(String schemaId, Schem
result.whenComplete((v, t) -> {
if (t != null) {
this.stats.recordSchemaIncompatible(schemaId);
log.error("[{}] Schema is incompatible, schema type {}", schemaId, schema.getType());
log.warn("[{}] Schema is incompatible, schema type {}", schemaId, schema.getType());
} else {
this.stats.recordSchemaCompatible(schemaId);
if (log.isDebugEnabled()) {
Expand Down
Loading