SwiftNativeFileSystem's directory is incompatible with Swift and Horizon

Bug #1390414 reported by Kazuki OIKAWA
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
Medium
Kazuki OIKAWA

Bug Description

SwiftNativeFileSystem's directory representation is zero-byte file.
But in Swift / Horizon, directory representation is a trailing-slash.

This incompatibility has the following issues.

1. SwiftNativeFileSystem can't see pseudo-directory made by OpenStack Horizon
2. Swift/Horizon can't see pseudo-directory made by SwiftNativeFileSystem. But Swift/Horizon see a zero-byte file instead of that pseudo-directory.
3. SwiftNativeFileSystem can't see a file if there is no intermediate pseudo-directory object.
4. SwiftNativeFileSystem makes two objects when making a single directory (e.g. "hadoop fs -mkdir swift://test.test/dir/" => "dir" and "dir/" created)

I made a patch for fix this problem 3 month ago ( https://issues.apache.org/jira/browse/HADOOP-10948 ).

If fix this problem, break a compatibility. But incompatibility is debris(zero-byte file) remains.

If this problem is bug and needs to fix, I want to update patch.

Revision history for this message
Michael McCune (mimccune) wrote :

i have experienced this bug when using Pig jobs writing their output to a Swift container. running the example Pig job from extras with a DataSource output to a container will create an "output" pseudo directory with the true output files in it, and it creates a file named "output" that is zero byte.

Changed in sahara:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → kazuki (k.oikw)
Kazuki OIKAWA (k.oikw)
Changed in sahara:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to sahara-extra (master)

Fix proposed to branch: master
Review: https://review.openstack.org/150291

Changed in sahara:
milestone: none → kilo-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sahara-extra (master)

Reviewed: https://review.openstack.org/150291
Committed: https://git.openstack.org/cgit/openstack/sahara-extra/commit/?id=49adcd9cfd91b85489119799e579335ee4730ab0
Submitter: Jenkins
Branch: master

commit 49adcd9cfd91b85489119799e579335ee4730ab0
Author: Kazuki OIKAWA <email address hidden>
Date: Wed Dec 10 12:45:49 2014 +0900

    Changes directory representation

    Current directory representation is zero-byte file but swift's pseudo-directory
    is trailing-slash file. This patch changes direcotry representation and improves
    compatibility with Swift and Horizon.

    Change-Id: I6d6aeee958ff877b6f8e95f3108c8059f5d3b5c7
    Closes-Bug: 1390414

Changed in sahara:
status: In Progress → Fix Committed
Changed in sahara:
milestone: kilo-3 → kilo-2
Thierry Carrez (ttx)
Changed in sahara:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in sahara:
milestone: kilo-2 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.