forked from apache/ignite
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IGNITE-8926 : Fixed deadlock when binary metadata got updated while h…
…olding topology read lock.
- Loading branch information
1 parent
37f86a9
commit 0bf4340
Showing
17 changed files
with
125 additions
and
24 deletions.
There are no files selected for viewing
79 changes: 79 additions & 0 deletions
79
modules/core/src/main/java/org/apache/ignite/internal/UnregisteredBinaryTypeException.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,79 @@ | ||
package org.apache.ignite.internal; | ||
|
||
import org.apache.ignite.IgniteException; | ||
import org.apache.ignite.internal.binary.BinaryMetadata; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
/** | ||
* Exception thrown during serialization if binary metadata isn't registered and it's registration isn't allowed. | ||
*/ | ||
public class UnregisteredBinaryTypeException extends IgniteException { | ||
/** */ | ||
private static final long serialVersionUID = 0L; | ||
|
||
/** */ | ||
private final int typeId; | ||
|
||
/** */ | ||
private final BinaryMetadata binaryMetadata; | ||
|
||
/** | ||
* @param typeId Type ID. | ||
* @param binaryMetadata Binary metadata. | ||
*/ | ||
public UnregisteredBinaryTypeException(int typeId, BinaryMetadata binaryMetadata) { | ||
this.typeId = typeId; | ||
this.binaryMetadata = binaryMetadata; | ||
} | ||
|
||
/** | ||
* @param msg Error message. | ||
* @param typeId Type ID. | ||
* @param binaryMetadata Binary metadata. | ||
*/ | ||
public UnregisteredBinaryTypeException(String msg, int typeId, | ||
BinaryMetadata binaryMetadata) { | ||
super(msg); | ||
this.typeId = typeId; | ||
this.binaryMetadata = binaryMetadata; | ||
} | ||
|
||
/** | ||
* @param cause Non-null throwable cause. | ||
* @param typeId Type ID. | ||
* @param binaryMetadata Binary metadata. | ||
*/ | ||
public UnregisteredBinaryTypeException(Throwable cause, int typeId, | ||
BinaryMetadata binaryMetadata) { | ||
super(cause); | ||
this.typeId = typeId; | ||
this.binaryMetadata = binaryMetadata; | ||
} | ||
|
||
/** | ||
* @param msg Error message. | ||
* @param cause Non-null throwable cause. | ||
* @param typeId Type ID. | ||
* @param binaryMetadata Binary metadata. | ||
*/ | ||
public UnregisteredBinaryTypeException(String msg, @Nullable Throwable cause, int typeId, | ||
BinaryMetadata binaryMetadata) { | ||
super(msg, cause); | ||
this.typeId = typeId; | ||
this.binaryMetadata = binaryMetadata; | ||
} | ||
|
||
/** | ||
* @return Type ID. | ||
*/ | ||
public int typeId() { | ||
return typeId; | ||
} | ||
|
||
/** | ||
* @return Binary metadata. | ||
*/ | ||
public BinaryMetadata binaryMetadata() { | ||
return binaryMetadata; | ||
} | ||
} |
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
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
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
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