[jira] [Resolved] (KAFKA-1008) Unmap before resizing

2013-10-15 Thread Jay Kreps (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jay Kreps resolved KAFKA-1008. -- Resolution: Fixed Checked in on 0.8 and trunk. > Unmap before resiz

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-10-09 Thread Jun Rao (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13791171#comment-13791171 ] Jun Rao commented on KAFKA-1008: Thanks for the patch for trunk. +1. > Unmap

[jira] [Updated] (KAFKA-1008) Unmap before resizing

2013-10-09 Thread Jay Kreps (JIRA)
to trunk and also adds a fix for the windows compatibility issue in KAFKA-1036 in OffsetCheckpoint.scala. > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-1008 >

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-09-23 Thread Jun Rao (JIRA)
n v8. > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-1008 > Project: Kafka > Issue Type: Bug > Components: core, log >Affects Vers

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-09-23 Thread Jay Kreps (JIRA)
't think it is very safe to have methods whose correctness depends on the existing call pattern. The synchronization doesn't hurt, in any case since this is not in any critical read or write path. > Unmap before resizing > - >

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-09-23 Thread Jun Rao (JIRA)
80. OffsetIndex: The patch synchronizes in readLastOffset(), is that necessary? > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-1008 > Project: Kafka >

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-09-22 Thread Elizabeth Wei (JIRA)
ll. > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-1008 > Project: Kafka > Issue Type: Bug > Components: core, log >Aff

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-09-20 Thread Sriram Subramanian (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773517#comment-13773517 ] Sriram Subramanian commented on KAFKA-1008: --- +1 > Unmap

[jira] [Comment Edited] (KAFKA-1008) Unmap before resizing

2013-09-20 Thread Jay Kreps (JIRA)
I intend inLock(x) { foo } to be read as "in lock x do foo". So I like it since it is declarative. > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/ji

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-09-20 Thread Jay Kreps (JIRA)
bout cygwin. > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-1008 > Project: Kafka > Issue Type: Bug > Components: core, lo

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-09-20 Thread Jay Kreps (JIRA)
hink). 3. I intend inLock(x) { foo } to be read as "in lock x do foo". So I like it since it is declarative. > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues

[jira] [Updated] (KAFKA-1008) Unmap before resizing

2013-09-20 Thread Jay Kreps (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jay Kreps updated KAFKA-1008: - Attachment: KAFKA-0.8-1008-v8.patch > Unmap before resiz

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-09-19 Thread Neha Narkhede (JIRA)
you address Jun's review comments and see if we can resolve this JIRA? This is marked for the 0.8 final release > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-10

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-09-12 Thread Jun Rao (JIRA)
sive. > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-1008 > Project: Kafka > Issue Type: Bug > Components: core, lo

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-29 Thread David Lao (JIRA)
g on Windows. Please check it in. > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-1008 > Project: Kafka > Issue Type: Bug > Compon

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-28 Thread Sriram Subramanian (JIRA)
.scala method - write and read 3. Is autolock a better name than inlock? > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-1008 > Project:

[jira] [Updated] (KAFKA-1008) Unmap before resizing

2013-08-28 Thread Jay Kreps (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jay Kreps updated KAFKA-1008: - Attachment: KAFKA-0.8-1008-v7.patch Attached a version rebased to 0.8. > Unmap bef

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-26 Thread David Lao (JIRA)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) > Unmap before resizing > - > >

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-23 Thread Elizabeth Wei (JIRA)
fix some of the issues in Jay's patch. Please check if it works! > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-1008 > Project: Kafka

[jira] [Updated] (KAFKA-1008) Unmap before resizing

2013-08-23 Thread Elizabeth Wei (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Elizabeth Wei updated KAFKA-1008: - Attachment: KAFKA-trunk-1008-v7.patch > Unmap before resiz

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-22 Thread David Lao (JIRA)
; Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-1008 > Project: Kafka > Issue Type: Bug > Components: core, log >Affects Versions: 0.8 >

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-21 Thread Elizabeth Wei (JIRA)
gher order function makes the code look a lot cleaner! > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-1008 > Project: Kafka >

[jira] [Updated] (KAFKA-1008) Unmap before resizing

2013-08-21 Thread Jay Kreps (JIRA)
tested on Windows. I'm not sure if there is anyone who has access to a Windows machine and could reproduce the old problem who could verify that this patch fixes it? > Unmap before resizing > - > > Key: KAFKA-1008 &

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-21 Thread Timothy Chen (JIRA)
's a major blocker for anyone that wants to use Kafka on windows > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-1008 > Project: Kafka

[jira] [Updated] (KAFKA-1008) Unmap before resizing

2013-08-16 Thread Elizabeth Wei (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Elizabeth Wei updated KAFKA-1008: - Attachment: unmap-v5.patch > Unmap before resiz

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-16 Thread Elizabeth Wei (JIRA)
see if it reflects your suggestion. I'm still learning Scala, so please provide any feedback! > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-1008 >

[jira] [Updated] (KAFKA-1008) Unmap before resizing

2013-08-16 Thread Elizabeth Wei (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Elizabeth Wei updated KAFKA-1008: - Attachment: (was: unmap-v4.patch) > Unmap before resiz

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-16 Thread Jay Kreps (JIRA)
rced mmap clenaing all be inside the isWindows check. Thisshould fix things on windows and not functionally change perf at all on linux (which is good). > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https:

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-15 Thread Elizabeth Wei (JIRA)
eads. Do you want to file a separate JIRA to address the lock read issue? > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-1008 > Project: Kafka >

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-15 Thread Jay Kreps (JIRA)
ding to this random page): http://www.javaneverdie.com/java/java-os-name-property-values/ > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-1008 >

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-15 Thread Jay Kreps (JIRA)
ection capabilities or other OS-specific functionality. Then elsewhere we can just do if(Os.isWindows) lock.lock() and the corresponding unlock. Does that seem like it would work? > Unmap before resizing > - > > Key

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-14 Thread Elizabeth Wei (JIRA)
a shallow copy of the buffer. Do you have a case where the buffer is being used while resizing? I did a quick grep, and it looks like resize is only being used during logfile loading or truncation. > Unmap before resizing > - > >

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-14 Thread Jay Kreps (JIRA)
cate() (orig.asInstanceOf[sun.nio.ch.DirectBuffer]).cleaner().clean() copy.get() My suspicion is that something terrible will happen, but I could be wrong. > Unmap before resizing > - > > Key: KAFKA-1008 >

[jira] [Updated] (KAFKA-1008) Unmap before resizing

2013-08-14 Thread Elizabeth Wei (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Elizabeth Wei updated KAFKA-1008: - Attachment: unmap-v4.patch > Unmap before resiz

[jira] [Updated] (KAFKA-1008) Unmap before resizing

2013-08-14 Thread Elizabeth Wei (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Elizabeth Wei updated KAFKA-1008: - Attachment: (was: unmap-v3.patch) > Unmap before resiz

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-14 Thread Elizabeth Wei (JIRA)
the exceptions. I found the following coding pattern val idx = mmap.duplicate in this file. It seems like it always makes a copy of the buffer for "read". > Unmap before resizing > - > > Key: KAFKA-1008 &g

[jira] [Updated] (KAFKA-1008) Unmap before resizing

2013-08-14 Thread Elizabeth Wei (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Elizabeth Wei updated KAFKA-1008: - Attachment: (was: unmap-v2.patch) > Unmap before resiz

[jira] [Updated] (KAFKA-1008) Unmap before resizing

2013-08-14 Thread Elizabeth Wei (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Elizabeth Wei updated KAFKA-1008: - Attachment: unmap-v3.patch > Unmap before resiz

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-13 Thread Jay Kreps (JIRA)
Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 1 more We also can't really be too sure what kind of exceptions clean() might throw. > Unmap before resizing > - > > Key: KAFKA-1008 > URL:

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-13 Thread Elizabeth Wei (JIRA)
chronized, which should prevent multiple threads trying to resize/unmap the files. > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-1008 >

[jira] [Updated] (KAFKA-1008) Unmap before resizing

2013-08-13 Thread Elizabeth Wei (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Elizabeth Wei updated KAFKA-1008: - Attachment: unmap-v2.patch > Unmap before resiz

[jira] [Updated] (KAFKA-1008) Unmap before resizing

2013-08-13 Thread Elizabeth Wei (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Elizabeth Wei updated KAFKA-1008: - Attachment: (was: unmap-v1.patch) > Unmap before resiz

Re: Unmap before resizing

2013-08-13 Thread Jay Kreps
07 AM, lizziew wrote: > > > GitHub user lizziew opened a pull request: > > > > https://github.com/apache/kafka/pull/6 > > > > Unmap before resizing > > > > While I was studying how MappedByteBuffer works, I sa

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-13 Thread Jay Kreps (JIRA)
x27;t think so...). > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-1008 > Project: Kafka > Issue Type: Bug > Components

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-12 Thread Elizabeth Wei (JIRA)
s no-op for now; we can add support for other JVM environments later on. > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-1008 > Project: Kafka >

[jira] [Commented] (KAFKA-1008) Unmap before resizing

2013-08-12 Thread Guozhang Wang (JIRA)
only environments? > Unmap before resizing > - > > Key: KAFKA-1008 > URL: https://issues.apache.org/jira/browse/KAFKA-1008 > Project: Kafka > Issue Type: Bug > Components: core, lo

Unmap before resizing

2013-08-12 Thread elizabeth
t 12:07 AM, lizziew wrote: > GitHub user lizziew opened a pull request: > > https://github.com/apache/kafka/pull/6 > > Unmap before resizing > > While I was studying how MappedByteBuffer works, I saw a sharing > runtime exception on Windows. I applied what I learned t

[jira] [Updated] (KAFKA-1008) Unmap before resizing

2013-08-12 Thread Elizabeth Wei (JIRA)
[ https://issues.apache.org/jira/browse/KAFKA-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Elizabeth Wei updated KAFKA-1008: - Attachment: unmap-v1.patch Patch file > Unmap before resiz

[jira] [Created] (KAFKA-1008) Unmap before resizing

2013-08-12 Thread Elizabeth Wei (JIRA)
Elizabeth Wei created KAFKA-1008: Summary: Unmap before resizing Key: KAFKA-1008 URL: https://issues.apache.org/jira/browse/KAFKA-1008 Project: Kafka Issue Type: Bug Components

Re: kafka pull request: Unmap before resizing

2013-07-25 Thread Jay Kreps
apache/kafka/pull/6 > > Unmap before resizing > > While I was studying how MappedByteBuffer works, I saw a sharing > runtime exception on Windows. I applied what I learned to generate a patch > which uses an internal open JDK API to solve this problem. > > ---

kafka pull request: Unmap before resizing

2013-07-25 Thread lizziew
GitHub user lizziew opened a pull request: https://github.com/apache/kafka/pull/6 Unmap before resizing While I was studying how MappedByteBuffer works, I saw a sharing runtime exception on Windows. I applied what I learned to generate a patch which uses an internal open JDK API