[jira] [Updated] (HDFS-16051) Misspelt words in DataXceiver.java line 881 and line 885
[ https://issues.apache.org/jira/browse/HDFS-16051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ning Sheng updated HDFS-16051: -- Attachment: HDFS-16051-001.patch > Misspelt words in DataXceiver.java line 881 and line 885 > > > Key: HDFS-16051 > URL: https://issues.apache.org/jira/browse/HDFS-16051 > Project: Hadoop HDFS > Issue Type: Bug >Reporter: Ning Sheng >Assignee: Ning Sheng >Priority: Trivial > Attachments: HDFS-16051-001.patch > > > Misspelt words in DataXceiver.java line 881 and line 885. > {code:java} > LOG.error("{}:Exception transfering block {} to mirror {}", > datanode, block, mirrorNode, e); > LOG.info("{}:Exception transfering {} to mirror {}- continuing " + > "without the mirror", datanode, block, mirrorNode, e); > {code} > change transfering to transferring -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Created] (HDFS-16051) Misspelt words in DataXceiver.java line 881 and line 885
Ning Sheng created HDFS-16051: - Summary: Misspelt words in DataXceiver.java line 881 and line 885 Key: HDFS-16051 URL: https://issues.apache.org/jira/browse/HDFS-16051 Project: Hadoop HDFS Issue Type: Bug Reporter: Ning Sheng Assignee: Ning Sheng Misspelt words in DataXceiver.java line 881 and line 885. {code:java} LOG.error("{}:Exception transfering block {} to mirror {}", datanode, block, mirrorNode, e); LOG.info("{}:Exception transfering {} to mirror {}- continuing " + "without the mirror", datanode, block, mirrorNode, e); {code} change transfering to transferring -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Commented] (HDFS-15782) RBF: Remove unnecessary expression in StateStoreService
[ https://issues.apache.org/jira/browse/HDFS-15782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17268337#comment-17268337 ] Ning Sheng commented on HDFS-15782: --- Emmm...Thanks [~elgoiri] for your detailed reviews. I just saw the issue HDFS-15780 last day. Then I discovery this neccessary expression and resolve it. > RBF: Remove unnecessary expression in StateStoreService > --- > > Key: HDFS-15782 > URL: https://issues.apache.org/jira/browse/HDFS-15782 > Project: Hadoop HDFS > Issue Type: Improvement >Reporter: Ning Sheng >Assignee: Ning Sheng >Priority: Trivial > Attachments: HDFS-15782.patch > > > {code:java} > public void refreshCaches(boolean force) { > boolean success = true; > if (isDriverReady()) { > List cachesToUpdate = new LinkedList<>(); > cachesToUpdate.addAll(cachesToUpdateInternal); > cachesToUpdate.addAll(cachesToUpdateExternal); > for (StateStoreCache cachedStore : cachesToUpdate) { > String cacheName = cachedStore.getClass().getSimpleName(); > boolean result = false; > try { > result = cachedStore.loadCache(force); > } catch (IOException e) { > LOG.error("Error updating cache for {}", cacheName, e); > result = false; > } > if (!result) { > success = false; > LOG.error("Cache update failed for cache {}", cacheName); > } > } > } else { > success = false; > LOG.info("Skipping State Store cache update, driver is not ready."); > } > if (success) { > // Uses local time, not driver time. > this.cacheLastUpdateTime = Time.now(); > } > }{code} > The expression "result = false;" is unnecessary. Variable result is already > assigned to false. So we can remove this expression. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Updated] (HDFS-15782) RBF: Remove unnecessary expression in StateStoreService
[ https://issues.apache.org/jira/browse/HDFS-15782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ning Sheng updated HDFS-15782: -- Attachment: HDFS-15782.patch > RBF: Remove unnecessary expression in StateStoreService > --- > > Key: HDFS-15782 > URL: https://issues.apache.org/jira/browse/HDFS-15782 > Project: Hadoop HDFS > Issue Type: Improvement >Reporter: Ning Sheng >Priority: Trivial > Attachments: HDFS-15782.patch > > > {code:java} > public void refreshCaches(boolean force) { > boolean success = true; > if (isDriverReady()) { > List cachesToUpdate = new LinkedList<>(); > cachesToUpdate.addAll(cachesToUpdateInternal); > cachesToUpdate.addAll(cachesToUpdateExternal); > for (StateStoreCache cachedStore : cachesToUpdate) { > String cacheName = cachedStore.getClass().getSimpleName(); > boolean result = false; > try { > result = cachedStore.loadCache(force); > } catch (IOException e) { > LOG.error("Error updating cache for {}", cacheName, e); > result = false; > } > if (!result) { > success = false; > LOG.error("Cache update failed for cache {}", cacheName); > } > } > } else { > success = false; > LOG.info("Skipping State Store cache update, driver is not ready."); > } > if (success) { > // Uses local time, not driver time. > this.cacheLastUpdateTime = Time.now(); > } > }{code} > The expression "result = false;" is unnecessary. Variable result is already > assigned to false. So we can remove this expression. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Created] (HDFS-15782) RBF: Remove unnecessary expression in StateStoreService
Ning Sheng created HDFS-15782: - Summary: RBF: Remove unnecessary expression in StateStoreService Key: HDFS-15782 URL: https://issues.apache.org/jira/browse/HDFS-15782 Project: Hadoop HDFS Issue Type: Improvement Reporter: Ning Sheng {code:java} public void refreshCaches(boolean force) { boolean success = true; if (isDriverReady()) { List cachesToUpdate = new LinkedList<>(); cachesToUpdate.addAll(cachesToUpdateInternal); cachesToUpdate.addAll(cachesToUpdateExternal); for (StateStoreCache cachedStore : cachesToUpdate) { String cacheName = cachedStore.getClass().getSimpleName(); boolean result = false; try { result = cachedStore.loadCache(force); } catch (IOException e) { LOG.error("Error updating cache for {}", cacheName, e); result = false; } if (!result) { success = false; LOG.error("Cache update failed for cache {}", cacheName); } } } else { success = false; LOG.info("Skipping State Store cache update, driver is not ready."); } if (success) { // Uses local time, not driver time. this.cacheLastUpdateTime = Time.now(); } }{code} The expression "result = false;" is unnecessary. Variable result is already assigned to false. So we can remove this expression. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org