Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.x] Patch v1.x base persistent service processor #7761

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,13 @@ public Response onRequest(ReadRequest request) {
public Response onApply(WriteRequest request) {
final byte[] data = request.getData().toByteArray();
final BatchWriteRequest bwRequest = serializer.deserialize(data, BatchWriteRequest.class);
final Op op = Op.valueOf(request.getOperation());
final Op op;
try {
op = Op.valueOf(request.getOperation());
} catch (Exception e) {
Loggers.RAFT.error("unsupport operation: {}, request: {}", request.getOperation(), request, e);
return Response.newBuilder().setSuccess(false).setErrMsg("unsupport operation : " + request.getOperation()).build();
}
final Lock lock = readLock;
lock.lock();
try {
Expand Down