Bugfix: Check for existence of a new transfer requires a remote-call
authorKai Moritz <kai@juplo.de>
Fri, 25 Jun 2021 14:15:53 +0000 (16:15 +0200)
committerKai Moritz <kai@juplo.de>
Wed, 30 Jun 2021 16:56:18 +0000 (18:56 +0200)
commit19aec49a7f3a46f55e696a5a930c48883c4f1cd2
tree1c2edba8014b377184c76da80526435759c01980
parenta9a2158de30cb47c96cfabf06c797d81a352a1e1
Bugfix: Check for existence of a new transfer requires a remote-call

* The _local_ check for the existens of a transfer to create possibly leads
  to a NPE in this version, because it access the TransferRepository for a
  partition, not regarding, if it is available locally.
* This access simply lead to no result before, but since the in-memory
  maps for the partitions are now created only, when the partition is
  assigned, it causes a NPE now.
* The local check, that does not make a lot of sence since the service
  was refactored to run on multiple insances in parallel, is replaced
  against a remote call here.
application.yml
pom.xml
src/main/java/de/juplo/kafka/payment/transfer/TransferServiceApplication.java
src/main/java/de/juplo/kafka/payment/transfer/adapter/TransferConsumer.java
src/main/java/de/juplo/kafka/payment/transfer/adapter/TransferController.java