Re: inotify

2016-07-11 Thread rahul gidwani
I was thinking we provided the blockId, blockPoolId, path thats enough for the client to get an ExtendedBlock and they can do the rest? Agree on the snapshot operations for Inotify. I'll create a jira ticket. thanks for the feedback rahul On Tue, Jul 5, 2016 at 11:36 AM, Colin McCabe wrote: >

Re: inotify

2016-07-05 Thread Colin McCabe
I think it makes sense to have an AddBlockEvent. It seems like we could provide something like the block ID, block pool ID, and genstamp, as well as the inode ID and path of the file which the block was added to. Clearly, we cannot provide the length, since we don't know how many bytes the client

Re: INotify and atime

2016-06-08 Thread Chris Nauroth
Hello Rahul, I don't believe there is any fundamental difference in the handling of the atime update for HDFS inotify. I'd expect you to receive an event with EventType.METADATA and MetadataUpdateEvent.TIMES, and I wouldn't expect that you'd need to save a new fsimage to trigger the notification.

Re: INotify stability

2015-10-01 Thread Mohammad Islam
Sorry for the late reply.Thanks ATM, Colin and others. Indeed applying the patch took care of most of the memory issues. Now we are tackling the sudden increase in the number of active threads. We will post more concrete problem definition shortly. Regards,Mohammad On Tuesday, Septemb

Re: INotify stability

2015-09-22 Thread Colin P. McCabe
Hi Mohammad, Like ATM said, HDFS-8965 is an important fix in this area. We have found that it prevents cases where INotify tries to read invalid sequences of bytes (sometimes because the edit log was truncated or corrupted; other times because it is in the middle of a write). HDFS-8964 fixes the

Re: INotify stability

2015-09-18 Thread Mohammad Islam
Thanks Aaron and Ravi for stepping in. We are working on that direction to go to the bottom. The recent fixes may take care of this. We will update if we find anything. Regards,Mohammad  On Wednesday, September 16, 2015 12:59 PM, Aaron T. Myers wrote: Hey Mohammad, Ravi's suggesti

Re: INotify stability

2015-09-16 Thread Aaron T. Myers
Hey Mohammad, Ravi's suggestion of getting a heap dump would almost certainly let you get to the bottom of this, but I'll just throw out there that it sounds like you may have been hitting https://issues.apache.org/jira/browse/HDFS-8965, which indeed can be triggered by use of inotify. That's fixe

Re: INotify stability

2015-09-16 Thread Ravi Prakash
Hi Mohammad! Thanks for reporting the issue. Could you please take a heap dump of the NN and analyze it to see where the memory is being spent? ThanksRavi On Tuesday, September 15, 2015 11:53 AM, Mohammad Islam wrote: Hi,We were using INotify feature in one of our internal service.

Re: INotify stability

2015-09-16 Thread Mohammad Islam
any help or pointer? On Tuesday, September 15, 2015 11:52 AM, Mohammad Islam wrote: Hi,We were using INotify feature in one of our internal service. Looks like it creates a lot of memory pressure on NN. Memory usage goes very high and remains the same causing expensive GC. Did an