You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "de Bruijn, M. (Martijn)" <ma...@befrank.nl.INVALID> on 2021/12/09 08:01:12 UTC

AccessDeniedException Kafka 3.0.0 on Windows

On Windows, Kafka 3.0.0 is producing AccessDeniedException's. Mainly due to using FileChannel.open(path, StandardOpenOption.READ) on a directory which will always fail on Windows.
(https://mail.openjdk.java.net/pipermail/nio-dev/2013-February/002123.html)
Example error code: org.apache.kafka.common.utils.Utils.flushDir(Utils.java:953)

Any change this will be solved soon?

Spring Boot 2.6 upgraded the Kafka dependency to 3.0.0 so this error has high impact as all tests using @EmbeddedKafka on Windows developer laptops won't work anymore.

More error reports:  https://stackoverflow.com/questions/69289641/accessdeniedexception-while-running-apache-kafka-3-on-windows



Regards,
Martijn de Bruijn
Software engineer

Re: AccessDeniedException Kafka 3.0.0 on Windows

Posted by Luke Chen <sh...@gmail.com>.
Hi Martijn,

The v3.1.0 should be released soon. It's been code freezed, and we're
fixing some blocker issues now. FYI

Thank you.
Luke

On Thu, Dec 9, 2021 at 5:36 PM de Bruijn, M. (Martijn)
<ma...@befrank.nl.invalid> wrote:

> Thanks Luke for your reply. It's good to see its fixed already. When will
> it be released?
> Regards,
> Martijn
>
> -----Original Message-----
> From: Luke Chen <sh...@gmail.com>
> Sent: donderdag 9 december 2021 10:30
> To: dev <de...@kafka.apache.org>
> Subject: Re: AccessDeniedException Kafka 3.0.0 on Windows
>
> Hi Martijn de Bruijn
>
> Thanks for reporting the issue. This is a known issue and it will be fixed
> in V3.0.1/V3.1.0 in this ticket:
>
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FKAFKA-13391&amp;data=04%7C01%7Cmartijn.de.bruijn%40befrank.nl%7C53ac2de23e694da1e29308d9baf67b79%7Cfed95e698d7343feaffba7d85ede36fb%7C1%7C0%7C637746390798820561%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=b2sntcAZCKqfgMLW5GWT5g%2BDDckm6ourZc6z%2FgGNo9k%3D&amp;reserved=0
> .
>
> FYI
>
> Thank you.
> Luke
>
>
>
> On Thu, Dec 9, 2021 at 4:08 PM de Bruijn, M. (Martijn) <
> martijn.de.bruijn@befrank.nl.invalid> wrote:
>
> > On Windows, Kafka 3.0.0 is producing AccessDeniedException's. Mainly
> > due to using FileChannel.open(path, StandardOpenOption.READ) on a
> > directory which will always fail on Windows.
> > (https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmai
> > l.openjdk.java.net%2Fpipermail%2Fnio-dev%2F2013-February%2F002123.html
> > &amp;data=04%7C01%7Cmartijn.de.bruijn%40befrank.nl%7C53ac2de23e694da1e
> > 29308d9baf67b79%7Cfed95e698d7343feaffba7d85ede36fb%7C1%7C0%7C637746390
> > 798820561%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIi
> > LCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=qeF0DvzJiw7jaIKERQhyJL
> > FYnBD4pOie7PyHesCk4kY%3D&amp;reserved=0
> > )
> > Example error code:
> > org.apache.kafka.common.utils.Utils.flushDir(Utils.java:953)
> >
> > Any change this will be solved soon?
> >
> > Spring Boot 2.6 upgraded the Kafka dependency to 3.0.0 so this error
> > has high impact as all tests using @EmbeddedKafka on Windows developer
> > laptops won't work anymore.
> >
> > More error reports:
> > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstac
> > koverflow.com%2Fquestions%2F69289641%2Faccessdeniedexception-while-run
> > ning-apache-kafka-3-on-windows&amp;data=04%7C01%7Cmartijn.de.bruijn%40
> > befrank.nl%7C53ac2de23e694da1e29308d9baf67b79%7Cfed95e698d7343feaffba7
> > d85ede36fb%7C1%7C0%7C637746390798820561%7CUnknown%7CTWFpbGZsb3d8eyJWIj
> > oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&am
> > p;sdata=%2B7ew95wdsjsFxHC%2FYdpEvNnwCoMNTI8H81Ksi3S175o%3D&amp;reserve
> > d=0
> >
> >
> >
> > Regards,
> > Martijn de Bruijn
> > Software engineer
> >
>

RE: AccessDeniedException Kafka 3.0.0 on Windows

Posted by "de Bruijn, M. (Martijn)" <ma...@befrank.nl.INVALID>.
Thanks Luke for your reply. It's good to see its fixed already. When will it be released?
Regards,
Martijn

-----Original Message-----
From: Luke Chen <sh...@gmail.com> 
Sent: donderdag 9 december 2021 10:30
To: dev <de...@kafka.apache.org>
Subject: Re: AccessDeniedException Kafka 3.0.0 on Windows

Hi Martijn de Bruijn

Thanks for reporting the issue. This is a known issue and it will be fixed in V3.0.1/V3.1.0 in this ticket:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FKAFKA-13391&amp;data=04%7C01%7Cmartijn.de.bruijn%40befrank.nl%7C53ac2de23e694da1e29308d9baf67b79%7Cfed95e698d7343feaffba7d85ede36fb%7C1%7C0%7C637746390798820561%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=b2sntcAZCKqfgMLW5GWT5g%2BDDckm6ourZc6z%2FgGNo9k%3D&amp;reserved=0.

FYI

Thank you.
Luke



On Thu, Dec 9, 2021 at 4:08 PM de Bruijn, M. (Martijn) <ma...@befrank.nl.invalid> wrote:

> On Windows, Kafka 3.0.0 is producing AccessDeniedException's. Mainly 
> due to using FileChannel.open(path, StandardOpenOption.READ) on a 
> directory which will always fail on Windows.
> (https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmai
> l.openjdk.java.net%2Fpipermail%2Fnio-dev%2F2013-February%2F002123.html
> &amp;data=04%7C01%7Cmartijn.de.bruijn%40befrank.nl%7C53ac2de23e694da1e
> 29308d9baf67b79%7Cfed95e698d7343feaffba7d85ede36fb%7C1%7C0%7C637746390
> 798820561%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIi
> LCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=qeF0DvzJiw7jaIKERQhyJL
> FYnBD4pOie7PyHesCk4kY%3D&amp;reserved=0
> )
> Example error code:
> org.apache.kafka.common.utils.Utils.flushDir(Utils.java:953)
>
> Any change this will be solved soon?
>
> Spring Boot 2.6 upgraded the Kafka dependency to 3.0.0 so this error 
> has high impact as all tests using @EmbeddedKafka on Windows developer 
> laptops won't work anymore.
>
> More error reports:
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstac
> koverflow.com%2Fquestions%2F69289641%2Faccessdeniedexception-while-run
> ning-apache-kafka-3-on-windows&amp;data=04%7C01%7Cmartijn.de.bruijn%40
> befrank.nl%7C53ac2de23e694da1e29308d9baf67b79%7Cfed95e698d7343feaffba7
> d85ede36fb%7C1%7C0%7C637746390798820561%7CUnknown%7CTWFpbGZsb3d8eyJWIj
> oiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&am
> p;sdata=%2B7ew95wdsjsFxHC%2FYdpEvNnwCoMNTI8H81Ksi3S175o%3D&amp;reserve
> d=0
>
>
>
> Regards,
> Martijn de Bruijn
> Software engineer
>

Re: AccessDeniedException Kafka 3.0.0 on Windows

Posted by Luke Chen <sh...@gmail.com>.
Hi Martijn de Bruijn

Thanks for reporting the issue. This is a known issue and it will be fixed
in V3.0.1/V3.1.0 in this ticket:
https://issues.apache.org/jira/browse/KAFKA-13391.

FYI

Thank you.
Luke



On Thu, Dec 9, 2021 at 4:08 PM de Bruijn, M. (Martijn)
<ma...@befrank.nl.invalid> wrote:

> On Windows, Kafka 3.0.0 is producing AccessDeniedException's. Mainly due
> to using FileChannel.open(path, StandardOpenOption.READ) on a directory
> which will always fail on Windows.
> (https://mail.openjdk.java.net/pipermail/nio-dev/2013-February/002123.html
> )
> Example error code:
> org.apache.kafka.common.utils.Utils.flushDir(Utils.java:953)
>
> Any change this will be solved soon?
>
> Spring Boot 2.6 upgraded the Kafka dependency to 3.0.0 so this error has
> high impact as all tests using @EmbeddedKafka on Windows developer laptops
> won't work anymore.
>
> More error reports:
> https://stackoverflow.com/questions/69289641/accessdeniedexception-while-running-apache-kafka-3-on-windows
>
>
>
> Regards,
> Martijn de Bruijn
> Software engineer
>