PersistentQueryStateLog
When a query worker is started or stopped, it goes through a series of state changes, representing the worker's status. Each state represents a specific condition, and every state change for every PQ is stored in the PersistentQueryStateLog
. Current states are also visible in the status column in the Query Configuration Deephaven console panel. States include:
State | Description |
---|---|
Uninitialized | The query has no status as it has not been run. |
Connecting | The controller is connecting. |
Authenticating | The query is authenticating with the authentication server. |
AcquiringWorker | The dispatcher is creating a worker process for the query. |
Initializing | The worker process for the query is initializing. |
Running | The query worker is running (script query types only). |
Failed | The query worker failed to start correctly; an exception should be visible. |
Error | The query generated an error. |
Disconnected | The query worker disconnected unexpectedly. This may occur, for example, if the JVM experiences an OutOfMemoryError , a Hotspot error (possibly caused by a buggy native module), or if the garbage collector pauses the JVM for longer than the heartbeat interval between the worker and dispatcher. |
Stopped | The query stopped normally (Live Query (Script) query types only). |
Completed | The query completed successfully (Batch Query (RunAndDone) query types only). |
Executing | The query is executing (Batch Query (RunAndDone) query types only). |
The PersistentQueryStateLog
table contains every state change that has occurred for all persistent queries.
Columns
Column Name | Column Type | Description |
---|---|---|
Date | String | The date on which the state change occurred. This is the partitioning column. |
Owner | String | The owner of the Persistent Query. |
Name | String | The name of the Persistent Query. |
Timestamp | DateTime | The timestamp for the state change. |
Status | String | The new query state, e.g., Running , Disconnected , etc. |
ServerHost | String | The host on which the query ran. |
WorkerName | String | The worker's name. |
WorkerPort | int | The worker's port for connections. |
LastModifiedByAuthenticated | String | The authenticated user who last modified this query. |
LastModifiedByEffective | String | The effective user who last modified this query. |
SerialNumber | long | The query's serial number (a system-generated identifier unique to each Persistent Query). |
VersionNumber | long | The query's version number (a number that starts at 1 for each query and is incremented each time the query is updated). |
TypeSpecificState | String | A type-specific state value; this will not apply to most queries. |
ExceptionMessage | String | If applicable, the exception message for a failed query. |
ExceptionStackTrace | String | If applicable, the full stack trace for a failed query. |
ScriptLoaderState | Map | State of script loader infrastructure when logged. Currently, only "git" repository states are relevant, with the revision fingerprint of each, keyed by repo name, logged. |
Related documentation
- Internal tables overview
AuditEventLog
PersistentQueryConfigurationLog
ProcessEventLogIndex
ProcessEventLog
ProcessInfo
ProcessMetrics
QueryOperationPerformanceLogIndex
QueryOperationPerformanceLog
QueryPerformanceLog
QueryUserAssignmentLog
ResourceUtilization
ServerStateLogIndex
ServerStateLog
UpdatePerformanceLogIndex
UpdatePerformanceLog
WorkspaceDataSnapshot
WorkspaceData