Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trackrdrd
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
trackrdrd
Commits
49a546c0
Commit
49a546c0
authored
Jun 03, 2014
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MQ plugin for Kafka: change the config param name for zookeeper connection
timeouts to the name used by Apache Kafka
parent
434fd065
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
README.rst
trackrdrd/src/mq/kafka/README.rst
+4
-4
config.c
trackrdrd/src/mq/kafka/config.c
+1
-2
kafka.conf
trackrdrd/src/mq/kafka/test/kafka.conf
+1
-1
No files found.
trackrdrd/src/mq/kafka/README.rst
View file @
49a546c0
...
...
@@ -154,10 +154,10 @@ Parameter Description
``metadata.broker.list`` MUST be set, as
described above.
----------------------------------- --------------------------------------------
``zookeeper.
timeout`` Timeout in milliseconds for connections to
ZooKeeper servers. If 0, then a connection
attempt fails immediately if the servers
cannot be
reached. (optional, default 0)
``zookeeper.
connection.timeout.ms`` Timeout for connections to ZooKeeper
servers. If 0, then a connection attempt
fails immediately if the servers cannot be
reached. (optional, default 0)
----------------------------------- --------------------------------------------
``zookeeper.log`` Path of a log file for the ZooKeeper client
(optional)
...
...
trackrdrd/src/mq/kafka/config.c
View file @
49a546c0
...
...
@@ -89,8 +89,7 @@ CONF_Add(const char *lval, const char *rval)
strncpy
(
zookeeper
,
rval
,
LINE_MAX
);
return
(
0
);
}
/* XXX: "zookeeper.connection.timeout.ms", to match Kafka config */
if
(
strcmp
(
lval
,
"zookeeper.timeout"
)
==
0
)
{
if
(
strcmp
(
lval
,
"zookeeper.connection.timeout.ms"
)
==
0
)
{
if
((
err
=
conf_getUnsignedInt
(
rval
,
&
zoo_timeout
))
!=
0
)
return
(
err
);
return
(
0
);
...
...
trackrdrd/src/mq/kafka/test/kafka.conf
View file @
49a546c0
# test config for Kafka MQ plugin
mq
.
log
=
kafka
.
log
zookeeper
.
connect
=
localhost
:
2181
zookeeper
.
timeout
=
10000
zookeeper
.
connection
.
timeout
.
ms
=
10000
zookeeper
.
log
=
zoo
.
log
topic
=
libtrackrdr_kafka_test
mq
.
debug
=
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment