jshell (tests?) leaking files in /tmp

Vicente-Arturo Romero-Zaldivar vicente.romero at oracle.com
Tue Aug 2 14:48:43 UTC 2016


On 08/02/2016 10:31 AM, Jonathan Gibbons wrote:
> I think you can assume people will have write permission to /tmp, but 
> it is still bad practice to write files there and not clean them up 
> afterwards.

I know it's a fair assumption but I remember having to fix tests because 
of this in my previous company,

>
> -- Jon

Vicente

>
> On 08/02/2016 06:43 AM, Vicente-Arturo Romero-Zaldivar wrote:
>> Hi,
>>
>> IMO, I don't think that it's a good practice to write files to the 
>> /tmp folder. Users with no write permission might have problems to 
>> run the tests.
>>
>> Thanks,
>> Vicente
>>
>> On 08/02/2016 07:48 AM, Andrei Eremeev wrote:
>>> Hi Jon,
>>> As far as I remember, JShell uses temp files to edit code snippets 
>>> in external editors. And it looks like JShell does not remove the 
>>> files after editing.
>>> -- 
>>> Andrei Eremeev Friday, 29 July 2016, 10:44PM +03:00 from Jonathan 
>>> Gibbons  jonathan.gibbons at oracle.com :
>>>
>>>> My /tmp is accumulating jshell files:
>>>>
>>>> $ find /tmp/jshell*
>>>> /tmp/jshelltemp1044549827386632150
>>>> /tmp/jshelltemp1044549827386632150/8011562224044845728.edit
>>>> /tmp/jshelltemp1047969916921684187
>>>> /tmp/jshelltemp1047969916921684187/1740671090630915795.edit
>>>> /tmp/jshelltemp1072678409055720780
>>>> /tmp/jshelltemp1072678409055720780/978408699063547197.edit
>>>> /tmp/jshelltemp1200545436603537750
>>>> /tmp/jshelltemp1200545436603537750/3390705712185362355.edit
>>>> /tmp/jshelltemp1221162966070216464
>>>> /tmp/jshelltemp1221162966070216464/3081222915116288162.edit
>>>> /tmp/jshelltemp1425582075044687363
>>>> /tmp/jshelltemp1425582075044687363/4082709690184420251.edit
>>>> /tmp/jshelltemp1577033095144892398
>>>> /tmp/jshelltemp1577033095144892398/9081427157952395244.edit
>>>> /tmp/jshelltemp1585036544870564328
>>>> /tmp/jshelltemp1585036544870564328/3906837717961713151.edit
>>>> /tmp/jshelltemp165895593330514486
>>>> /tmp/jshelltemp165895593330514486/6627843380470403643.edit
>>>> /tmp/jshelltemp1833109810049396364
>>>> /tmp/jshelltemp1833109810049396364/517769421906389157.edit
>>>> /tmp/jshelltemp2041981097096951060
>>>> /tmp/jshelltemp2041981097096951060/2349577263460706006.edit
>>>> /tmp/jshelltemp2193900651454655061
>>>> /tmp/jshelltemp2193900651454655061/6384782619469415234.edit
>>>> /tmp/jshelltemp2234949382818285124
>>>> /tmp/jshelltemp2234949382818285124/4834457107790499447.edit
>>>> /tmp/jshelltemp2296337736965199344
>>>> /tmp/jshelltemp2296337736965199344/8826222356240547610.edit
>>>> /tmp/jshelltemp2345658105656559252
>>>> /tmp/jshelltemp2345658105656559252/6729333722014852729.edit
>>>> /tmp/jshelltemp2468675356543856110
>>>> /tmp/jshelltemp2468675356543856110/6621846833826280297.edit
>>>> /tmp/jshelltemp2504345118557203640
>>>> /tmp/jshelltemp2504345118557203640/5097858842709809254.edit
>>>> /tmp/jshelltemp2595239917647196066
>>>> /tmp/jshelltemp2595239917647196066/4410162140727614450.edit
>>>> /tmp/jshelltemp2668148898346441797
>>>> /tmp/jshelltemp2668148898346441797/1660414210153626169.edit
>>>> /tmp/jshelltemp3514984560124468983
>>>> /tmp/jshelltemp3514984560124468983/6131864124091385623.edit
>>>> /tmp/jshelltemp3562125506660912173
>>>> /tmp/jshelltemp3562125506660912173/8887290599369872073.edit
>>>> /tmp/jshelltemp40589362697391818
>>>> /tmp/jshelltemp40589362697391818/8822906394660574353.edit
>>>> /tmp/jshelltemp4387371979722467975
>>>> /tmp/jshelltemp4387371979722467975/7249033605230168031.edit
>>>> /tmp/jshelltemp4715020457318511491
>>>> /tmp/jshelltemp4715020457318511491/4636728652227855346.edit
>>>> /tmp/jshelltemp52332485773094168
>>>> /tmp/jshelltemp52332485773094168/1277048994347896757.edit
>>>> /tmp/jshelltemp5278128846699884471
>>>> /tmp/jshelltemp5278128846699884471/44922152761642381.edit
>>>> /tmp/jshelltemp5320120409750616204
>>>> /tmp/jshelltemp5320120409750616204/24459148772882266.edit
>>>> /tmp/jshelltemp5534152442553977652
>>>> /tmp/jshelltemp5534152442553977652/8186176305757939505.edit
>>>> /tmp/jshelltemp5623564536996825207
>>>> /tmp/jshelltemp5623564536996825207/9045016579988583399.edit
>>>> /tmp/jshelltemp5700044225140491973
>>>> /tmp/jshelltemp5700044225140491973/3188060456352696621.edit
>>>> /tmp/jshelltemp6324874596657398893
>>>> /tmp/jshelltemp6324874596657398893/3179325677151331223.edit
>>>> /tmp/jshelltemp6808171130698006683
>>>> /tmp/jshelltemp6808171130698006683/319127357748973046.edit
>>>> /tmp/jshelltemp7001485162152525304
>>>> /tmp/jshelltemp7001485162152525304/9168706811139870527.edit
>>>> /tmp/jshelltemp7069920922180135958
>>>> /tmp/jshelltemp7069920922180135958/8686060872597749049.edit
>>>> /tmp/jshelltemp7088266688866808879
>>>> /tmp/jshelltemp7088266688866808879/6924602628004312642.edit
>>>> /tmp/jshelltemp7173145703014422717
>>>> /tmp/jshelltemp7173145703014422717/4607109423377503842.edit
>>>> /tmp/jshelltemp7180999435914656215
>>>> /tmp/jshelltemp7180999435914656215/5549682196654974987.edit
>>>> /tmp/jshelltemp7208905856201817354
>>>> /tmp/jshelltemp7208905856201817354/6181265411604183143.edit
>>>> /tmp/jshelltemp7680863956932965286
>>>> /tmp/jshelltemp7680863956932965286/4077316136930888410.edit
>>>> /tmp/jshelltemp7853784893157006161
>>>> /tmp/jshelltemp7853784893157006161/5787573000355892776.edit
>>>> /tmp/jshelltemp7992097935706702471
>>>> /tmp/jshelltemp7992097935706702471/1856486408875906360.edit
>>>> /tmp/jshelltemp8128412259418228343
>>>> /tmp/jshelltemp8128412259418228343/5002913207029300566.edit
>>>> /tmp/jshelltemp8227545996613827901
>>>> /tmp/jshelltemp8227545996613827901/3843405868953231414.edit
>>>> /tmp/jshelltemp850631284448899163
>>>> /tmp/jshelltemp850631284448899163/481600313656353994.edit
>>>> /tmp/jshelltemp8744516682365157187
>>>> /tmp/jshelltemp8744516682365157187/5826738179758017666.edit
>>>> /tmp/jshelltemp8852008122297380391
>>>> /tmp/jshelltemp8852008122297380391/3226693345657046477.edit
>>>> /tmp/jshelltemp9074215226291200769
>>>> /tmp/jshelltemp9074215226291200769/8315526298738535034.edit
>>>> /tmp/jshelltemp9193145933675852815
>>>> /tmp/jshelltemp9193145933675852815/8998940437928279313.edit
>>>>
>>
>



More information about the kulla-dev mailing list