-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Zookeeper to gain parity with google #399
base: google-parity
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get regex errors with the following
log
2022-01-31 17:51:45,451 - INFO [NIOWorkerThread-3:NIOServerCnxn@514] - Processing mntr command from /0:0:0:0:0:0:0:1:50284
2022-01-31 17:51:45,451 [myid:1] - INFO [NIOWorkerThread-3:NIOServerCnxn@514] - Processing mntr command from /0:0:0:0:0:0:0:1:50284
2022-01-31 17:51:45,451 - INFO [NIOWorkerThread-3:NIOServerCnxn@514] - Processing mntr command from /0:0:0:0:0:0:0:1:50284
2022-01-31 17:51:45,451 [myid:1] - INFO [NIOWorkerThread-3:NIOServerCnxn@514] - Processing mntr command from /0:0:0:0:0:0:0:1:50284
2022-01-31 17:51:45,451 - INFO [NIOWorkerThread-3:NIOServerCnxn@514] - Processing mntr command from /0:0:0:0:0:0:0:1:50284
2022-01-31 17:51:45,451 [myid:1] - INFO [NIOWorkerThread-3:NIOServerCnxn@514] - Processing mntr command from /0:0:0:0:0:0:0:1:50284
2022-02-01 00:46:33,626 - WARN [SendWorker:2:QuorumCnxManager$SendWorker@1283] - Interrupted while waiting for message on queue
java.lang.InterruptedException
at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2056)
at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2133)
at org.apache.zookeeper.util.CircularBlockingQueue.poll(CircularBlockingQueue.java:105)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.pollSendQueue(QuorumCnxManager.java:1448)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.access$900(QuorumCnxManager.java:99)
at org.apache.zookeeper.server.quorum.QuorumCnxManager$SendWorker.run(QuorumCnxManager.java:1272)
2022-01-31 17:51:45,451 [myid:1] - INFO [NIOWorkerThread-3:NIOServerCnxn@514] - Processing mntr command from /0:0:0:0:0:0:0:1:50284
Config
pipeline:
- type: zookeeper
file_path: ./in
start_at: beginning
- type: stdout
This comment was marked as outdated.
This comment was marked as outdated.
Updated to support multiple files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the target branch to google-parity
- "/opt/zookeeper/logs/zookeeper-*.out" | ||
- "/var/log/zookeeper/zookeeper.log" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these the same default values as ops-agent? Generally, if zookeeper is writing logs to one, it will not be writing to the other.
In my opinion, we keep the default the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, these are the default paths that are looked for in the ops-agent .
When you say keep the default the same, you are talking about "/home/kafka/kafka/logs/zookeeper.log"
and then the user would have to specify one ops-agent path or the other?
description: The absolute path to the Zookeeper logs | ||
type: string | ||
default: "/home/kafka/kafka/logs/zookeeper.log" | ||
type: strings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of using strings here, but it does break compatibility. I am okay with this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Updated to support multiple files.
The new multi-file Config
2 examples(first single line, second multiline) with ID is sent to zookeeper.log
And results in json
2 examples(first single line, second multiline) without ID is sent to zookeeper2.log
and results in json