Vishal Satish created CALCITE-7445:
--------------------------------------

             Summary: RuntimeException for unhandled protobuf Severity in 
AvaticaSeverity.fromProto
                 Key: CALCITE-7445
                 URL: https://issues.apache.org/jira/browse/CALCITE-7445
             Project: Calcite
          Issue Type: Bug
          Components: avatica
            Reporter: Vishal Satish


AvaticaSeverity.fromProto() throws RuntimeException for unknown protobuf 
severity levels:

throw new RuntimeException("Unhandled protobuf Severity level: " + proto).

This crashes the server when receiving malformed protobuf messages with 
unexpected severity values, instead of gracefully handling the error.

Fix: Return AvaticaSeverity.UNKNOWN or handle unknown protobuf values 
gracefully.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to