[
https://issues.apache.org/jira/browse/HDFS-17527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simbarashe Dzinamarira updated HDFS-17527:
------------------------------------------
Description:
HDFS-17514 addressed the case when state ID context is first enabled and then
disabled. However, if state Id is never enabled at all, there should be no
observer reads.
Tests in TestNoNamenodesAvailableLongTime do not enable the namenode state Id
context but there are still observer reads.
The solution to this is to not advance the shareGlobalStateID in
PoolAlignmentContext when the namenode returns a values of zero in the
RpcResponseHeader. Zero indicates that stateIdContext is disabled and should
not be treated as a valid state ID value. Note, fixing this will require
adjusting the unit tests as well.
was:
HDFS-17514 address the case when state ID context is first enabled and then
disabled. However, if state Id is never enabled at all, there should be on
observer reads.
Tests in TestNoNamenodesAvailableLongTime do not enable the namenode state Id
context but there are still observer reads.
The solution to this is to not advance the shareGlobalStateID in
PoolAlignmentContext when the namenode returns a values of zero in the
RpcHeader. Zero indicated that stateIdContext is disabled and should not be
treated as a valid state ID value. Note, fixing this will require fixing the
unit tests as well.
> RBF: Routers should not allow observer reads when namenode stateId context is
> disabled
> --------------------------------------------------------------------------------------
>
> Key: HDFS-17527
> URL: https://issues.apache.org/jira/browse/HDFS-17527
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Simbarashe Dzinamarira
> Priority: Major
>
> HDFS-17514 addressed the case when state ID context is first enabled and then
> disabled. However, if state Id is never enabled at all, there should be no
> observer reads.
> Tests in TestNoNamenodesAvailableLongTime do not enable the namenode state Id
> context but there are still observer reads.
> The solution to this is to not advance the shareGlobalStateID in
> PoolAlignmentContext when the namenode returns a values of zero in the
> RpcResponseHeader. Zero indicates that stateIdContext is disabled and should
> not be treated as a valid state ID value. Note, fixing this will require
> adjusting the unit tests as well.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]