forked from deephaven/deephaven-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BaseTable: Remove Swap Listener and Add Atomic addUpdateListener (dee…
…phaven#4652) - Adds `TableAlreadyFailedException` and `SnapshotUnsuccessfulException` to fix initialization race condition in `ExportedTableUpdateListener` Co-authored-by: Ryan Caudy <[email protected]>
- Loading branch information
1 parent
efc3bc8
commit 2bc0192
Showing
28 changed files
with
501 additions
and
488 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
engine/table/src/main/java/io/deephaven/engine/exceptions/SnapshotUnsuccessfulException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Copyright (c) 2016-2023 Deephaven Data Labs and Patent Pending | ||
*/ | ||
package io.deephaven.engine.exceptions; | ||
|
||
import io.deephaven.UncheckedDeephavenException; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
/** | ||
* This exception is thrown when {@link io.deephaven.engine.table.impl.remote.ConstructSnapshot} fails to successfully | ||
* execute the data snapshot function in an otherwise consistent state. | ||
*/ | ||
public class SnapshotUnsuccessfulException extends UncheckedDeephavenException { | ||
public SnapshotUnsuccessfulException(@NotNull final String message) { | ||
super(message); | ||
} | ||
|
||
public SnapshotUnsuccessfulException(@NotNull final String message, @NotNull final Throwable cause) { | ||
super(message, cause); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
engine/table/src/main/java/io/deephaven/engine/exceptions/TableAlreadyFailedException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Copyright (c) 2016-2023 Deephaven Data Labs and Patent Pending | ||
*/ | ||
package io.deephaven.engine.exceptions; | ||
|
||
import io.deephaven.UncheckedDeephavenException; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
/** | ||
* This exception is thrown when an {@link io.deephaven.engine.table.TableUpdateListener update listener} cannot be | ||
* added to a {@link io.deephaven.engine.table.Table} because it has already failed. | ||
*/ | ||
public class TableAlreadyFailedException extends UncheckedDeephavenException { | ||
public TableAlreadyFailedException(@NotNull final String message) { | ||
super(message); | ||
} | ||
|
||
public TableAlreadyFailedException(@NotNull final String message, @NotNull final Throwable cause) { | ||
super(message, cause); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.