freeznet commented on a change in pull request #10513:
URL: https://github.com/apache/pulsar/pull/10513#discussion_r629873481



##########
File path: 
pulsar-client-admin/src/main/java/org/apache/pulsar/client/admin/internal/TopicsImpl.java
##########
@@ -1397,9 +1399,14 @@ public OffloadProcessStatus offloadStatus(String topic)
         WebTarget path = topicPath(tn, "offload");
         final CompletableFuture<OffloadProcessStatus> future = new 
CompletableFuture<>();
         asyncGetRequest(path,
-                new InvocationCallback<OffloadProcessStatus>() {
+                new InvocationCallback<String>() {
                     @Override
-                    public void completed(OffloadProcessStatus 
offloadProcessStatus) {
+                    public void completed(String jsonString) {
+                        Gson gson = new 
GsonBuilder().registerTypeAdapter(MessageId.class,

Review comment:
       
https://github.com/freeznet/pulsar/commit/fa05e389b99f2d6aa90f4775f487f281b38796dc
   here is a sample commit that changes `Gson` to `Jackson`.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to