Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.5.0
-
None
-
Reviewed
Description
andrew.wang recently had a comment on HDFS-10899:
Looks like we aren't using the op cache in FSEditLog SetXAttrOp / RemoveXAttrOp. I think this is accidental, could you do some research? Particularly since we'll be doing a lot of SetXAttrOps, avoiding all that object allocation would be nice. This could be a separate JIRA.
i.e.
static SetXAttrOp getInstance() { return new SetXAttrOp(); }
v.s.
static AddOp getInstance(OpInstanceCache cache) { return (AddOp) cache.get(OP_ADD); }
Seems we should fix these non-caching usages.
Attachments
Attachments
Issue Links
- relates to
-
HDFS-6301 NameNode: persist XAttrs in fsimage and record XAttrs modifications to edit log.
- Resolved