Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B0D27200D33 for ; Wed, 8 Nov 2017 12:11:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id AF4A9160BDA; Wed, 8 Nov 2017 11:11:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F333A160BE0 for ; Wed, 8 Nov 2017 12:11:03 +0100 (CET) Received: (qmail 86669 invoked by uid 500); 8 Nov 2017 11:11:03 -0000 Mailing-List: contact jira-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@kafka.apache.org Delivered-To: mailing list jira@kafka.apache.org Received: (qmail 86647 invoked by uid 99); 8 Nov 2017 11:11:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Nov 2017 11:11:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 588531A003C for ; Wed, 8 Nov 2017 11:11:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id tV_6d-IRWQAh for ; Wed, 8 Nov 2017 11:11:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 1BAE05FC9D for ; Wed, 8 Nov 2017 11:11:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5A0BEE05B7 for ; Wed, 8 Nov 2017 11:11:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 162F424147 for ; Wed, 8 Nov 2017 11:11:00 +0000 (UTC) Date: Wed, 8 Nov 2017 11:11:00 +0000 (UTC) From: "James Wu (JIRA)" To: jira@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (KAFKA-6186) RocksDB based WindowStore fail to create db file on Windows OS MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 08 Nov 2017 11:11:04 -0000 James Wu created KAFKA-6186: ------------------------------- Summary: RocksDB based WindowStore fail to create db file on Windows OS Key: KAFKA-6186 URL: https://issues.apache.org/jira/browse/KAFKA-6186 Project: Kafka Issue Type: Bug Components: streams Affects Versions: 1.0.0 Environment: Windows OS Reporter: James Wu Code snippet just like below ... textLines.flatMapValues(value -> Arrays.asList(pattern.split(value.toLowerCase()))).groupBy((key, word) -> word) .windowedBy(TimeWindows.of(10000)).count(Materialized.as("Counts")); ... Run it on Windows, then the exception is throw as below Caused by: org.rocksdb.RocksDBException: Failed to create dir: F:\tmp\kafka-streams\wordcount-lambda-example\1_0\Counts\Counts:1510099200000: Invalid argument at org.rocksdb.RocksDB.open(Native Method) ~[rocksdbjni-5.7.3.jar:na] at org.rocksdb.RocksDB.open(RocksDB.java:231) ~[rocksdbjni-5.7.3.jar:na] at org.apache.kafka.streams.state.internals.RocksDBStore.openDB(RocksDBStore.java:197) ~[kafka-streams-1.0.0.jar:na] ... 29 common frames omitted Checked the code, I found the issue is caused by line 72 in org.apache.kafka.streams.state.internals.Segments String segmentName(final long segmentId) { // previous format used - as a separator so if this changes in the future // then we should use something different. return name + ":" + segmentId * segmentInterval; } "segmentName" is passed to RocksDB, RockDB will use it as file name to create the DB file, as we known, the ":" cannot be part of file name in Windows OS. -- This message was sent by Atlassian JIRA (v6.4.14#64029)