Skip to content

Commit

Permalink
[fix][dingo-executor] Update protobuf version to 3.25.5 and txn mutat…
Browse files Browse the repository at this point in the history
…ion max count to 4096
  • Loading branch information
githubgxll authored and ketor committed Sep 29, 2024
1 parent 5c7abcd commit fb8501c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void execute(QueryPacket queryPacket,
throw new RuntimeException(e);
}
AtomicLong packetId = new AtomicLong(queryPacket.packetId + 1);
LogUtils.debug(log, "receive sql:" + sql);
LogUtils.debug(log, "dingo connection:{}, receive sql:{}", mysqlConnection.getConnection().toString(), sql);
if (mysqlConnection.passwordExpire && !doExpire(mysqlConnection, sql, packetId)) {
MysqlResponseHandler.responseError(packetId, mysqlConnection.channel, ErrorCode.ER_PASSWORD_EXPIRE);
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
@Slf4j
public final class TransactionUtil {
public static final long lock_ttl = 60000L;
public static final int max_pre_write_count = 1024;
public static final int max_pre_write_count = 4096;
public static final long maxRpcDataSize = 56*1024*1024;
public static final long heartBeatLockTtl = 80L;
public static final int STORE_RETRY = 60;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ private static void safePointUpdate() {

LogUtils.info(log, "Update safe point to: {}", safeTs);
if (!isDisable(reqTs)) {
UpdateGCSafePointRequest.UpdateGCSafePointRequestBuilder<?, ?> builder = UpdateGCSafePointRequest.builder()
.gcFlag(GcFlagType.GC_START);
UpdateGCSafePointRequest.UpdateGCSafePointRequestBuilder<?, ?> builder = UpdateGCSafePointRequest.builder();
// TODO
builder.safePoint(0);
if (TenantConstant.TENANT_ID == 0) {
Expand All @@ -177,6 +176,8 @@ private static void safePointUpdate() {
Services.coordinatorService(coordinators).updateGCSafePoint(
reqTs, builder.build()
);
} else {
LogUtils.info(log, "Safe point update task disabled, skip call coordinator.");
}
} catch (Exception e) {
LogUtils.error(log, "Update safe point error, skip this run.", e);
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ disruptor.version=3.3.7
hamcrest.version=1.3
jmh.version=1.20
asm.version=6.0
protobuf.version=3.21.7
protobuf.version=3.25.5
metrics-core.version=4.0.2
metrics-jmx.version=4.0.2
jctools-core.version=2.1.1
Expand Down

0 comments on commit fb8501c

Please sign in to comment.