Skip to content

Commit

Permalink
fix: #565 batch requests issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ikalachy committed Nov 20, 2024
1 parent b6895e2 commit 669bb0a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import java.util.List;
import java.util.Objects;

import org.apache.olingo.server.api.OData;
import org.apache.olingo.server.api.ServiceMetadata;
import org.apache.olingo.server.api.processor.Processor;

import io.vertx.core.Context;
Expand Down Expand Up @@ -90,4 +92,10 @@ private static Deque<List<Future<Void>>> processingStack() {
}
return processingStack;
}

@Override
public void init(OData odata, ServiceMetadata serviceMetadata) {
// reset subpromise
subProcessPromise = null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public BatchProcessor(Vertx vertx, RoutingContext routingContext, Promise<Void>

@Override
public void init(OData odata, ServiceMetadata serviceMetadata) {
super.init(odata, serviceMetadata);
this.odata = odata;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public CountEntityCollectionProcessor(Vertx vertx, RoutingContext routingContext

@Override
public void init(OData odata, ServiceMetadata serviceMetadata) {
super.init(odata, serviceMetadata);
this.odata = odata;
this.serviceMetadata = serviceMetadata;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ static Entity findEntityByKeyPredicates(RoutingContext routingContext, UriResour

@Override
public void init(OData odata, ServiceMetadata serviceMetadata) {
super.init(odata, serviceMetadata);
this.odata = odata;
this.serviceMetadata = serviceMetadata;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public PrimitiveProcessor(Vertx vertx, RoutingContext routingContext, Promise<Vo

@Override
public void init(OData odata, ServiceMetadata serviceMetadata) {
super.init(odata, serviceMetadata);
this.odata = odata;
this.serviceMetadata = serviceMetadata;
}
Expand Down

0 comments on commit 669bb0a

Please sign in to comment.