LOG.debug("Filling the item list with initial values.");
final CollectionNodeBuilder<MapEntryNode, MapNode> mapBuilder = ImmutableNodes.mapNodeBuilder(ITEM);
- for (int i = 0; i < MAX_ITEM / 2; i++) {
- usedValues.add(i);
- mapBuilder.withChild(ImmutableNodes.mapEntry(ITEM, NUMBER, i));
- }
-
idListWithKey = ID_INT_YID.node(new NodeIdentifierWithPredicates(ID_INT, ID, id));
itemProducer = domDataTreeService.createProducer(
try {
tx.submit().checkedGet(125, TimeUnit.SECONDS);
- } catch (final TransactionCommitFailedException | TimeoutException e) {
+ } catch (final Exception e) {
LOG.warn("Unable to fill the initial item list.", e);
settableFuture.set(RpcResultBuilder.<ProduceTransactionsOutput>failed()
.withError(RpcError.ErrorType.APPLICATION, "Unexpected-exception", e).build());
.withResult(output).build());
executor.shutdown();
- } catch (InterruptedException | ExecutionException | TimeoutException exception) {
+ } catch (Exception exception) {
LOG.error("Write transactions failed.", exception);
completionFuture.set(RpcResultBuilder.<ProduceTransactionsOutput>failed()
.withError(RpcError.ErrorType.APPLICATION, "Unexpected-exception", exception).build());