Skip to content

Commit

Permalink
Fix/kafka view creation (#401)
Browse files Browse the repository at this point in the history
* Fix Kafka View creation

* Improve dev compose to use CLI mysql command without any params

---------

Co-authored-by: djklim87 <[email protected]>
  • Loading branch information
djklim87 and djklim87 authored Nov 25, 2024
1 parent 1fdeec2 commit 84d7b85
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 43 deletions.
82 changes: 41 additions & 41 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ services:
entrypoint:
- "/bin/sh"
- "-c"
- "grep buddy_path /etc/manticoresearch/manticore.conf > /dev/null 2>&1 || sed -i '/searchd {/a \\ buddy_path = manticore-executor /workdir/src/main.php --debugv' /etc/manticoresearch/manticore.conf; exec /bin/bash"
- "grep buddy_path /etc/manticoresearch/manticore.conf > /dev/null 2>&1 || sed -i '/searchd {/a \\ buddy_path = manticore-executor /workdir/src/main.php --debugv' /etc/manticoresearch/manticore.conf && sed -i '/^searchd {/a \\ listen = /var/run/mysqld/mysqld.sock:mysql41' /etc/manticoresearch/manticore.conf; exec /bin/bash"
working_dir: "/workdir"
networks:
- app-network
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/Queue/Handlers/View/CreateViewHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function run(): Task {

$result = $manticoreClient->sendRequest($sql)->getResult();

if (is_array($result[0]) && empty($result['data'])) {
if (is_array($result[0]) && empty($result[0]['data'])) {
throw ManticoreSearchClientError::create('Chosen source not exist');
}

Expand Down

0 comments on commit 84d7b85

Please sign in to comment.