mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 21:23:10 +08:00
Increase the number of unique bits for actors to avoid handle collisions (#12894)
This commit is contained in:
@@ -7,7 +7,7 @@ import java.util.Random;
|
||||
|
||||
public class ActorId extends BaseId implements Serializable {
|
||||
|
||||
private static final int UNIQUE_BYTES_LENGTH = 4;
|
||||
private static final int UNIQUE_BYTES_LENGTH = 12;
|
||||
|
||||
public static final int LENGTH = JobId.LENGTH + UNIQUE_BYTES_LENGTH;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.Random;
|
||||
*/
|
||||
public class ObjectId extends BaseId implements Serializable {
|
||||
|
||||
public static final int LENGTH = 20;
|
||||
public static final int LENGTH = 28;
|
||||
|
||||
/**
|
||||
* Create an ObjectId from a ByteBuffer.
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.util.Random;
|
||||
*/
|
||||
public class UniqueId extends BaseId implements Serializable {
|
||||
|
||||
public static final int LENGTH = 20;
|
||||
public static final int LENGTH = 28;
|
||||
public static final UniqueId NIL = genNil();
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user