Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/364.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Apache camel lumberjack组件不是线程安全的?_Java_Multithreading_Apache Camel_Filebeat - Fatal编程技术网

Java Apache camel lumberjack组件不是线程安全的?

Java Apache camel lumberjack组件不是线程安全的?,java,multithreading,apache-camel,filebeat,Java,Multithreading,Apache Camel,Filebeat,我不熟悉骆驼。我使用filebeat源,它通过lumberjack v2批处理协议传递日志文件数据。 作为一个接收服务器,我使用camel-lumberjack组件进一步处理camel管道中的数据 我意识到camels lumberjack组件的LumberjackSessionHandler不是无状态的,而是由camel用于所有并行lumberjack连接请求。 因此,具有自己批处理窗口的新传入连接会打乱现有窗口的任何正在进行的过程,例如窗口大小设置和计数确认 有状态的LumberJackso

我不熟悉骆驼。我使用filebeat源,它通过lumberjack v2批处理协议传递日志文件数据。 作为一个接收服务器,我使用camel-lumberjack组件进一步处理camel管道中的数据

我意识到camels lumberjack组件的LumberjackSessionHandler不是无状态的,而是由camel用于所有并行lumberjack连接请求。 因此,具有自己批处理窗口的新传入连接会打乱现有窗口的任何正在进行的过程,例如窗口大小设置和计数确认

有状态的LumberJacksonSessionHandler的状态混淆,并行窗口的处理中断,导致不需要的/未完成的确认。因此,它挂断了与filebeat源的整个通信过程。 LumberjackSessionHandler无法处理多个线程,但camel会尽其所能使用它


我如何告诉camel为每个lumberjack批处理请求使用单独的LumberJacks处理程序和处理管道?还是我误解了camel如何使用组件的概念?

您使用的是什么版本的camel?你能为这个bugCamel 3.5.0、Filebeat 7.9.1、JDK 1.8.0242创建一个JIRA票证吗。我将创建一个票证。。。